Basic Example
Complete Example
Example Code
Properties
Identifies this as an actions blockMust be
actionsThe default endpoint URL for all buttons in this actions block. Individual buttons can override this with their own
action_url.A unique identifier for this actions block. Included in action payloads for server-side identification.
How It Works
- The
actionsblock renders its child buttons in a horizontal row - When a user clicks a button, the action payload is POSTed to the button’s
action_url(or the parent actions block’saction_url) - The server processes the action and responds with new BlockKit content
- The response can replace, update, or append blocks in the UI
Nesting Rules
Theactions block can be placed inside:
- Root level
- Section
- Wizard Step
- Column Layout columns
actions block can only contain:
- Button elements
Usage Notes
- Use the
actionsblock to group related action buttons together - Buttons inside an
actionsblock are displayed side-by-side horizontally - Set the
action_urlon the actions block to apply a default endpoint to all child buttons - Each button can override the parent
action_urlif it needs to POST to a different endpoint
