send_message, inside the
POST /conversation/actions endpoint. One action covers all four modes —text,
media, quick reply, and template—; which one you can use depends on the state of
the conversation’s 24h window.
Which mode applies based on the window
The four modes of send_message
Each send_message sends one kind of content: text (body), media
(file_uuid), a quick reply (quick_reply), or a template (template). The
first three can also carry a fallback template for when the window is closed
(see below).
- Text
- Media
- Quick reply
- Template
Free-form text, up to 4096 characters.
Sending
Sending is an action within the group. Make aPOST /conversation/actions with a
send_message in the actions array:
202: the send runs in the background. Check the result in the
conversation status or the activity log. To chain several sends or other actions
in a single request, see Actions.
Template fallback for a closed window
Asend_message of text, media, or quick reply can also include an optional
template: if the window is closed when it runs, the template is sent instead
of the primary; if it’s open, the primary is sent. Without a template, a
primary with the window closed fails with WINDOW_CLOSED.
Next steps
Templates
Create and send templates to reopen the window.
Actions
Chain sends, labels, notes, and AI execution in one request.