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_membersintNoMaximum number of members to return
cacheboolNoUse cached data if available

Example response

json
{
  "members": [
    {
      "email": "example",
      "id": "example",
      "isAdmin": true,
      "name": "example",
      "timezone": "example",
      "title": "example"
    }
  ]
}

Code

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

Try it

Sign in to test this endpoint with your API key.

Sign in to try