POST/v1/sendTemplateMessage
Send a WhatsApp template message
Sends a pre-approved WhatsApp template message to a recipient.
Template messages can be used to:
- Start a new conversation with a customer.
- Re-engage customers after the 24-hour customer service window has expired.
- Send transactional, authentication or marketing notifications using approved WhatsApp templates.
Each request references an approved template and can optionally include values for template variables.
Template Components
A template may contain one or more of the following components:
| Component | Required | Description |
|---|---|---|
| Header | No | Text, image, video or PDF document. |
| Body | Usually | Variables used in the template body. |
| CTA Buttons | No | Dynamic parameters for call-to-action buttons. |
| Quick Reply Buttons | No | Options customers can tap to send a predefined response. |
The values supplied in the request must match the template definition approved in WhatsApp Business Manager.
Recipient Number
Provide the recipient's WhatsApp number in international format without spaces or special characters.
Example:
919876543210
Response
An HTTP 200 OK response only confirms that Hello24 successfully received your request.
Always inspect the response body:
code = SUCCESSindicates the message was accepted for delivery.code = FAILUREindicates the message was rejected. The response contains one or more errors describing the reason.
Headers
HELLO24_API_KEYrequired | string | Your Hello24 API key. |
Content-Type | string | application/json |
Body
templateNamerequired | string | Name of the approved WhatsApp template including the language code. Example: welcome_message (en) |
params | TemplateParams | Values supplied for the variables defined in the approved WhatsApp template. Include only the components used by the template. |
params.header | array of string | Header variables or media URL. |
params.body | array of string | Body variables in template order. |
params.buttons | array of string | Dynamic URL values for CTA buttons. |
params.quick_reply_buttons | array of string | Payload values for quick reply buttons. |
phonerequired | string | Recipient phone number in international format. |
Responses
- 200 Request processed successfully.
- 403 Invalid API key or unauthorized request.