API Documentation

Everything you need to integrate the RichAPI API into your product.

Social

Slack Channel Members

Extract Slack channel members with names, emails, titles, timezones, admin status. Requires your Slack cookie.

POST
/api/v1/slack_channel_members
2 credits per call

Parameters

FieldTypeRequiredDescription
workspacestringYesSlack workspace subdomain (e.g. acme for acme.slack.com)
channel_idstringYesSlack channel ID (e.g. C0123456789)
cookiestringYesYour Slack xoxd- session cookie
tokenstringYesYour Slack xoxc- client token
max_membersintegerNoMaximum number of members to return
cachebooleanNoUse cached data if available

Response fields

FieldTypeDescription
membersarrayList of channel members
members[].idstringSlack user ID
members[].namestringDisplay name
members[].emailstringEmail address
members[].titlestringJob title
members[].timezonestringTimezone string
members[].isAdminbooleanWhether the user is a workspace admin

Code

curl -X POST https://api.richapi.ai/api/v1/slack_channel_members \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "token": "xoxc-...",
  "cookie": "xoxd-...",
  "workspace": "your-workspace",
  "channel_id": "C0123456789"
}'

Try it

Sign in to test this endpoint with your API key.

Sign in to try