Send Whats91-specific quick reply button and list messages through the chat endpoint.
Chat Interactive
Summary
Send Whats91-specific quick reply button and list messages through the chat endpoint.
Prerequisites
- A Whats91 account
- A generated public API token
Related documentation
POST /api/v2/chat supports two Whats91-specific interactive structures: quick reply buttons and list messages. Use these inside the customer service window when the user can respond directly in WhatsApp.
Quick Reply Buttons
Use type interactive, button, or buttons with a buttons array. You can send max 3 buttons; each title is limited to 20 characters and each id is limited to 256 characters.
{
"senderId": "919999999999",
"to": "918888888888",
"type": "buttons",
"text": "Choose an option",
"buttons": [
{ "id": "pay_now", "title": "Pay now" },
{ "id": "talk_agent", "title": "Talk to agent" }
]
}List Messages
Use type list or interactive_list with headerText, text, footerText, buttonText, and sections.rows. A list can include max 10 rows across all sections.
curl -X POST "https://graph.whats91.com/api/v2/chat" \
-H "Authorization: Bearer w91_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"senderId": "919999999999",
"to": "918888888888",
"type": "list",
"headerText": "Support menu",
"text": "Select the topic you need help with.",
"footerText": "Whats91 Support",
"buttonText": "View options",
"sections": [
{
"title": "Requests",
"rows": [
{ "id": "billing", "title": "Billing" },
{ "id": "technical", "title": "Technical" }
]
}
]
}'Unsupported chat types return UNSUPPORTED_CHAT_MESSAGE_TYPE.
Related Documentation
Messaging
Understand the Whats91-specific message sending endpoints for templates, chat messages, media, buttons, and lists.
Template Send
Send approved WhatsApp templates with Whats91-specific fields, aliases, media headers, and button parameters.
Chat Text
Send Whats91-specific free-form chat text messages inside the customer service window.
Chat Media
Send image, video, audio, and document chat messages through Whats91-specific media fields.