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

KeyDatatypeRequiredDescription
channelstringID of Slack Channel
cursorstringPaginate through data by setting the cursor parameter to a next_cursor attribute returned by a previous request's response_metadata.
lateststringEnd of time range of messages to include in results.
oldeststringStart 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}