Langsung ke konten

Menu & list

Kartu pilihan bertingkat untuk booking, support, dll.

1 min read

Kirim kartu list

curl -sS -X POST "$BASE/v1/messages/send" 
  -H "Authorization: Bearer $KEY" 
  -H "Idempotency-Key: support-menu-monday" 
  -H "Content-Type: application/json" 
  -d '{
    "to": "peer_username",
    "type": "list",
    "name": "support_menu",
    "schema_version": 1,
    "limit": 1,
    "text": "Choose a topic",
    "sections": [
      {
        "title": "Support",
        "rows": [
          {
            "id": "billing",
            "title": "Billing",
            "description": "Invoices & payments",
            "type": "reply",
            "write": true,
            "once": true
          }
        ]
      }
    ],
    "expires_at": "2026-08-26T10:00:00.000Z"
  }'

Batas

  • id baris unik di semua section
  • Maks 10 section, 30 baris total
  • name wajib

Field baris

FieldKeterangan
type: replyWebhook saat dipilih
writePilihan juga muncul sebagai pesan chat
onceHanya bisa pilih sekali

Saat user memilih

Lihat interactive.postback.