---
title: "List all users in a specific Slack channel."
method: POST
path: "/getChannelMembers"
tags: ["channel", "user"]
---

# List all users in a specific Slack channel.

`POST /getChannelMembers`

Retrieves a list of all userIds of users in a specified Slack channel.

## Request body

- object
  - `body` object — Body of the getChannelMembers sls call
    - `arguments` object, required — Container for function arguments.
      - `channelId` string, required — channelId: The ID of the channel to get the members of. Channel IDs start with 'C'.
      - `includeBots` boolean — Whether to include bot users in the list. Defaults to false.
      - `limit` number — The maximum number of users to return. Defaults to 50.
      - `nextCursor` string — A cursor to the next page of results.

## Response `200`

Successful response

- object
  - `members` object[]
    - `id` string, required — User ID
    - `name` string, required — User name
    - `is_bot` boolean — Whether the user is a bot
    - `real_name` string — User real name
    - `display_name` string — User display name
    - `title` string — User title
    - `email` string — User email
    - `is_deleted` boolean — Whether the user is deleted
  - `nextCursor` string — A cursor to the next page of results

## Other responses

- `400` — Bad Request - Invalid channel ID or other client error
- `500` — Server error

---

[API](https://skmtc.net/microfox-ai/apis/slack-d.md) · [All operations](https://skmtc.net/microfox-ai/apis/slack-d/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/microfox-ai/slack-d/versions/cd0edf0c2cdf/schema)
