Skip to content
Coming soon

Button

nametypedescription
typeStringThe type of element. In this case type is always button.
textTextElementA text object that defines the button's text. Max length for the text field in this object is 75 characters.
valueStringAny metadata defined by the app that will be included in the interaction payload object.
urlStringURL that will open in the user's browser. The block interaction event will also be triggered.
styleStringDecorates buttons with alternative visual color schemes. Options include: primary, secondary, warning, danger.
onActionStringAction identifier defined by the app (controlled and used on the app's side).
confirmConfirmDialogA confirmation modal that will be shown just before triggering the block interaction, prompting the user to confirm the action.

Select menu (static)

nametypedescription
typeStringThe type of element. In this case type is always static_select_menu.
placeholderTextElementA text object that defines the select menu's placeholder text. Max length for the text field in this object is 75 characters.
optionsOption[]An array of option objects. Maximum number of options is 100. If option_groups is specified, this field should not be.
option_groupsOptionGroup[]An array of option group objects. Maximum number of option groups is 100. If options is specified, this field should not be.
initial_optionOption[] or OptionGroup[]A single option that exactly matches one of the options within options or option_groups. This option will be selected when the menu initially loads.
onActionStringAction identifier defined by the app (controlled and used on the app's side).
confirmConfirmDialogA confirmation modal that will be shown just before triggering the block interaction, prompting the user to confirm the action.

Select menu (dynamic)

nametypedescription
typeStringThe type of element. In this case type is always dynamic_select_menu.
placeholderTextElementA text object that defines the select menu's placeholder text. Max length for the text field in this object is 75 characters.
min_query_lengthIntegerIf this field is not defined, a request will be sent on every character change. To reduce the number of requests sent, use this field to specify the minimum number of typed characters required before dispatching.
initial_optionOption[] or OptionGroup[]This option will be selected when the menu initially loads.
onActionStringAction identifier defined by the app (controlled and used on the app's side).
confirmConfirmDialogA confirmation modal that will be shown just before triggering the block interaction, prompting the user to confirm the action.

ConfirmDialog

nametypedescription
titleTextElementA text object that defines the dialog's title. Max length for the text field in this object is 75 characters.
textTextElementA text object that defines the dialog's text. Max length for the text field in this object is 300 characters.
confirmTextElementA text object that defines the confirm button text. Max length for the text field in this object is 75 characters.
denyTextElementA text object that defines the deny button text. Max length for the text field in this object is 75 characters.
styleStringDefines the color scheme applied to the confirm button. Options include: primary, secondary, warning, danger.

Option

nametypedescription
textTextElementA text object that defines the option's text. Max length for the text field in this object is 75 characters.
valueStringA unique string value that will be passed to the app when this option is chosen. The maximum length is 100 characters.
descriptionTextElementA text object that defines option's description. Max length for the text field in this object is 75 characters.

Option group

nametypedescription
labelTextElementA text object that defines the options group label. Max length for the text field in this object is 75 characters.
optionsOption[]An array of option objects. Maximum number of options is 100.

Text element

nametypedescription
typeStringThe type of element. In this case type is always plain_text.
textStringText that will be displayed.
emojiBooleanIndicates whether emojis in a text field should be escaped into the colon emoji format.