Chat

Chat Schedule Message

POST
/chat.scheduleMessage

Schedules a message to be sent to a channel.

Authorization

slackAuth chat:write:user, chat:write:bot
AuthorizationBearer <token>

In: header

Scope: chat:write:user, chat:write:bot

Header Parameters

token?string

Authentication token. Requires scope: chat:write

Content-Type*"application/x-www-form-urlencoded"

Value in

  • "application/x-www-form-urlencoded"

Request Body

application/x-www-form-urlencoded

channel?string

Channel, private group, or DM channel to send message to. Can be an encoded ID, or a name. See below for more details.

text?string

How this field works and whether it is required depends on other fields you use in your API call. See below for more detail.

post_at?string

Unix EPOCH timestamp of time in future to send the message.

parse?string

Change how messages are treated. Defaults to none. See chat.postMessage.

as_user?boolean

Pass true to post the message as the authed user, instead of as a bot. Defaults to false. See chat.postMessage.

link_names?boolean

Find and link channel names and usernames.

attachments?string

A JSON-based array of structured attachments, presented as a URL-encoded string.

blocks?string

A JSON-based array of structured blocks, presented as a URL-encoded string.

unfurl_links?boolean

Pass true to enable unfurling of primarily text-based content.

unfurl_media?boolean

Pass false to disable unfurling of media content.

thread_ts?number

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

Formatdouble
reply_broadcast?boolean

Used 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"}