{ "ok": true, "channel": { "id": "C012AB3CD", "name": "general", "is_channel": true, "is_group": false, "is_im": false, "is_mpim": false, "is_private": false, "created": 1654868334, "is_archived": false, "is_general": true, "name_normalized": "general", "creator": "U123ABC456", "topic": { "value": "For public discussion of generalities", "creator": "W012A3BCD", "last_set": 1449709364 }, "purpose": { "value": "This part of the workspace is for fun. Make fun here.", "creator": "W012A3BCD", "last_set": 1449709364 }, "previous_names": [] }}
get-channel-history: Fetch channel message history
string
required
Channel ID.
number
default:"100"
Max messages (max 1000).
string
Pagination cursor.
string
Only messages after this Unix timestamp.
string
Only messages before this Unix timestamp.
Example request:
{ "channel": "C123ABC456", "limit": 100}
Example response:
{ "ok": true, "messages": [ { "type": "message", "user": "U123ABC456", "text": "I find you punny and would like to smell your nose letter", "ts": "1512085950.000216" }, { "type": "message", "user": "U222BBB222", "text": "What, you want to smell my shoes better?", "ts": "1512104434.000490" } ], "has_more": true, "pin_count": 0, "response_metadata": { "next_cursor": "bmV4dF90czoxNTEyMDg1ODYxMDAwNTQz" }}