Skip to content

Displays plain text in a larger, bold font to start a group of content.

Type header
Available in Messages, Modals, Home tab
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

A header above a summary — how it renders in Repzo Chat

{
"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"
}
]
}
]
}