POST /v1/whatsapp/messages/template to send an approved template. Templates are always allowed (no open window required) and reopen the 24-hour window, so they are how you start a conversation or re-engage after the window closes.
Endpoint
X-API-Key (required), Content-Type: application/json.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
template_name | string | yes | Name of an APPROVED template. See Senders & templates. |
variables | object | no | Variable values, e.g. { "1": "A1234" }. Keys match the template’s parameters. |
to | string | target | The customer number in E.164. The number you are messaging. |
sender | string | no | Which of your numbers to send from. Optional when your workspace has one active sender. |
conversation_id | uuid | alt | Alternative to to + sender: an existing thread to send into. |
Example
cURL
Templates with a media header (image/video/document) carry the header media on the template itself; the backend resolves it at send time. You do not pass header media in this body. See Senders & templates.
{ message_id, status: "pending" }. Then track delivery. Build and send a live request from the Send a template message reference page.