Send Template Message
WhatsApp
WhatsApp
Send Template Message
Send a pre-approved WhatsApp template message (required to initiate conversations outside the 24-hour customer service window).
Action
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
business | dropdown | Required | WhatsApp Business Account (WABA) that owns the sending phone number. |
phone_number_id | dropdown | Required | The WhatsApp Business phone number that sends the message. |
to | text | Required | Recipient phone number in international format including country code, digits only (e.g. 14155552671). |
template_name | dropdown | Required | Approved WhatsApp message template to send. |
language_code | dropdown | Required | BCP-47 language/locale code for the selected template (e.g. en_US). |
components | array of object | Optional | Optional template components (header/body/button parameters) following the WhatsApp Cloud API components schema. |
type | text | Optional | Component type, e.g. header, body, or button. |
parameters | array of object | Optional | Parameters that fill the placeholders in this component. Each item is an object with fields: type, text. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the WhatsApp Cloud API response. |
body | object | Structured WhatsApp Cloud API response envelope. |
messaging_product | text | Always 'whatsapp'. |
contacts | array of object | Resolved contacts for the message. |
messages | array of object | Messages created by the request. |