Send a message to a WhatsApp chat or group specified by JID.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A JSON describing recipient and message payload.
jid, WhatsApp ID of a contact or a group, a string structured as 'x@s.whatsapp.net', where 'x' is the phone number of the contact.
"14840000000@s.whatsapp.net"
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"
UID of the message this message replies to. Must reference a message in the same workspace and WhatsApp account. Null or empty string is ignored.
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