Request body for chat.postMessage. One of text, blocks, attachments or markdown_text is required.
| Property | Type | Description |
|---|---|---|
| as_user | Boolean |
(Legacy) Pass true to post the message as the authed user instead of as a bot. |
| attachments |
A JSON-based array of structured (legacy) attachments. |
|
| blocks |
A JSON-based array of structured Block Kit blocks. |
|
| channel | String |
Required. An encoded ID or channel name that represents a channel, private group, or IM channel to send the message to. |
| icon_emoji | String |
Emoji to use as the icon for this message. Overrides |
| icon_url | String |
URL to an image to use as the icon for this message. |
| link_names | Boolean |
Find and link user groups. No longer supports linking individual users; use the |
| markdown_text | String |
Accepts message text formatted in markdown (max 12,000 characters). Cannot be used together with |
| metadata | Message_Metadata |
JSON object with |
| mrkdwn | Boolean |
Disable Slack markup parsing by setting to false. Defaults to true. |
| parse | String |
Change how messages are treated ( |
| reply_broadcast | Boolean |
Used with |
| text | String |
How this field works depends on whether |
| thread_ts | String |
Provide another message's |
| unfurl_links | Boolean |
Pass true to enable unfurling of primarily text-based content. |
| unfurl_media | Boolean |
Pass false to disable unfurling of media content. |
| username | String |
Set your bot's user name. |