# social.coves.aggregator.getAuthorizations

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

## Definitions

### `social.coves.aggregator.getAuthorizations`

**Type**: `query`

Get list of communities that have authorized a specific aggregator. Used by aggregators to query which communities they can post to. Authentication optional.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of authorizations to return |
| `cursor` | `string` | No | Pagination cursor |
| `enabledOnly` | `boolean` | No | Only return enabled authorizations |
| `aggregatorDid` | `string` (did) | Yes | DID of the aggregator |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Pagination cursor for next page |
| `authorizations` | `array` | Yes | Array of community authorizations for this aggregator |

#### Errors

- **AggregatorNotFound**: Aggregator DID does not exist or has no service declaration

## Raw Schema

```json
{
  "id": "social.coves.aggregator.getAuthorizations",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AggregatorNotFound",
          "description": "Aggregator DID does not exist or has no service declaration"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "authorizations"
          ],
          "properties": {
            "cursor": {
              "type": "string",
              "maxLength": 500,
              "description": "Pagination cursor for next page"
            },
            "authorizations": {
              "type": "array",
              "items": {
                "ref": "social.coves.aggregator.defs#communityAuthView",
                "type": "ref"
              },
              "description": "Array of community authorizations for this aggregator"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "aggregatorDid"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "description": "Maximum number of authorizations to return"
          },
          "cursor": {
            "type": "string",
            "maxLength": 500,
            "description": "Pagination cursor"
          },
          "enabledOnly": {
            "type": "boolean",
            "default": true,
            "description": "Only return enabled authorizations"
          },
          "aggregatorDid": {
            "type": "string",
            "format": "did",
            "description": "DID of the aggregator"
          }
        }
      },
      "description": "Get list of communities that have authorized a specific aggregator. Used by aggregators to query which communities they can post to. Authentication optional."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
