Skip to main content
getConversationHistory reads messages from a public channel, private channel, DM, or group DM. Use Get thread replies when you specifically need every reply beneath a parent.

Example

automations/read-slack-history.automation.ts

Inputs

Output

Returns messages: SlackMessage[], hasMore: boolean, and responseMetadata.nextCursor. Each message contains text, timestamp, and type, plus available author, thread, block, attachment, file, reaction, reply, app, bot, and subtype fields. hasMore describes Slack’s time-window results; use nextCursor for cursor pagination when present.