# social.coves.community.getBlockedCommunities

> 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.getBlockedCommunities)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.getBlockedCommunities/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.community.getBlockedCommunities/examples)

## Definitions

### `social.coves.community.getBlockedCommunities#blockView`

**Type**: `object`

One of the caller's community blocks: the blocked community and the block record that expresses it.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blockedAt` | `string` (datetime) | Yes |  |
| `communityDid` | `string` (did) | Yes |  |
| `recordCid` | `string` (cid) | Yes |  |
| `recordUri` | `string` (at-uri) | Yes |  |

### `social.coves.community.getBlockedCommunities`

**Type**: `query`

Enumerates the communities the requesting account is currently blocking. Requires authentication; the list is always the caller's own, though each block is a public record in the caller's repository.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `limit` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blocks` | `array` | Yes |  |
| `cursor` | `string` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "blockView": {
      "description": "One of the caller's community blocks: the blocked community and the block record that expresses it.",
      "properties": {
        "blockedAt": {
          "format": "datetime",
          "type": "string"
        },
        "communityDid": {
          "format": "did",
          "type": "string"
        },
        "recordCid": {
          "format": "cid",
          "type": "string"
        },
        "recordUri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "communityDid",
        "recordUri",
        "recordCid",
        "blockedAt"
      ],
      "type": "object"
    },
    "main": {
      "description": "Enumerates the communities the requesting account is currently blocking. Requires authentication; the list is always the caller's own, though each block is a public record in the caller's repository.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "blocks": {
              "items": {
                "ref": "#blockView",
                "type": "ref"
              },
              "type": "array"
            },
            "cursor": {
              "maxLength": 500,
              "type": "string"
            }
          },
          "required": [
            "blocks"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "maxLength": 500,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.coves.community.getBlockedCommunities",
  "lexicon": 1
}
```
