post
https://www.fast2sms.com/dev/whatsapp///messages
Send a complex template message that includes dynamic headers (media), body parameters (text, currency, date/time), and button payloads (quick replies).
Example Request Body
{
"messaging_product": "whatsapp",
"recipient_type": "individual",
"to": "+919999595313",
"type": "template",
"template": {
"name": "TEMPLATE_NAME",
"language": {
"code": "en_US"
},
"components": [
{
"type": "header",
"parameters": [
{
"type": "image",
"image": {
"link": "[https://example.com/image.jpg](https://example.com/image.jpg)"
}
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "TEXT_STRING"
},
{
"type": "currency",
"currency": {
"fallback_value": "$10.99",
"code": "USD",
"amount_1000": 10990
}
},
{
"type": "date_time",
"date_time": {
"fallback_value": "February 25, 2024"
}
}
]
},
{
"type": "button",
"sub_type": "quick_reply",
"index": "0",
"parameters": [
{
"type": "payload",
"payload": "PAYLOAD_DATA"
}
]
}
]
}
}