Skip to main content

Alert block

Fields

FieldTypeDescriptionRequired?
typeStringThe type of block. For an alert block, type is always alert.Required
textStringThe alert message, using plain_text or mrkdwn formatting.Required
levelArrayOne of default, info, warning, error, or success. Will be default if omitted.Optional
block_idStringA unique identifier for a block. If not specified, a block_id will be generated.Optional

Example

A sample alert block:

{
"blocks": [
{
"type": "alert",
"text": {
"type": "mrkdwn",
"text": "The work is mysterious and important.",
"verbatim": false
},
"level": "info"
}
]
}

View in Block Kit Builder