Create New Message
Create a new message in the conversation.
WhatsApp Template Messages
For WhatsApp channels, you can send structured template messages using the template_params field.
Templates must be pre-approved in WhatsApp Business Manager.
Example Templates
Text with Image Header:
Text with Copy Code Button:
WhatsApp Interactive Messages
WhatsApp Cloud inboxes can send reply buttons, a list, a link button, a
media carousel, a Brazilian Pix payment or a location request with the
interactive field while the 24-hour customer service window is open.
content is the body, and every text field accepts the same variables as
the body. Media (header image/video/document and carousel cards) goes by
public URL, Meta downloads it. Outside the window the message fails like
free text. See the request examples.
WAHA inboxes send interactive messages at any time (no 24-hour window)
once the WAHA server and the account have them on: reply buttons, action
buttons (cta: link, call, copy), list, carousel, Pix, order (Review and
Pay), poll, location, event and a reply to a buttons message. See the
waha_interactive_* request examples and the interactive_payload schema.
UazAPI inboxes also send them at any time once the UazAPI server and the
account have them on, in direct chats and groups: reply buttons, action
buttons, list, poll, carousel (image, video or document cards), Pix button,
payment request (Review and pay with Pix, boleto, link and a document),
event and location request. See the uazapi_interactive_* request
examples. A sent payment request is updated with
POST .../messages/{message_id}/payment_status.
Autorizações
Parâmetros de caminho
Corpo
Sends the message through Meta's WhatsApp Direct Send (beta): a utility or authentication message without a pre-approved template, also outside the 24-hour window. Meta matches or generates the template and bills it at the category rate. Only WhatsApp Cloud inboxes with Direct Send turned on accept it; send utility content only, since marketing content can restrict the WABA. Attachments are not supported.
utility(default): plain text, or reply buttons, one link button or one voice call button (only one of them). Reply and link buttons take an optional text or media header and a footer; the voice call button takes a text header only and no footer.authentication: plain text only, for verification codes. Meta has to open it to the WABA, and it can't go to contacts known only by their WhatsApp user ID (BSUID).
Send {} for a plain utility text message. Invalid options answer 422
with { error, code } (codes such as invalid_ttl, invalid_template_name,
conflicting_buttons, header_needs_buttons, authentication_text_only).
Sends a WhatsApp interactive message. Three providers support it:
WhatsApp Cloud — button, list, cta_url, location_request,
carousel and pix. It is a session message, so it only goes out while
the 24-hour customer service window is open; outside the window the
message is marked as failed, like free text.
WAHA — button (reply buttons), cta (url / call / copy buttons),
list, carousel, pix, order (Review and Pay), poll, location,
event and button_reply. There is no 24-hour window, but the WAHA server
(Super Admin → WhatsApp servers → Interactive messages, or the
WAHA_INTERACTIVE_MESSAGES=true env var) and the account feature
waha_interactive_messages must be on. Direct chats only: in groups the
message fails with interactive_group_unsupported (WAHA answers 422 to
buttons there). carousel, pix,
order and event need the GOWS engine.
UazAPI — button (reply buttons), cta (url / call / copy buttons),
list, poll, carousel, pix (Pix button), payment_request
("Review and pay" with Pix, boleto, link and a document), event and
location_request. There is no 24-hour window; the UazAPI server
(Super Admin → WhatsApp servers → Interactive messages, or the
UAZAPI_INTERACTIVE_MESSAGES=true env var) and the account feature
uazapi_interactive_messages must be on. UazAPI accepts group JIDs
(@g.us) on every one of these endpoints, so group conversations are
allowed; whether WhatsApp renders each type in groups is not guaranteed.
The status of a sent payment_request is updated with
POST .../messages/{message_id}/payment_status.
The message content is the main text: the body (max 1024 characters,
4096 for lists), the poll question, the location title, the event name or
the selected button text. It is optional only for WAHA pix (not sent) and
order (sent as the buyer note), and for UazAPI pix (not sent),
payment_request and carousel. The header, footer, button titles, link
and list rows accept the same {{variables}} as the body, for example
{{contact.first_name}}. Media goes by public URL (the provider downloads
it), not as attachments. When type is omitted it is inferred from the
first key found: link → cta_url, actions → cta, list, cards →
carousel, pix, order, payment → payment_request, poll, location,
event, button_reply, otherwise button.
Resposta
Success
Who wrote the message: contact (incoming), human (an agent, or a WhatsApp message sent from the phone), bot (an agent bot, Captain, a Flow Builder flow, or no sender), rule (an automation rule), campaign or system (an activity)
contact, human, bot, rule, campaign, system