GET
/api/slack/channelsSlack 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
| Name | Type | Description |
|---|---|---|
types | string | Slack-style channel type filter (passthrough; not strictly enforced in mock). default: public_channel |
exclude_archived | boolean | If 'true', omits archived channels. default: false |
Response schema
| Path | Type | Description |
|---|---|---|
ok | boolean | Slack envelope flag. |
channels[] | array | Channel records. |
channels[].id | string | Slack channel ID (C-prefix for public/private). |
channels[].name / name_normalized | string | Channel handle (lowercase, hyphenated). |
channels[].is_channel / is_private / is_archived / is_general / is_member | boolean | Slack role flags. |
channels[].created | integer | Unix seconds. |
channels[].creator | string | User ID of the creator. |
channels[].num_members | integer | Member count. |
channels[].topic | object | { value, creator, last_set }. |
channels[].purpose | object | { value, creator, last_set }. |
response_metadata.next_cursor | string | 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
- Slack conversations.listhttps://docs.slack.dev/reference/methods/conversations.list