Send Message
Send a message to a channel, a private group or a group chat.
note
If the channel/group is private, the Blink application must be added to the channel to send messages to it.
caution
When using Slack User connection, the message will be sent on behalf of the authorized user who created the connection.
Basic Parameters
Parameter | Description |
---|---|
Channel | Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. |
Content | The message content, in text or blocks format. Learn more about Slack Blocks. |
Send To | Choose the message's destination. |
Thread Timestamp | If the message is sent in a channel, provide another message's timestamp value to make this message a reply. Avoid using a reply's timestamp value, use its parent instead. |
User Emails | List of users to send the message to in a group chat. |
Advanced Parameters
Parameter | Description |
---|---|
Mentions | User emails to mention in the message, separated by commas. |
Example Output
{
"ok": true,
"channel": "C03L2S98MM4",
"ts": "1668526867.176019",
"message": {
"bot_id": "B02PJCV1QKB",
"type": "message",
"text": "example message text",
"user": "U02P2RBCW6R",
"ts": "1668526867.176019",
"app_id": "A02NB62TUMN",
"blocks": [
{
"type": "rich_text",
"block_id": "uLIbW",
"elements": [
{
"type": "rich_text_section",
"elements": [
{
"type": "text",
"text": "example message text"
}
]
}
]
}
],
"team": "T01NVABR4UW",
"bot_profile": {
"id": "B02PJCV1QKB",
"app_id": "A02NB62TUMN",
"name": "Blink",
"icons": {
"image_36": "https://avatars.slack-edge.com/2021-12-16/2842727097478_e542ce7abd1ea0ec4846_36.jpg",
"image_48": "https://avatars.slack-edge.com/2021-12-16/2842727097478_e542ce7abd1ea0ec4846_48.jpg",
"image_72": "https://avatars.slack-edge.com/2021-12-16/2842727097478_e542ce7abd1ea0ec4846_72.jpg"
},
"deleted": false,
"updated": 1639646274,
"team_id": "T01NVABR4UW"
}
}
}