Send a Template WhatsApp Message
HTTP Method | URL | Requires Auth |
---|---|---|
| Navigate to the Details tab of the App Info page to get the URL for your workspace.
For example,
|
Body Parameters
Key | Description | Example Value |
---|---|---|
| Recipient WhatsApp IDs where you want to send the template message. Note that you can validate a WhatsApp id from here. |
|
| The WhatsApp Number from which you want to send this template message. |
|
| Username of the agent you want to transfer the chat to when the WhatsApp user replies. |
|
| Department name or ID where you want to transfer the chat to when the WhatsApp user replies. |
|
| Provide information about the template message you wish to send. It is the same as WhatsApp-template-object. | Refer to the template property in above example. |
We strongly recommend including the +
prefix for all phone numbers in the payload. While you can submit numbers without the leading +
sign, we have encountered cases where WhatsApp will return an invalid response despite the number being in use.
Example Body
Sample Call
Responses
Success Response | Error Response |
---|---|
Code: 200
Content: | Code: 400 BAD REQUEST
Content:
|
Code: 200
Content:
| Code: 400 BAD REQUEST
Content:
|
Code: 400 BAD REQUEST
Content:
| |
Code: 400 BAD REQUEST
Content:
| |
Code: 400 BAD REQUEST
Content:
| |
Code: 400 BAD REQUEST
Content:
| |
Code: 500 Internal Server Error
Content:
|
Last updated