Skip to the page
KinnloDocs

DocsApps and developers

Message blocks

Lay out what your app posts: headings, sections with fields, images, context lines and buttons.

MarkdownUpdated December 2, 2026
On this page

blocks is a list, sent with or instead of text from the Web API, a webhook or a command’s answer.

JSON
[
  {"type": "header", "text": "Deploy finished"},
  {"type": "section", "text": "*web* is live on main.", "fields": ["**Took**\n42 s", "**By**\nAda Lin"]},
  {"type": "divider"},
  {"type": "actions", "items": [
    {"type": "button", "text": "Open site", "url": "https://example.com"},
    {"type": "button", "text": "Roll back", "actionId": "rollback", "style": "danger"}
  ]},
  {"type": "context", "items": [{"type": "text", "text": "Sent by the deploy pipeline"}]}
]

Block types

TypeFields
headertext, up to 150 characters.
sectiontext, fields (up to 10, each up to 2,000 characters) and an accessory (a button or an image). Needs text or fields.
contextitems: 1 to 10 small {type: "text", text} or images.
dividerA line.
imageurl, alt and an optional title (up to 150 characters).
actionsitems: 1 to 10 buttons.

Buttons

FieldWhat it is
textThe label, up to 75 characters.
actionIdSent to your server when pressed, up to 255 characters. Unique within its block.
valueOptional, up to 2,000 characters, sent with actionId.
urlOptional: an http or https address the button opens instead.
styleOptional: primary or danger.

Limits

  • Up to 50 blocks a message, and 3,000 characters of text in a block.
  • Text in blocks takes Kinnlo’s formatting and <@member id> mentions.
  • Image addresses are http or https.
  • Polls are made in the composer, not by apps.
  • Fields Kinnlo doesn’t know are dropped; a block type it doesn’t know is refused.
Something here wrong or missing?Tell us · Get help