template_variable_data for different WhatsApp template types, including variable limits and fields that do not require variables.{{1}}, {{2}}, etc.https://example.com/{{1}}Note: If the website button uses a static URL, you do not need to send a variable.
{{1}}template_variable_data.| Field | Description |
|---|---|
variable_id | The ID of the Flow variable |
variable_value | The value to pass to the Flow |
flag_flow_variable | Must be set to true |
View Catalogtemplate_variable_data to an empty value.{
"template_variable_data": []
}| Interactive Type | Maximum Body Length |
|---|---|
| Reply Buttons | 1024 characters |
| CTA URL | 1024 characters |
| List | 4096 characters |
| Text | 4096 characters |
| Flow | 4096 characters |
| Catalog Message | 1024 characters |
Catalog Message: Do not send a header.
Catalog Message: Do not send a header.
{
"variable_id": "your_variable_id",
"variable_value": "your_value",
"flag_flow_variable": true
}variable_value for:| Template Type | Component | Limit |
|---|---|---|
| Basic | Body | 1024 chars |
| Basic | Text Header | 60 chars |
| Basic | Media Header | No limit |
| Basic | Dynamic Website URL | 2000 chars |
| Basic | Offer Code | 20 chars |
| Basic | Authentication OTP | 15 chars |
| Basic | Flow Inputs | No limit |
| Carousel | Header | 1024 chars |
| Carousel | Card Body | 160 chars per card |
| Carousel | Media Header | No limit |
| Carousel | Dynamic Website URL | 2000 chars |
| Catalog | Body | 1024 chars |
| Call Permission | Variables | None |
| Interactive | Body — Buttons / CTA URL | 1024 chars |
| Interactive | Body — List / Text / Flow | 4096 chars |
| Interactive | Body — Catalog | 1024 chars |
| Interactive | Text Header | 60 chars |
| Interactive | Media Header | No limit |
| Interactive | Flow Inputs | No limit |
curl --location 'https://api.chronox.ai/api/thread/send-wa-template' \
--header 'priority: u=1, i' \
--header 'Authorization: Bearer ext-6d9d2de9a25e15a457f0498d2a80919df01c448476c294492946fa6fa5a51355' \
--header 'content-type: application/json' \
--data '{
"whatsapp_template_id": 517,
"user_wa_phone_number": "916352505293",
"integrated_channel_id": 46,
"template_variable_data": []
}'{
"status": true,
"data": {
"threadId": "1c1e8c3b-7e22-4fb3-bb40-c20c92a451db",
"wa_message_id": null,
"wa_template_execution_data": {
"whatsapp_template_id": 1184,
"whatsapp_template_name": "pg_variable_test",
"whatsapp_template_language": "en",
"whatsapp_template_header_text_value": "This is a sample header Piyush Garg this is sample piyush garg..",
"whatsapp_template_header_chronox_url": null,
"whatsapp_template_header_type_id": "1",
"whatsapp_template_header_type_name": "Text",
"whatsapp_template_body": "this is a sample body text ??",
"whatsapp_template_footer": null,
"whatsapp_template_button": []
},
"wa_payload": {
"messaging_product": "whatsapp",
"to": "917297914605",
"type": "template",
"template": {
"name": "pg_variable_test",
"language": {
"code": "en"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "text",
"text": "Piyush Garg"
}
]
}
]
}
}
}
}