Send Meta-compatible interactive button and list payloads.
Meta-Compatible Interactive
Summary
Send Meta-compatible interactive button and list payloads.
Prerequisites
- A Whats91 account
- A generated public API token
Related documentation
Use type interactive with a Meta-style interactive object. Common interactive structures are button and list. Buttons use action.buttons with reply ids and titles; lists use action.sections with rows.
curl - button
curl -X POST "https://graph.whats91.com/api/v2/messages" \
-H "Authorization: Bearer w91_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"senderId": "919999999999",
"messaging_product": "whatsapp",
"to": "918888888888",
"type": "interactive",
"interactive": {
"type": "button",
"body": { "text": "Choose an option" },
"action": {
"buttons": [
{
"type": "reply",
"reply": { "id": "pay_now", "title": "Pay now" }
}
]
}
}
}'List payload
{
"messaging_product": "whatsapp",
"to": "918888888888",
"type": "interactive",
"interactive": {
"type": "list",
"body": { "text": "Select a service" },
"action": {
"button": "View services",
"sections": [
{
"title": "Support",
"rows": [
{ "id": "billing", "title": "Billing" },
{ "id": "technical", "title": "Technical" }
]
}
]
}
}
}Related Documentation
Messaging Meta-Compatibility
Understand the Meta-compatible JSON message sending endpoints exposed through Whats91.
Text
Send Meta-compatible text messages through the Whats91 public API.
Template
Send Meta-compatible template messages with language and components objects.
Media
Send Meta-compatible image, video, audio, document, and sticker message payloads.