# social.coves.community.subscribe

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.subscribe)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.subscribe/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.subscribe/examples)

## Definitions

### `social.coves.community.subscribe`

**Type**: `procedure`

Subscribe to a community to see its posts in your feed. Requires authentication.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `community` | `string` (at-identifier) | Yes | DID or handle of the community to subscribe to |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes | CID of the created subscription record |
| `uri` | `string` (at-uri) | Yes | AT-URI of the created subscription record |
| `existing` | `boolean` | No | True if item was already subscribed |

#### Errors

- **CommunityNotFound**: Community not found
- **Blocked**: Cannot subscribe - you are blocked from this community

## Raw Schema

```json
{
  "id": "social.coves.community.subscribe",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "community"
          ],
          "properties": {
            "community": {
              "type": "string",
              "format": "at-identifier",
              "description": "DID or handle of the community to subscribe to"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "CommunityNotFound",
          "description": "Community not found"
        },
        {
          "name": "Blocked",
          "description": "Cannot subscribe - you are blocked from this community"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "uri",
            "cid"
          ],
          "properties": {
            "cid": {
              "type": "string",
              "format": "cid",
              "description": "CID of the created subscription record"
            },
            "uri": {
              "type": "string",
              "format": "at-uri",
              "description": "AT-URI of the created subscription record"
            },
            "existing": {
              "type": "boolean",
              "description": "True if item was already subscribed"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Subscribe to a community to see its posts in your feed. Requires authentication."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
