Skip to content

Interactive Action Buttons

Add 1-tap action buttons like Confirm, Reschedule, Open Link, or Copy Code.

1 min read

Send a button card

curl -sS -X POST "$BASE/v1/messages/send" 
  -H "Authorization: Bearer $KEY" 
  -H "Idempotency-Key: appt-card-tue10" 
  -H "Content-Type: application/json" 
  -d '{
    "to": "peer_username",
    "type": "button",
    "name": "appt_confirm:tue10",
    "schema_version": 1,
    "text": "Confirm appointment for Tuesday 10:00?",
    "actions": [
      { "id": "yes", "type": "reply", "label": "Yes", "write": true },
      { "id": "no", "type": "reply", "label": "No", "write": false },
      { "id": "details", "type": "url", "label": "Details", "url": "https://example.com/booking/tue10" },
      { "id": "code", "type": "copy", "label": "Copy code", "value": "BK-2048" }
    ],
    "expires_at": "2026-08-26T10:00:00.000Z"
  }'

Action types

TypeWhat happens
replyYou get a notification
urlOpens the link
copyCopies value

Button and list cards require name (forms use form_id, not name).

When they tap

Subscribe to button taps — see notifications.