# social.colibri.beta.channel.getChannel

> 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.channel.getChannel)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.channel.getChannel/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.channel.getChannel/examples)

## Definitions

### `social.colibri.beta.channel.getChannel`

**Type**: `query`

Gets one channel.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `string` (space-ref) | Yes | The channel to get. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `ref` → `social.colibri.beta.community.defs#channelView` | Yes | The requested channel. |

#### Errors

- **AuthRequired**: The request has no valid service auth.
- **Forbidden**: The requesting user may not read this channel.
- **ChannelNotFound**: No channel matches the given space reference.

## Raw Schema

```json
{
  "id": "social.colibri.beta.channel.getChannel",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request has no valid service auth."
        },
        {
          "name": "Forbidden",
          "description": "The requesting user may not read this channel."
        },
        {
          "name": "ChannelNotFound",
          "description": "No channel matches the given space reference."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "channel"
          ],
          "properties": {
            "channel": {
              "ref": "social.colibri.beta.community.defs#channelView",
              "type": "ref",
              "description": "The requested channel."
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "channel"
        ],
        "properties": {
          "channel": {
            "type": "string",
            "format": "space-ref",
            "description": "The channel to get."
          }
        }
      },
      "description": "Gets one channel."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
