---
title: "List public community channels"
---

> 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 public community channels

Path: Nicer API › Community

`GET /community/channels/browse`

URL: `https://api.nicer.travel/community/channels/browse`

Lists the agency's public channels, whether or not the caller is in them, to find one to join: 30 a page unless limit says otherwise (100 at most); send the answer's nextCursor back as cursor for the next page, until it is absent. Channels here carry no memberCount. Any member of the agency the request acts for may call it. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency; 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.

## Authentication

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

## Query parameters

- `cursor` (`community.channels.browse.list.query.cursor`; string, optional)
- `limit` (`community.channels.browse.list.query.limit`; string, optional)

## 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.browse.list();
```

### Nicer CLI

```bash
nicer community channels browse list
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/community/channels/browse';
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/browse"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "channels": [
    {
      "channelId": "string",
      "companyName": "string",
      "name": "string",
      "description": "string",
      "private": true,
      "writePolicy": "all-members",
      "createdBy": "string",
      "createdAt": "string",
      "memberCount": -9007199254740991
    }
  ],
  "nextCursor": "string"
}
```

- `channels` (`community.channels.browse.list.response.200.channels`; array of object, required)
  - `channelId` (`community.channels.browse.list.response.200.channels.channelId`; string, required) — The channel's id.
  - `companyName` (`community.channels.browse.list.response.200.channels.companyName`; string, required) — The agency the channel belongs to.
  - `name` (`community.channels.browse.list.response.200.channels.name`; string, required) — The channel's name.
  - `description` (`community.channels.browse.list.response.200.channels.description`; any of, required) — What the channel is for; null when it says nothing.
    - any of the following: `string`, `null`
  - `private` (`community.channels.browse.list.response.200.channels.private`; boolean, required) — Whether the channel is invite-only. A public channel is open to everyone in the agency.
  - `writePolicy` (`community.channels.browse.list.response.200.channels.writePolicy`; string, required) — Who may post: all-members, or creator-only for its creator and the writers granted posting.
    - one of `"all-members"`, `"creator-only"`
  - `createdBy` (`community.channels.browse.list.response.200.channels.createdBy`; string, required) — The userId of the person who created the channel.
  - `createdAt` (`community.channels.browse.list.response.200.channels.createdAt`; string, required) — When the channel was created, as ISO 8601 text.
  - `memberCount` (`community.channels.browse.list.response.200.channels.memberCount`; integer, optional) — How many people are in the channel. Only getting and creating a channel answer it.
    - maximum: `9007199254740991` · minimum: `-9007199254740991`
- `nextCursor` (`community.channels.browse.list.response.200.nextCursor`; string, optional) — Send it back as cursor for the next page; absent on the last page.

### 400

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

#### Example

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

- `errorCode` (`community.channels.browse.list.response.400.errorCode`; string, required)
- `errorMessage` (`community.channels.browse.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.browse.list.response.401.errorCode`; string, required)
- `errorMessage` (`community.channels.browse.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.browse.list.response.403.errorCode`; string, required)
- `errorMessage` (`community.channels.browse.list.response.403.errorMessage`; string, required)


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