Skip to main content

Post message

Post a message to a channel (or a user's DM), optionally as a thread reply.

Command in the Slack toolkit · id ooa.slack/post_message · 13 inputs (3 required), 1 output

Inputs​

InputTypeRequiredDefaultWhat it is
Bot tokenCredentialYesSlack bot token (xoxb-...) from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
ChannelStringYesChannel id, a user id for a direct message, or a channel name such as #ops-alerts (looked up first).
TextStringYesMessage text (Slack markdown).
Thread tsStringNoReply in the thread of this message.
Reply broadcastBooleanNofalseThread replies only: also show the reply in the channel.
BlocksAnyNoBlock Kit layout: a List of blocks or its JSON text; the text is then the notification fallback.
Unfurl linksBooleanNoShow previews of linked pages; Slack decides when empty.
Unfurl mediaBooleanNoShow previews of linked images and videos; Slack decides when empty.
MrkdwnBooleanNotrueFormat the text as Slack markdown; false sends it as typed.
UsernameStringNoName shown as the sender (needs the chat:write.customize scope).
Icon emojiStringNoEmoji shown as the sender's picture (needs chat:write.customize).
FilesListNoLocal files to share in the same conversation, right after the message.
Endpoint addressStringNohttps://slack.com/apiAPI endpoint; change only for testing.

Outputs​

OutputTypeWhat it is
tsStringMessage timestamp id (use it to reply in a thread).