Skip to main content
POST
Send an approved WhatsApp template to an existing contact in your organization. The endpoint finds an open ticket for the contact and selected WhatsApp channel, or creates one automatically, then sends and saves the outbound template message. Use the returned inbox_id to open the conversation or retrieve its messages. This replaces standalone ticket creation. There is no separate create-ticket step and no file upload is required. Recipient variables are supplied directly in parameters.

Authentication

string
required
Bearer token for authentication. Format: Bearer <token>.
string
required
UUID of the organization in which the authenticated user is operating.

Request body

string
required
UUID of an existing contact belonging to the organization.
string
required
UUID of a message template belonging to the organization. Its status must be APPROVED. The service uses the template’s active WhatsApp phone number when available, otherwise an active channel subscribed to webhooks in the organization.
object
Optional map of template variable names to string values. For BODY variables, use numeric keys such as "1" and "2"; var_1 and variable_1 aliases are also accepted. For TEXT HEADER variables, use header_1, header_2, etc.; numeric keys are a fallback.Missing or empty BODY variable 1 falls back to the contact name, or there. Other missing BODY variables and missing TEXT HEADER variables are sent as -. Supply all values explicitly for predictable message personalization.
This endpoint sends a real WhatsApp message. It is not idempotent: repeated requests can send duplicate messages. A failed request may leave a created ticket, or the message may already have been sent. Check the conversation before retrying an uncertain result.

Response

Returns 201 Created with a message object, rather than a ticket object.
string
UUID of the saved outbound message.
string
UUID of the conversation ticket that was reused or created.
string
UUID of the organization owning the message.
string
UUID of the recipient contact.
string
Provider message ID returned by WhatsApp.
string
outbound.
string
template.
string
Locally rendered template text saved in the conversation. This can differ from the sent text when values are omitted; provide all required parameters.
string
Initially sent; delivery updates are processed separately.
string
ISO 8601 creation timestamp.
string
ISO 8601 last update timestamp.

Examples