# social.colibri.beta.bridge.listChannels

> Lists a community's text channels that every member can read, for the bridge that holds the registration. Each channel's viewer state says whether the registration may read and post in it now.

- Kind: query
- Authority: bridge.beta.colibri.social
- Lexicon: 1
- Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.listChannels)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.listChannels/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.bridge.listChannels/analytics)

## Query (`social.colibri.beta.bridge.listChannels`)

Type: query · GET

### Parameters (query string)

- `community` (string · did, required): The community the registration belongs to.
- `registration` (string · tid, required): Record key of the registration.

### Output (application/json)

- `channels` (array, required): The channels, in the community's order.
  - `items` (ref): A channel.
    - Reference: `social.colibri.beta.community.defs#channelView`

### Errors

- `AuthRequired`: The request is missing, malformed, or unverifiable service auth.
- `Forbidden`: The caller is not the bridge this registration belongs to.
- `CommunityNotFound`: No community exists at the given DID.
- `RegistrationNotFound`: The community has no bridge registration with that id.
- `RateLimited`: The bridge sent too many requests. Retry after the interval in the response headers.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Lists a community's text channels that every member can read, for the bridge that holds the registration. Each channel's viewer state says whether the registration may read and post in it now.",
      "errors": [
        {
          "description": "The request is missing, malformed, or unverifiable service auth.",
          "name": "AuthRequired"
        },
        {
          "description": "The caller is not the bridge this registration belongs to.",
          "name": "Forbidden"
        },
        {
          "description": "No community exists at the given DID.",
          "name": "CommunityNotFound"
        },
        {
          "description": "The community has no bridge registration with that id.",
          "name": "RegistrationNotFound"
        },
        {
          "description": "The bridge sent too many requests. Retry after the interval in the response headers.",
          "name": "RateLimited"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "channels": {
              "description": "The channels, in the community's order.",
              "items": {
                "description": "A channel.",
                "ref": "social.colibri.beta.community.defs#channelView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "channels"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "community": {
            "description": "The community the registration belongs to.",
            "format": "did",
            "type": "string"
          },
          "registration": {
            "description": "Record key of the registration.",
            "format": "tid",
            "type": "string"
          }
        },
        "required": [
          "community",
          "registration"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.colibri.beta.bridge.listChannels",
  "lexicon": 1
}
```
