Send Interactive Messages
Interactive list messages allow you to present users with a list of options to choose from.
Reply with Interactive Message
POST
/v.1.1/org/:orgId/whatsapp/appuser/:appuser/reply
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
Name
Type
Description
type
string
The type of the message e.g 'text' | 'interactive' | 'file' | 'video' | 'image'
interactive
object
The body of the interactive message further documentation can be found here Meta Documentation
curl -X POST "https://www.channel360.co.za/v1.1/org/{orgId}/whatsapp/appuser/{appUser}/reply" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: */*" \
-d '{
"type": "interactive",
"interactive": {
"type": "list",
"header": {
"type": "text",
"text": "CSAT Survey"
},
"body": {
"text": "How likely are you to recommend whatsapp to a friend?"
},
"footer": {
"text": "Please make your selection"
},
"action": {
"button": "Answers",
"sections": [
{
"title": "Your score:",
"rows": [
{ "id": "001", "title": "1" },
{ "id": "002", "title": "2" },
{ "id": "003", "title": "3" },
{ "id": "004", "title": "4" },
{ "id": "005", "title": "5" }
]
}
]
}
}
}'
Last updated
Was this helpful?