---
title: "List a community channel's members"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.nicer.travel/llms.txt
> Use this file to discover all available pages before exploring further.

# List a community channel's members

Path: Nicer API › Community

`GET /community/channels/{channelId}/members`

URL: `https://api.nicer.travel/community/channels/{channelId}/members`

Returns the userIds of everyone in one channel of the agency's community. A public channel answers to anyone in the agency, a private one only to its members. Errors: 404 ERROR_ITEM_NOT_FOUND for a channel there is not, a channel of another agency or a private channel the caller is not in; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Path parameters

- `channelId` (`community.channels.members.list.path.channelId`; string, required)

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.community.channels.members.list({
  "channelId": "string"
});
```

### Nicer CLI

```bash
nicer community channels members list --channel-id 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/community/channels/<channelId>/members' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/community/channels/<channelId>/members';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/community/channels/<channelId>/members"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "channelId": "string",
  "members": [
    {
      "userId": "string"
    }
  ]
}
```

- `channelId` (`community.channels.members.list.response.200.channelId`; string, required) — The channel.
- `members` (`community.channels.members.list.response.200.members`; array of object, required) — Everyone in the channel now.
  - `userId` (`community.channels.members.list.response.200.members.userId`; string, required) — The member's userId.

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`community.channels.members.list.response.400.errorCode`; string, required)
- `errorMessage` (`community.channels.members.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`community.channels.members.list.response.401.errorCode`; string, required)
- `errorMessage` (`community.channels.members.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`community.channels.members.list.response.403.errorCode`; string, required)
- `errorMessage` (`community.channels.members.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Community/community.channels.members.list/index.md
