Skip to main content
Every WhatsApp send goes through a single action, 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 template is the only message you can send with the window closed. On top of that, sending one reopens the window, enabling text, media, and quick reply again.

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).
Free-form text, up to 4096 characters.

Sending

Sending is an action within the group. Make a POST /conversation/actions with a send_message in the actions array:
Responds 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

A send_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.