Whats91
Developers

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

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