Send Template
Sends a message using a specific WhatsApp template.
POST /api/agents/whatsapp/sendTemplate
Request Body
{
"template_id": "HXxxxxxxxxxxxxxxxx",
"phone_number": "+1234567890",
"site_id": "123e4567-e89b-12d3-a456-426614174000"
}| Parameter | Type | Required | Description |
|---|---|---|---|
template_id | string | Yes | The SID of the template to send. |
phone_number | string | Yes | Recipient’s phone number. |
site_id | string | Yes | The UUID of the site. |
message_id | string | No | UUID for tracking the message. |
original_message | string | No | The original message text (for logging). |
Response
Returns the status of the send operation, including the Twilio message SID.
Last updated on