API Reference slackblocks v#2.8.0

View Source

Modules

Constructs and validates Slack Block Kit values without sending HTTP requests.

A legacy message attachment containing blocks and an optional color bar.

A block that holds interactive elements such as buttons and menus.

A severity-labelled alert, available in modals.

A compact card with an image, text, and up to three buttons.

A horizontally scrolling set of cards, available in messages and App Home.

A titled group of blocks that can optionally collapse.

A block of small, secondary images and text.

A row of feedback or icon buttons, usually shown below AI-generated content.

A sortable, paginated table of raw text, numbers, and rich text.

A titled pie, bar, area, or line chart.

A horizontal rule that separates blocks.

A remote file previously added with the files.remote API.

Large, bold plain text that introduces a group of blocks.

A standalone image with alternative text and an optional title.

A labelled input that collects a value in a modal, App Home, or message.

Standard markdown rendered by Slack, intended for AI-generated content.

A titled sequence of task cards.

Formatted text built from sections, lists, preformatted blocks, and quotes.

Text, a grid of fields, or both, with an optional accessory element.

A simple table of raw text and rich text cells.

One task with its status, details, output, and sources.

An embedded video player.

Attachment color conveniences. Returned binaries can be passed to Slackblocks.Attachment.

Expands collapsible sections into ordinary blocks in display order.

Creates a collapsible container suitable for an accordion.

Pure pagination into ordinary blocks. Interaction routing and state belong to your application.

An interactive button that sends a payload or opens a URL.

A menu for selecting multiple public channels.

A menu for selecting one public channel.

A group of checkboxes.

A menu for selecting multiple conversations.

A menu for selecting one conversation.

A calendar date picker.

A combined date and time picker.

A single-line input that accepts an email address.

A menu for selecting multiple options loaded from your app.

A menu for selecting one option loaded from your app.

A pair of thumbs-up and thumbs-down feedback buttons.

An input that lets users upload files.

A button that shows an icon instead of text.

An image displayed inside a section, context, or card.

An input that accepts whole or decimal numbers.

A compact menu of up to five options.

A single-line or multi-line free-text input.

A group of radio buttons.

An input that accepts formatted rich text.

A menu for selecting multiple options defined in the payload.

A menu for selecting one option defined in the payload.

A time-of-day picker.

A single-line input that accepts a URL.

A menu for selecting multiple workspace users.

A menu for selecting one workspace user.

A button that starts a workflow through a link trigger.

A complete payload for chat.postMessage and related Web API methods.

A response body for slash commands and interaction response URLs.

An area chart for a data visualization block.

The categories and labels shared by bar, area, and line chart axes.

A bar chart for a data visualization block.

One labelled segment of a pie chart.

Alignment and wrapping settings for one table column.

A dialog that asks users to confirm an action before it is sent.

Limits which conversations a conversation menu offers.

One value of a chart series, keyed by axis category.

A named series of chart data points.

Chooses which interactions with an input send a block_actions payload.

One button of a feedback buttons element.

A named value passed to a workflow trigger.

A line chart for a data visualization block.

A mrkdwn text composition object.

A selectable option for menus, checkboxes, radio buttons, and overflow menus.

A labelled group of options in a static select menu.

A pie chart for a data visualization block.

A plain-text composition object.

A numeric data table cell with display text.

An unformatted table cell.

A reference to an image file hosted in Slack.

A Slack-provided icon, referenced by name.

A link trigger that starts a workflow.

A linked source cited by a task card.

The workflow started by a workflow button.

A channel mention inside rich text.

A preformatted code block inside rich text.

An emoji inside rich text.

A hyperlink inside rich text.

A bulleted or numbered list inside rich text.

A quotation inside rich text.

A paragraph of inline rich text elements.

Optional rich-text flags. Unsupported flags are rejected by their receiving field.

A run of optionally styled text inside rich text.

A user mention inside rich text.

A user group mention inside rich text.

Role unions, closed enum atoms and JSON data types.

A categorized validation failure with wire keys and zero-based indexes in path.

The payload for publishing an App Home tab with views.publish.

The view payload for views.open, views.push, and views.update.

A payload for incoming webhooks.