Header block
Displays plain text in a larger, bold font to start a group of content.
| Type | header |
| Available in | Messages, Modals, Home tab |
Fields
Section titled “Fields”| Field | Type | Description | Required? |
|---|---|---|---|
type |
String | The type of block. For a header block, type is always header. |
Required |
text |
Text object | The text for the block, as a plain_text text object. Maximum length for the text in this field is 150 characters. |
Required |
block_id |
String | A unique identifier for the block. Maximum length is 255 characters. It must be unique within the message or view — a duplicate is replaced and reported as a warning. | Optional |
Examples
Section titled “Examples”A header above a summary
Section titled “A header above a summary”
{ "blocks": [ { "type": "header", "text": { "type": "plain_text", "text": "Weekly sales summary" } }, { "type": "section", "fields": [ { "type": "mrkdwn", "text": "*Closed won*\nSAR 344,000" }, { "type": "mrkdwn", "text": "*New deals*\n27" }, { "type": "mrkdwn", "text": "*Win rate*\n31%" }, { "type": "mrkdwn", "text": "*Avg. cycle*\n18 days" } ] } ]}