Chat Schedule Message
Schedules a message to be sent to a channel.
Authorization
slackAuth chat:write:user, chat:write:botIn: header
Scope: chat:write:user, chat:write:bot
Header Parameters
Authentication token. Requires scope: chat:write
Value in
- "application/x-www-form-urlencoded"
Request Body
application/x-www-form-urlencoded
Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details.
How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.
Unix EPOCH timestamp of time in future to send the message.
Change how messages are treated. Defaults to none. See chat.postMessage.
Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See chat.postMessage.
Find and link channel names and usernames.
A JSON-based array of structured attachments, presented as a URL-encoded string.
A JSON-based array of structured blocks, presented as a URL-encoded string.
Pass true to enable unfurling of primarily text-based content.
Pass false to disable unfurling of media content.
Provide another message's ts value to make this message a reply. Avoid using a reply's ts value; use its parent instead.
doubleUsed in conjunction with thread_ts and indicates whether reply should be made visible to everyone in the channel or conversation. Defaults to false.
Response Body
application/json
application/json
curl -X POST "https://example.com/chat.scheduleMessage" \ -H "Content-Type: application/x-www-form-urlencoded" \ -H "Content-Type: application/x-www-form-urlencoded" \ -d ''{ "channel": "string", "message": { "bot_id": "string", "bot_profile": { "app_id": "string", "deleted": true, "icons": { "image_36": "http://example.com", "image_48": "http://example.com", "image_72": "http://example.com" }, "id": "string", "name": "string", "team_id": "string", "updated": 0 }, "team": "string", "text": "string", "type": "string", "user": "string", "username": "string" }, "ok": "True", "post_at": 0, "scheduled_message_id": "string"}
