Scan Messages
GET {{slackUrl}}/api/conversations.history?channel={{channelId}}&cursor={{cursor}}&latest={{latest}}&oldest={{oldest}}
Retrieves and scans messages sent in the last 1 hour for given channel ID.
This request runs recursively till all channels retrieved in the Get Channels
request are scanned.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
channel | string | ID of Slack Channel | |
cursor | string | Paginate through data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata. | |
latest | string | End of time range of messages to include in results. | |
oldest | string | Start of time range of messages to include in results. |
RESPONSES
status: OK
{"ok":true,"latest":"1624948669.000294","oldest":"1624945069.000294","messages":[],"has_more":false,"pin_count":0,"channel_actions_ts":null,"channel_actions_count":0}