Buttons and lists

Works on
  • WhatsApp

Send choices the person taps instead of typing

A choices message puts buttons or a list under your text. The person taps one, and their pick comes back as a message.

Send buttons

On WhatsApp, interactive takes Meta's shape: type (button or list), body.text, and its action. It holds up to three reply buttons, or a list of up to ten rows.

curl -X POST https://api.mapier.ai/v1/commands/message.send \
  -H "Authorization: Bearer $MAPIER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: booking-2481-confirm" \
  -H "x-mapier-version: 2026-12-01" \
  -d '{
    "target": { "conversationId": "a0000000-0000-4000-8000-000000000001" },
    "payload": {
      "kind": "choices",
      "interactive": {
        "type": "button",
        "body": { "text": "Still on for 7pm?" },
        "action": {
          "buttons": [
            { "type": "reply", "reply": { "id": "yes", "title": "Yes" } },
            { "type": "reply", "reply": { "id": "move", "title": "Move it" } }
          ]
        }
      }
    }
  }'

It goes to one person, not a group, and only within 24 hours of the person's last message.

Buttons

message.send · interactive: button

Receive a pick

A tap comes back as a message.received event of kind: interactive_reply, with what they tapped in interactiveReply. Incoming messages shows the whole event.

Errors you may see

ErrorMeansFix
403 recipient_not_allowed, outside_service_windowMore than 24 hours since the person's last messageSend a template
422 validation_failedToo many buttons or rows, or sent into a groupSend at most three buttons or ten rows, to one person
404 unsupported_command, not_on_channelThe line's channel does not send choicesList the choices in a text

Next