# social.colibri.beta.community.listChannels

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.listChannels)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.listChannels/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.community.listChannels/examples)

## Definitions

### `social.colibri.beta.community.listChannels`

**Type**: `query`

Lists a community's channels as a flat list, for clients that do not need the category grouping.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `community` | `string` (did) | Yes | The community to list channels of. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channels` | `array` | Yes | The community's channels. |

#### Errors

- **AuthRequired**: The request is missing, malformed, or unverifiable service auth.
- **Forbidden**: The requesting user lacks permission to view this community's channels.
- **CommunityNotFound**: No community exists with that DID.

## Raw Schema

```json
{
  "id": "social.colibri.beta.community.listChannels",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request is missing, malformed, or unverifiable service auth."
        },
        {
          "name": "Forbidden",
          "description": "The requesting user lacks permission to view this community's channels."
        },
        {
          "name": "CommunityNotFound",
          "description": "No community exists with that DID."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "channels"
          ],
          "properties": {
            "channels": {
              "type": "array",
              "items": {
                "ref": "social.colibri.beta.community.defs#channelView",
                "type": "ref"
              },
              "description": "The community's channels."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "community"
        ],
        "properties": {
          "community": {
            "type": "string",
            "format": "did",
            "description": "The community to list channels of."
          }
        }
      },
      "description": "Lists a community's channels as a flat list, for clients that do not need the category grouping."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
