# us.off-the-clock.admin.getSpace

> One registered pair, with its content space's record counts by collection. Effective admins and the community identity only.

- Kind: query
- Authority: admin.off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getSpace)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getSpace/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.getSpace/analytics)

## Query (`us.off-the-clock.admin.getSpace`)

Type: query · GET

### Parameters (query string)

- `space` (string, required): A registered pair's content space: its TID or <space-type>/<space-id>.
  - Constraints: maxLength: 512

### Output (application/json)

- `collections` (array, required)
  - `items` (ref)
    - Reference: `us.off-the-clock.admin.defs#collectionCount`
- `pair` (ref, required)
  - Reference: `us.off-the-clock.admin.defs#pair`

### Errors

- `NotAdmin`: No description in schema.
- `InvalidRequest`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One registered pair, with its content space's record counts by collection. Effective admins and the community identity only.",
      "errors": [
        {
          "name": "NotAdmin"
        },
        {
          "name": "InvalidRequest"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collections": {
              "items": {
                "ref": "us.off-the-clock.admin.defs#collectionCount",
                "type": "ref"
              },
              "type": "array"
            },
            "pair": {
              "ref": "us.off-the-clock.admin.defs#pair",
              "type": "ref"
            }
          },
          "required": [
            "pair",
            "collections"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "space": {
            "description": "A registered pair's content space: its TID or <space-type>/<space-id>.",
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.admin.getSpace",
  "lexicon": 1
}
```
