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

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.listSpaces)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.listSpaces/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.admin.listSpaces/examples)

## Definitions

### `us.off-the-clock.admin.listSpaces`

**Type**: `query`

The self management space and every registered pair, the default pair first and the rest by name. A pair's admin who is not an effective admin sees only the pairs they administer, and no self management space.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `own` | `ref` → `us.off-the-clock.admin.defs#space` | No |  |
| `pairs` | `array` | Yes |  |

#### Errors

- **NotAdmin**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The self management space and every registered pair, the default pair first and the rest by name. A pair's admin who is not an effective admin sees only the pairs they administer, and no self management space.",
      "errors": [
        {
          "name": "NotAdmin"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "own": {
              "ref": "us.off-the-clock.admin.defs#space",
              "type": "ref"
            },
            "pairs": {
              "items": {
                "ref": "us.off-the-clock.admin.defs#pair",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "pairs"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.admin.listSpaces",
  "lexicon": 1
}
```
