Pharma Commercial Mock
GET/api/slack/channels

Slack channels (conversations.list)

Slack conversations.list — workspace channels with topic, purpose, member count.

Mocks Slack Web API conversations.list response. Returns 11 realistic channels for a pharma commercial team: launch tracking, market access, payer escalations, competitive intel, MSL, HEOR, sample ops, congress coverage, plus field-east/west.

Query parameters

NameTypeDescription
typesstring
Slack-style channel type filter (passthrough; not strictly enforced in mock).
default: public_channel
exclude_archivedboolean
If 'true', omits archived channels.
default: false

Response schema

PathTypeDescription
okboolean
Slack envelope flag.
channels[]array
Channel records.
channels[].idstring
Slack channel ID (C-prefix for public/private).
channels[].name / name_normalizedstring
Channel handle (lowercase, hyphenated).
channels[].is_channel / is_private / is_archived / is_general / is_memberboolean
Slack role flags.
channels[].createdinteger
Unix seconds.
channels[].creatorstring
User ID of the creator.
channels[].num_membersinteger
Member count.
channels[].topicobject
{ value, creator, last_set }.
channels[].purposeobject
{ value, creator, last_set }.
response_metadata.next_cursorstring
Pagination cursor (empty in mock).

Behaviour notes

  • ·Pharma commercial team channels always include: general, launch-war-room, market-access-payers, payer-escalations, field-east/west, medical-affairs-msl, competitive-intel, heor-evidence, sample-ops, congress-asco-aha.
  • ·Channel IDs use real Slack C-prefix convention.

Examples

All channels
curl 'http://localhost:3000/api/slack/channels'
Exclude archived
curl 'http://localhost:3000/api/slack/channels?exclude_archived=true'

Sources