Send a message to a WhatsApp phone number. Doesn’t require a previous chat or contact with the recipient.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A JSON describing recipient and message payload.
a phone number, formatted according to international phone number standard, i.e.: [+][country code][area code][local phone number]
"+14840000000"
the WhatsApp account (as a phone number, in international format) to which the chat specified by JID belongs to. If omitted, the most recently connected WhatsApp account in the workspace will be used.
"+14841111111"
plain text message
"hello, world!"
attachment UID
"afa9d4dd-978d-4a14-aa1b-bd65c272e645"
assign label to the chat, in which the message is sent (create new label, if not exists)
"customer"
an exact name of the chat (or group) as appears in TimelinesAI)
"MyChat"
a template ID of the attachment to be sent. The template must be created in the workspace before sending a message with it.
123456