Select WhatsApp message templates, upload media headers, and send templated broadcasts and notifications with dynamic variables.
Make a POST request to /v1/templates/send with your API key in the headers:
curl -X POST "https://gateway-api.aichatbot.websitebyct.in/v1/templates/send" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"templateId": "<TEMPLATE_ID>",
"recipients": [
{
"phone": "91XXXXXXXXXX",
"name": "Aarav Sharma",
"variables": {
"1": "Aarav Sharma",
"2": "ORD-9821"
}
}
]
}'| Method | Path | Description | Try It |
|---|---|---|---|
| POST | /v1/templates/send | Send an approved WhatsApp template with dynamic variables to recipients. | Test |
| GET | /v1/templates | Retrieve all templates with optional status filtering (approved, submitted, draft). | Test |
| GET | /v1/templates/:templateId | Inspect template components, language, and variable formats. | Test |
| POST | /v1/templates/media | Upload image, video, or document files to use in template headers. | Test |
Variables are passed in the variables object inside each recipient. Use positional keys like "1": "John", "2": "$100" matching the template placeholders {{1}}, {{2}}.
Upload media via POST /v1/templates/media. Uploaded assets are encrypted at rest with AES-256 on Amazon S3 and simultaneously registered with Meta Cloud API to return a WhatsApp mediaId.