Skip to main content

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​

InputTypeRequiredDefaultWhat it is
Bot tokenCredentialYesSlack bot token from the vault. Or leave it empty and choose a connection that signs in, which gets and renews the token.
ChannelStringYesChannel id, or a channel name such as #ops-alerts (looked up first).
OldestStringNoOnly 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).
LatestStringNoOnly messages before this time: a date, a date and time in UTC, or a message timestamp id.
Maximum messagesNumberNo200Maximum messages to read.
Thread tsStringNoRead the replies of this thread instead of the channel.
InclusiveBooleanNofalseAlso include the messages exactly at oldest and latest.
Endpoint addressStringNohttps://slack.com/apiAPI endpoint; change only for testing.

Outputs​

OutputTypeWhat it is
tableTableColumns: ts, user, text, thread_ts, reply_count, subtype.
countNumberNumber of messages.