Post_Message_Request

struct

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
ArrayAny

A JSON-based array of structured (legacy) attachments.

blocks
ArrayAny

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.

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 <@U123> syntax instead.

markdown_text String

Accepts message text formatted in markdown (max 12,000 characters). Cannot be used together with blocks or text.

metadata Message_Metadata

JSON object with event_type and event_payload fields.

mrkdwn Boolean

Disable Slack markup parsing by setting to false. Defaults to true.

parse String

Change how messages are treated (none or full).

reply_broadcast Boolean

Used with thread_ts; indicates whether the reply should also be visible to everyone in the channel. Defaults to false.

text String

How this field works depends on whether blocks are used: it is the message body, or the fallback text shown in notifications when blocks are given.

thread_ts String

Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead.

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.

part of the Apioo-Project