Pharma Commercial Mock
GET/api/slack/conversations/history

Slack 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

NameTypeDescription
channelrequiredstring
Channel ID (e.g., C07LAUNCH02 for #launch-war-room).
e.g. C07LAUNCH02
limitinteger
Max messages returned. 1-1000.
default: 100
oldeststring
Slack ts to start from (passthrough, not enforced).
lateststring
Slack ts to end at (passthrough).

Response schema

PathTypeDescription
okboolean
Slack envelope.
messages[]array
Most recent first.
messages[].typestring
Always 'message'.
messages[].subtypeenum | undefined
bot_message | channel_join | thread_broadcast | etc.
Source: Slack message event subtypes
messages[].userstring
U-prefixed user ID.
messages[].bot_idstring | undefined
Present on bot_message subtype.
messages[].textstring
Markdown fallback text.
messages[].tsstring
Unix seconds + microseconds (e.g., '1716840123.001900'). Also serves as message ID.
Source: Slack ts convention
messages[].teamstring
T-prefixed workspace ID.
messages[].blocks[]array
Block Kit rich_text blocks.
Source: Slack rich_text block
messages[].thread_tsstring | undefined
Parent ts when message is part of a thread.
messages[].parent_user_idstring | undefined
Author of the thread parent (on replies only).
messages[].reply_countinteger | undefined
On thread parents.
messages[].reply_users / reply_users_count / latest_replymixed
Thread parent metadata.
messages[].reactions[]array | undefined
{ name, users, count } emoji reactions.
has_moreboolean
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