Skip to content

Message Types

Webhook payloads when someone messages you — every bubble kind on message.received.

3 min read

These examples use message.received.personal. For a group, add "group_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV" and use event message.received.group. For a channel, add "channel_id": "…" and use message.received.channel.

Every message.received.* body includes:

FieldMeaning
evente.g. message.received.personal
message_idULID of the chat message
message_typeBubble kind (below)
messagePreview text — body, caption, card title, or display label
senderSender username (not internal user id)
created_atWhen the message was written (RFC3339Nano)
webhook_atWhen Kenalko POSTed the webhook

Not on the wire: conversation_id, seq, user_id, file bytes. Download files with GET /v1/files/{file_id}.

View-once photos/videos never fire a webhook.

Multi-photo album in chat = N separate attachment messages (and N webhooks) — the app merges them visually only.

Rich content: message.received.* and message.sent.* include enough body to rebuild CRM UI (poll options, lat/lng, list rows, form fields, button actions, …). Optional context.reply / context.forward when the sender quoted or forwarded a message. Still no conversation_id, internal user_id, or file bytes.

Card answers: button/list taps → interactive.postback · form submit → interactive.submit · poll vote → poll.vote.

Summary

message_typeExtra fieldsFollow-up event
text——
attachmentattachment—
pollquestion, options, limit, …—
locationlat, lng—
contactdisplay_name, reason—
button / list / formactions / sections / fields, …Same rich body on message.received.* and message.sent.* when a card appears in the thread. Chat users cannot compose cards — only API sends them. Taps → interactive.postback · form answers → interactive.submit
chat_me— (preview message: Chat me)Group-only invite bubble — message.received.group

text

Plain text message.

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000002",
  "message_type": "text",
  "message": "Hello, I need help with order #8821",
  "sender": "alice_shop",
  "created_at": "2026-08-23T06:01:00.000000000Z",
  "webhook_at": "2026-08-23T06:01:00.000Z"
}

With reply or forward (context)

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000003",
  "message_type": "text",
  "message": "Yes, we still have stock",
  "sender": "alice_shop",
  "context": {
    "reply": {
      "message_id": "01MSG000000000000001",
      "snippet": "Do you have size 42?",
      "sender": "alice_shop"
    }
  },
  "created_at": "2026-08-23T06:01:30.000000000Z",
  "webhook_at": "2026-08-23T06:01:30.123456789Z"
}
{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000004",
  "message_type": "text",
  "message": "FYI — forwarding this",
  "sender": "bob_crm",
  "context": {
    "forward": {
      "message_id": "01MSG000000000000002",
      "sender": "alice_shop"
    }
  },
  "created_at": "2026-08-23T06:02:00.000000000Z",
  "webhook_at": "2026-08-23T06:02:00.123456789Z"
}

attachment

One file. Metadata only — use attachment.file_id to download.

Image

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000010",
  "message_type": "attachment",
  "message": "Photo",
  "attachment": {
    "kind": "image",
    "file_id": "01ARZ3NDEKTSV4RRFFQ69G5FB0",
    "name": "receipt.jpg",
    "mime": "image/jpeg",
    "size": 245760
  },
  "sender": "alice_shop",
  "created_at": "2026-08-23T06:02:00.000000000Z",
  "webhook_at": "2026-08-23T06:02:00.000Z"
}

Voice note (kind: audio)

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000011",
  "message_type": "attachment",
  "message": "🎤 0:42",
  "attachment": {
    "kind": "audio",
    "file_id": "01ARZ3NDEKTSV4RRFFQ69G5FB1",
    "name": "voice.webm",
    "mime": "audio/webm",
    "size": 98304
  },
  "sender": "alice_shop",
  "created_at": "2026-08-23T06:02:30.000000000Z",
  "webhook_at": "2026-08-23T06:02:30.000Z"
}

Video

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000012",
  "message_type": "attachment",
  "message": "Product demo",
  "attachment": {
    "kind": "video",
    "file_id": "01ARZ3NDEKTSV4RRFFQ69G5FB2",
    "name": "demo.mp4",
    "mime": "video/mp4",
    "size": 5242880
  },
  "sender": "alice_shop",
  "created_at": "2026-08-23T06:03:00.000000000Z",
  "webhook_at": "2026-08-23T06:03:00.000Z"
}

When the sender adds a caption, message is the caption text instead of the default label (Photo, Video, …).

PDF / document

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000004",
  "message_type": "attachment",
  "message": "August invoice",
  "attachment": {
    "kind": "pdf",
    "file_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
    "name": "invoice.pdf",
    "mime": "application/pdf",
    "size": 2048
  },
  "sender": "alice_shop",
  "created_at": "2026-08-23T06:03:30.000000000Z",
  "webhook_at": "2026-08-23T06:03:30.000Z"
}
attachment.kindTypical message when no caption
imagePhoto or filename
videoVideo or filename
audio🎤 M:SS (voice) or Audio
pdfPDF or filename
docDocument or filename
excelSpreadsheet or filename
fileFile or filename

poll

Someone shared a poll — full question + options on the wire (live vote counts stay in-app).

{
  "event": "message.received.group",
  "message_id": "01MSG000000000000030",
  "message_type": "poll",
  "message": "Poll: Which time slot works for you?",
  "question": "Which time slot works for you?",
  "options": ["Morning", "Afternoon", "Evening"],
  "limit": 1,
  "sender": "alice_shop",
  "group_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "created_at": "2026-08-23T06:05:00.000000000Z",
  "webhook_at": "2026-08-23T06:05:00.000Z"
}

location

Shared map pin with coordinates.

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000040",
  "message_type": "location",
  "message": "Location",
  "lat": -6.2088,
  "lng": 106.8456,
  "sender": "alice_shop",
  "created_at": "2026-08-23T06:06:00.000000000Z",
  "webhook_at": "2026-08-23T06:06:00.000Z"
}

contact

Contact / intro request card (message = display name preview).

{
  "event": "message.received.personal",
  "message_id": "01MSG000000000000050",
  "message_type": "contact",
  "message": "Andi Wijaya",
  "display_name": "Andi Wijaya",
  "reason": "Sales contact for enterprise orders",
  "sender": "alice_shop",
  "created_at": "2026-08-23T06:07:00.000000000Z",
  "webhook_at": "2026-08-23T06:07:00.000Z"
}

button, list, form

Button, list, and form bubbles are API-only to compose — chat users cannot type these in the composer. When a card exists in a conversation, message.received.* and message.sent.* carry the same CRM body (actions, sections, fields, name, …).

WhoTypical event
You sent the card via APImessage.sent.*
Someone else in the room (group/channel member, or DM peer with webhook) when a card lands in the threadmessage.received.*
User taps a button/list rowinteractive.postback
User submits a forminteractive.submit

Example message.received.group — another member’s API bot posted a list card everyone can see:

{
  "event": "message.received.group",
  "message_id": "01MSG000000000000062",
  "message_type": "list",
  "message": "Pick a product category",
  "name": "product_menu",
  "sections": [
    {
      "title": "Shop",
      "rows": [
        { "id": "shoes", "title": "Shoes", "description": "Running & casual" },
        { "id": "bags", "title": "Bags" }
      ]
    }
  ],
  "sender": "shop_bot",
  "group_id": "01ARZ3NDEKTSV4RRFFQ69G5FAV",
  "created_at": "2026-08-23T06:08:00.000000000Z",
  "webhook_at": "2026-08-23T06:08:00.000Z"
}

Example message.sent.personal — your API send confirmation (to instead of sender):

{
  "event": "message.sent.personal",
  "message_id": "01MSG000000000000060",
  "message_type": "list",
  "message": "Pick a product category",
  "name": "product_menu",
  "sections": [
    {
      "title": "Shop",
      "rows": [
        { "id": "shoes", "title": "Shoes", "description": "Running & casual" },
        { "id": "bags", "title": "Bags" }
      ]
    }
  ],
  "to": "alice_shop",
  "created_at": "2026-08-23T06:08:00.000000000Z",
  "webhook_at": "2026-08-23T06:08:00.000Z"
}

Example message.sent.personal button card:

{
  "event": "message.sent.personal",
  "message_id": "01MSG000000000000061",
  "message_type": "button",
  "message": "Confirm appointment for Tuesday 10:00?",
  "actions": [
    { "id": "yes", "type": "reply", "label": "Yes", "write": true },
    { "id": "no", "type": "reply", "label": "No", "write": false }
  ],
  "to": "alice_shop",
  "created_at": "2026-08-23T06:08:30.000000000Z",
  "webhook_at": "2026-08-23T06:08:30.000Z"
}

How to send cards: Buttons · Lists · Forms.


Next