Get conversation history
Read recent messages of a channel or direct conversation into a table, newest first.
Command in the Slack toolkit · id ooa.slack/get_conversation_history · 8 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Bot token | Credential | Yes | Slack bot token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| Channel | String | Yes | Channel id, or a channel name such as #ops-alerts (looked up first). | |
| Oldest | String | No | Only messages after this time: a date (2026-11-01), a date and time in UTC (2026-11-01T09:00), or a message timestamp id (1700000000.000100). | |
| Latest | String | No | Only messages before this time: a date, a date and time in UTC, or a message timestamp id. | |
| Maximum messages | Number | No | 200 | Maximum messages to read. |
| Thread ts | String | No | Read the replies of this thread instead of the channel. | |
| Inclusive | Boolean | No | false | Also include the messages exactly at oldest and latest. |
| Endpoint address | String | No | https://slack.com/api | API endpoint; change only for testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Columns: ts, user, text, thread_ts, reply_count, subtype. |
| count | Number | Number of messages. |