GET
/api/slack/conversations/historySlack channel history (conversations.history)
Slack conversations.history — messages in a channel, including threads and reactions.
Mocks the conversations.history response. Returns messages drawn from the cross-system storyline — payer escalation discussions, KOL meeting summaries, congress reactions, sample ops Q&A. Thread parents include reply_count + reply_users.
Query parameters
| Name | Type | Description |
|---|---|---|
channelrequired | string | Channel ID (e.g., C07LAUNCH02 for #launch-war-room). e.g. C07LAUNCH02 |
limit | integer | Max messages returned. 1-1000. default: 100 |
oldest | string | Slack ts to start from (passthrough, not enforced). |
latest | string | Slack ts to end at (passthrough). |
Response schema
| Path | Type | Description |
|---|---|---|
ok | boolean | Slack envelope. |
messages[] | array | Most recent first. |
messages[].type | string | Always 'message'. |
messages[].subtype | enum | undefined | bot_message | channel_join | thread_broadcast | etc. Source: Slack message event subtypes |
messages[].user | string | U-prefixed user ID. |
messages[].bot_id | string | undefined | Present on bot_message subtype. |
messages[].text | string | Markdown fallback text. |
messages[].ts | string | Unix seconds + microseconds (e.g., '1716840123.001900'). Also serves as message ID. Source: Slack ts convention |
messages[].team | string | T-prefixed workspace ID. |
messages[].blocks[] | array | Block Kit rich_text blocks. Source: Slack rich_text block |
messages[].thread_ts | string | undefined | Parent ts when message is part of a thread. |
messages[].parent_user_id | string | undefined | Author of the thread parent (on replies only). |
messages[].reply_count | integer | undefined | On thread parents. |
messages[].reply_users / reply_users_count / latest_reply | mixed | Thread parent metadata. |
messages[].reactions[] | array | undefined | { name, users, count } emoji reactions. |
has_more | boolean | Slack pagination flag. |
Behaviour notes
- ·Thread parents include reply_count, reply_users, latest_reply per Slack convention.
- ·Messages sorted most recent first.
- ·ts format: 10 digits seconds + dot + 6 digits microseconds.
Examples
Launch war room
curl 'http://localhost:3000/api/slack/conversations/history?channel=C07LAUNCH02&limit=10'Market access payers
curl 'http://localhost:3000/api/slack/conversations/history?channel=C07MARKT03'Payer escalations
curl 'http://localhost:3000/api/slack/conversations/history?channel=C07ESCAL04'Sources
- Slack conversations.historyhttps://docs.slack.dev/reference/methods/conversations.history
- Slack conversations.replieshttps://docs.slack.dev/reference/methods/conversations.replies
- Slack rich_text blockhttps://docs.slack.dev/reference/block-kit/blocks/rich-text-block
- Slack message event subtypeshttps://docs.slack.dev/reference/events/message