{
"whatsapp_number": "{{whatsapp_number}}",
"type": "TEMPLATE",
"to_whatsapp_number": "{{destination_number}}",
"template": {
"template_name": "-template-name-",
"components": [
{
"type": "header",
"parameters": [
{
"type": "video",
"video": {
"url": "https://link.to.image.jpg"
}
}
]
},
{
"type": "body",
"parameters": [
{"type": "text", "text": "John"},
{"type": "text", "text": "Doe"},
{"type": "text", "text": "$200 0000"}
]
}
]
}
}
curl --location 'https://api.sudonum.com.com/v2/whatsapp/messages/' \
--header 'Content-Type: application/json' \
--data '{
"whatsapp_number": "{{whatsapp_number}}",
"type": "TEMPLATE",
"to_whatsapp_number": "{{destination_number}}",
"template": {
"template_name": "-template-name-",
"components": [
{
"type": "header",
"parameters": [
{
"type": "video",
"video": {
"url": "https://link.to.image.jpg"
}
}
]
},
{
"type": "body",
"parameters": [
{"type": "text", "text": "John"},
{"type": "text", "text": "Doe"},
{"type": "text", "text": "$200 0000"}
]
}
]
}
}'{
"uuid": "994dd8a7-465b-4736-a8d4-383ca43d4e37",
"type": "TEMPLATE",
"status": "QUEUED",
"status_description": "",
"whatsapp_number": "<whatsapp_number>",
"direction": "OUTBOUND",
"from_whatsapp_number": "<whatsapp_number>",
"to_whatsapp_number": "<destination_number>",
"message_data": {
"language_code": "en_GB",
"template_name": "-template-name-",
"components": [
{
"type": "header",
"parameters": [
{
"type": "video",
"video": {
"url": "https://link.to.image.jpg"
}
}
]
},
{
"type": "body",
"parameters": [
{
"type": "text",
"text": "John"
},
{
"type": "text",
"text": "Doe"
},
{
"type": "text",
"text": "$200 0000"
}
]
}
]
},
"meta_data": {},
"context_data": {},
"created": "2024-06-28T14:19:33.614447Z",
"modified": "2024-06-28T14:19:33.627059Z"
}