/chat.scheduledMessages.list
GET
/chat.scheduledMessages.listReturns a list of scheduled messages.
Request
Query Params
channel
string
optional
The channel of the scheduled messages
latest
number
optional
A UNIX timestamp of the latest value in the time range
oldest
number
optional
A UNIX timestamp of the oldest value in the time range
limit
integer
optional
Maximum number of original entries to return.
cursor
string
optional
For pagination purposes, this is the cursor
value returned from a previous call to chat.scheduledmessages.list
indicating where you want to start this call from.
Header Params
token
string
optional
Authentication token. Requires scope: none
Request samples
Responses
Typical success response(200)
Typical error response if the channel passed is invalid(500)
Typical success response
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
ok
#/definitions/700149required
response_metadata
object
required
next_cursor
string
required
scheduled_messages
array [object {5}]
required
channel_id
#/definitions/700139required
date_created
integer
required
id
string
required
Match pattern:
^[Q][A-Z0-9]{8,}$
post_at
integer
required
text
string
optional
Exampleresponse
{
"ok": true,
"response_metadata": {
"next_cursor": ""
},
"scheduled_messages": [
{
"channel_id": "C1H9RESGL",
"date_created": 1551891734,
"id": 1298393284,
"post_at": 1551991428,
"text": "Here's a message for you in the future"
}
]
}
Last modified: a year ago