curl -P - /v1/whatsapp\
-H 'apikey':'string'
-H "Content-Type: application/json" \
-d '{
"recipient_type": "individual",
"from": "+91XXXXXXXXXX",
"to": "+91XXXXXXXXXX",
"type": "interactive",
"interactive": {
"type": "list",
"header": {
"type": "text",
"text": "Book a Service"
},
"body": {
"text": "Choose a service or support option:"
},
"footer": {
"text": "Your Service Center"
},
"action": {
"button": "See Options",
"sections": [
{
"title": "Services",
"rows": [
{
"id": "serv_1",
"title": "Cleaning",
"description": "Full home cleaning"
},
{
"id": "serv_2",
"title": "Plumbing",
"description": "Fix water leakage"
}
]
},
{
"title": "Support",
"rows": [
{
"id": "sup_1",
"title": "Technical Support",
"description": "For devices"
},
{
"id": "sup_2",
"title": "Account Support",
"description": "For account issues"
}
]
}
]
}
}
}