Message Types
Webhook payloads when someone messages you — every bubble kind on message.received.
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:
| Field | Meaning |
|---|---|
event | e.g. message.received.personal |
message_id | ULID of the chat message |
message_type | Bubble kind (below) |
message | Preview text — body, caption, card title, or display label |
sender | Sender username (not internal user id) |
created_at | When the message was written (RFC3339Nano) |
webhook_at | When 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_type | Extra fields | Follow-up event |
|---|---|---|
text | — | — |
attachment | attachment | — |
poll | question, options, limit, … | — |
location | lat, lng | — |
contact | display_name, reason | — |
button / list / form | actions / 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.kind | Typical message when no caption |
|---|---|
image | Photo or filename |
video | Video or filename |
audio | 🎤 M:SS (voice) or Audio |
pdf | PDF or filename |
doc | Document or filename |
excel | Spreadsheet or filename |
file | File 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, …).
| Who | Typical event |
|---|---|
| You sent the card via API | message.sent.* |
| Someone else in the room (group/channel member, or DM peer with webhook) when a card lands in the thread | message.received.* |
| User taps a button/list row | interactive.postback |
| User submits a form | interactive.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
- What each notification looks like — room variants, postback, submit, member events
- Download a file
- Example handler code