Expand description
Slack Block Kit types (blocks, elements, composition objects), plus message attachments, views and message metadata.
Structs§
- Action
Cell - A cell holding a button (data table blocks only). https://docs.slack.dev/reference/block-kit/blocks/data-table-block
- Actions
Block - A block that holds interactive elements. https://docs.slack.dev/reference/block-kit/blocks/actions-block
- Alert
Block - A block that shows an alert, warning or informational message (modals only). https://docs.slack.dev/reference/block-kit/blocks/alert-block
- Area
Chart - An area chart. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Attachment
- A legacy secondary message attachment (can also hold
blocks). https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments - Attachment
Field - A field shown in a table inside an attachment. https://docs.slack.dev/legacy/legacy-messaging/legacy-secondary-message-attachments
- Attachment
Mention Element - A reference to an app attachment or entity. https://docs.slack.dev/reference/block-kit/block-elements/attachment-mention-element
- Axis
Config - X-axis categories and axis labels. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- BarChart
- A bar chart. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Broadcast
Element - A broadcast mention (@here, @channel or @everyone). https://docs.slack.dev/reference/block-kit/block-elements/broadcast-element
- Button
Element - A button. https://docs.slack.dev/reference/block-kit/block-elements/button-element
- Canvas
Element - A link to a canvas. https://docs.slack.dev/reference/block-kit/block-elements/canvas-element
- Canvas
Message Unfurl Element - An inline preview of a message inside a canvas. https://docs.slack.dev/reference/block-kit/block-elements/canvas-message-unfurl-element
- Canvas
User Mention Element - A user mention inside canvas content. https://docs.slack.dev/reference/block-kit/block-elements/canvas-user-mention-element
- Card
Block - A card. https://docs.slack.dev/reference/block-kit/blocks/card-block
- Carousel
Block - A horizontally scrolling row of cards. https://docs.slack.dev/reference/block-kit/blocks/carousel-block
- Channel
Element - A channel mention. https://docs.slack.dev/reference/block-kit/block-elements/channel-element
- Channels
Select Element - A select menu of public channels. https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element
- Checkboxes
Element - A group of checkboxes. https://docs.slack.dev/reference/block-kit/block-elements/checkboxes-element
- Citation
Element - An AI citation. https://docs.slack.dev/reference/block-kit/block-elements/citation-element
- Color
Element - A color swatch. https://docs.slack.dev/reference/block-kit/block-elements/color-element
- Column
Setting - Settings for a table column (use
Nonefor a column that keeps the defaults, sent asnull). https://docs.slack.dev/reference/block-kit/blocks/table-block - Confirmation
Dialog - A confirmation dialog. https://docs.slack.dev/reference/block-kit/composition-objects/confirmation-dialog-object
- Container
Block - A container that groups child blocks. https://docs.slack.dev/reference/block-kit/blocks/container-block
- Context
Actions Block - A block that shows feedback buttons and icon buttons as contextual actions. https://docs.slack.dev/reference/block-kit/blocks/context-actions-block
- Context
Block - A block that shows supplementary info in small text and images. https://docs.slack.dev/reference/block-kit/blocks/context-block
- Conversation
Filter - A filter for conversation select menus. https://docs.slack.dev/reference/block-kit/composition-objects/conversation-filter-object
- Conversations
Select Element - A select menu of conversations. https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element
- Data
Point - One data point in a series. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Data
Series - A data series in a chart. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Data
Table Block - A table with pagination, sorting and filtering. https://docs.slack.dev/reference/block-kit/blocks/data-table-block
- Data
Visualization Block - A chart. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Date
Element - A date formatted for the viewer’s locale and time zone. https://docs.slack.dev/reference/block-kit/block-elements/date-element
- Date
Picker Element - A date picker. https://docs.slack.dev/reference/block-kit/block-elements/date-picker-element
- Datetime
Picker Element - A date and time picker. https://docs.slack.dev/reference/block-kit/block-elements/datetime-picker-element
- Dispatch
Action Config - Configures when typing in an input dispatches a
block_actionspayload. https://docs.slack.dev/reference/block-kit/composition-objects/dispatch-action-configuration-object - Divider
Block - A divider line. https://docs.slack.dev/reference/block-kit/blocks/divider-block
- Email
Input Element - An email input. https://docs.slack.dev/reference/block-kit/block-elements/email-input-element
- Emoji
Element - An emoji. https://docs.slack.dev/reference/block-kit/block-elements/emoji-element
- External
Citation - An external app citation source. https://docs.slack.dev/reference/block-kit/block-elements/citation-element
- External
Select Element - A select menu that loads options from an external data source. https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element
- Feedback
Button - One of the feedback buttons. https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element
- Feedback
Buttons Element - Positive and negative feedback buttons. https://docs.slack.dev/reference/block-kit/block-elements/feedback-buttons-element
- File
Block - A remote file (only appears in retrieved messages). https://docs.slack.dev/reference/block-kit/blocks/file-block
- File
Citation - A file citation source. https://docs.slack.dev/reference/block-kit/block-elements/citation-element
- File
Element - A link to a Slack file. https://docs.slack.dev/reference/block-kit/block-elements/file-element
- File
Input Element - A file upload input. https://docs.slack.dev/reference/block-kit/block-elements/file-input-element
- Header
Block - A header. https://docs.slack.dev/reference/block-kit/blocks/header-block
- Icon
Button Element - An icon button. https://docs.slack.dev/reference/block-kit/block-elements/icon-button-element
- Image
Block - An image block (either
image_urlorslack_file). https://docs.slack.dev/reference/block-kit/blocks/image-block - Image
Element - An image element (either
image_urlorslack_file). https://docs.slack.dev/reference/block-kit/block-elements/image-element - Input
Block - An input field. https://docs.slack.dev/reference/block-kit/blocks/input-block
- Input
Parameter - An input parameter passed to a trigger. https://docs.slack.dev/reference/block-kit/composition-objects/trigger-object
- Line
Chart - A line chart. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Link
Element - A hyperlink. https://docs.slack.dev/reference/block-kit/block-elements/link-element
- List
Record Element - A link to a Slack list record. https://docs.slack.dev/reference/block-kit/block-elements/list-record-element
- Markdown
Block - A block that renders standard Markdown. https://docs.slack.dev/reference/block-kit/blocks/markdown-block
- Memory
Citation - A memory citation source. https://docs.slack.dev/reference/block-kit/block-elements/citation-element
- Message
Citation - A message citation source. https://docs.slack.dev/reference/block-kit/block-elements/citation-element
- Message
Mention Element - A link to a Slack message. https://docs.slack.dev/reference/block-kit/block-elements/message-mention-element
- Message
Metadata - Metadata attached to a message. https://docs.slack.dev/messaging/message-metadata
- Mrkdwn
- A
mrkdwntext object. https://docs.slack.dev/reference/block-kit/composition-objects/text-object - Multi
Channels Select Element - A multi-select menu of public channels. https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element
- Multi
Conversations Select Element - A multi-select menu of conversations. https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element
- Multi
External Select Element - A multi-select menu that loads options from an external data source. https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element
- Multi
Static Select Element - A multi-select menu with static options (either
optionsoroption_groups). https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element - Multi
Users Select Element - A multi-select menu of users. https://docs.slack.dev/reference/block-kit/block-elements/multi-select-menu-element
- Number
Input Element - A number input. https://docs.slack.dev/reference/block-kit/block-elements/number-input-element
- Option
Group - A group of options. https://docs.slack.dev/reference/block-kit/composition-objects/option-group-object
- Option
Object - An option. https://docs.slack.dev/reference/block-kit/composition-objects/option-object
- Overflow
Element - An overflow menu. https://docs.slack.dev/reference/block-kit/block-elements/overflow-menu-element
- PieChart
- A pie chart. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Plain
Text - A
plain_texttext object. https://docs.slack.dev/reference/block-kit/composition-objects/text-object - Plain
Text Input Element - A plain-text input. https://docs.slack.dev/reference/block-kit/block-elements/plain-text-input-element
- Plan
Block - A collection of related tasks. https://docs.slack.dev/reference/block-kit/blocks/plan-block
- Plan
Task - A task inside a plan block (has no
type). https://docs.slack.dev/reference/block-kit/blocks/plan-block - Radio
Buttons Element - A radio button group. https://docs.slack.dev/reference/block-kit/block-elements/radio-button-group-element
- RawNumber
Cell - A numeric cell. https://docs.slack.dev/reference/block-kit/blocks/data-table-block
- RawText
Cell - A plain text cell. https://docs.slack.dev/reference/block-kit/blocks/data-table-block
- Rich
Text Block - A rich text block. https://docs.slack.dev/reference/block-kit/blocks/rich-text-block
- Rich
Text Input Element - A rich text input. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-input-element
- Rich
Text List - A rich text list. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-list-element
- Rich
Text Preformatted - A rich text preformatted (code) block. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-preformatted-element
- Rich
Text Quote - A rich text quote. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-quote-element
- Rich
Text Section - A rich text section. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-section-element
- Rich
Text Style - Styling for a rich text element. https://docs.slack.dev/reference/block-kit/block-elements/text-element
- Salesforce
Data Field Element - A reference to a Salesforce data field. https://docs.slack.dev/reference/block-kit/block-elements/salesforce-data-field-element
- Section
Block - The basic block for text, optionally alongside an element. https://docs.slack.dev/reference/block-kit/blocks/section-block
- Segment
- One slice of a pie chart. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Slack
File - A Slack file used as an image (either
urlorid). https://docs.slack.dev/reference/block-kit/composition-objects/slack-file-object - Slack
Icon - A built-in Slack icon. https://docs.slack.dev/reference/block-kit/composition-objects/slack-icon-object
- Static
Select Element - A select menu with static options (either
optionsoroption_groups). https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element - Table
Block - A table. https://docs.slack.dev/reference/block-kit/blocks/table-block
- TagElement
- A colored tag. https://docs.slack.dev/reference/block-kit/block-elements/tag-element
- Task
Card Block - A single task. https://docs.slack.dev/reference/block-kit/blocks/task-card-block
- Team
Element - A workspace (team) mention. https://docs.slack.dev/reference/block-kit/block-elements/team-element
- Text
Element - Text. https://docs.slack.dev/reference/block-kit/block-elements/text-element
- Time
Picker Element - A time picker. https://docs.slack.dev/reference/block-kit/block-elements/time-picker-element
- Trigger
- A workflow link trigger. https://docs.slack.dev/reference/block-kit/composition-objects/trigger-object
- UrlInput
Element - A URL input. https://docs.slack.dev/reference/block-kit/block-elements/url-input-element
- UrlSource
Element - A URL source shown in a task card block. https://docs.slack.dev/reference/block-kit/block-elements/url-source-element
- User
Element - A user mention. https://docs.slack.dev/reference/block-kit/block-elements/user-element
- Usergroup
Element - A user group mention. https://docs.slack.dev/reference/block-kit/block-elements/usergroup-element
- Users
Select Element - A select menu of users. https://docs.slack.dev/reference/block-kit/block-elements/select-menu-element
- Video
Block - An embedded video. https://docs.slack.dev/reference/block-kit/blocks/video-block
- View
- A view for views.open / publish / update / push (the later fields are only returned by Slack). https://docs.slack.dev/reference/views
- View
State - Current input values (
block_id->action_id-> value). Kept as raw JSON because the shape differs by element type. - WebCitation
- A web page citation source. https://docs.slack.dev/reference/block-kit/block-elements/citation-element
- Work
Object Mention Element - A reference to a Work Object. https://docs.slack.dev/reference/block-kit/block-elements/work-object-mention-element
- Workflow
- The workflow run by a workflow button. https://docs.slack.dev/reference/block-kit/composition-objects/workflow-object
- Workflow
Button Element - A button that runs a workflow. https://docs.slack.dev/reference/block-kit/block-elements/workflow-button-element
- Workflow
Mention Element - A link to a workflow. https://docs.slack.dev/reference/block-kit/block-elements/workflow-mention-element
Enums§
- Action
Cell Fallback - The cell shown instead of the button on clients that do not support action cells. https://docs.slack.dev/reference/block-kit/blocks/data-table-block
- Actions
Element - An element allowed in an actions block. https://docs.slack.dev/reference/block-kit/blocks/actions-block
- Alert
Level - The level of an alert block. Unknown values go to
Other. - Attachment
Ts - The
tsof an attachment. Sent as a number, but returned as a string (e.g."1503435956.000247") in places such as message unfurls. - Block
- A layout block. https://docs.slack.dev/reference/block-kit/blocks
- Broadcast
Range - The range of a broadcast mention. Unknown values go to
Other. - Button
Style - The color scheme of a button. Unknown values go to
Other. - Chart
- The chart payload for each chart type. https://docs.slack.dev/reference/block-kit/blocks/data-visualization-block
- Citation
Details - Details of a citation source (the kind is set by
citation_type). https://docs.slack.dev/reference/block-kit/block-elements/citation-element - Column
Align - Column alignment. Unknown values go to
Other. - Container
Width - The width of a container block. Unknown values go to
Other. - Context
Actions Element - An element allowed in a context actions block. https://docs.slack.dev/reference/block-kit/blocks/context-actions-block
- Context
Element - An element allowed in a context block (images and text). https://docs.slack.dev/reference/block-kit/blocks/context-block
- Conversation
Type - A conversation type. Unknown values go to
Other. - Data
Table Cell - A cell in a data table block. https://docs.slack.dev/reference/block-kit/blocks/data-table-block
- Input
Element - An element allowed in an input block. https://docs.slack.dev/reference/block-kit/blocks/input-block
- Preformatted
Element - An element allowed in a preformatted block (text and links). https://docs.slack.dev/reference/block-kit/block-elements/rich-text-preformatted-element
- Rich
Text Element - An inline rich text element used in sections, lists and quotes. https://docs.slack.dev/reference/block-kit/block-elements/rich-text-section-element
- Rich
Text List Style - The style of a rich text list. Unknown values go to
Other. - Rich
Text Object - A top-level element of a rich text block. https://docs.slack.dev/reference/block-kit/blocks/rich-text-block
- Section
Accessory - An element allowed as the
accessoryof a section block. https://docs.slack.dev/reference/block-kit/blocks/section-block - Table
Cell - A cell in a table block. https://docs.slack.dev/reference/block-kit/blocks/table-block
- TagColor
- The color of a tag. Unknown values go to
Other. - Task
Status - The status of a task. Unknown values go to
Other. - Text
Object - A text object (
plain_textormrkdwn). https://docs.slack.dev/reference/block-kit/composition-objects/text-object - Trigger
Action - An event that dispatches a
block_actionspayload. Unknown values go toOther. - View
Type - The type of a view. Unknown values go to
Other.