# us.off-the-clock.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.listSpaces)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listSpaces/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.listSpaces/examples)

## Definitions

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

**Type**: `query`

The registered pairs whose content space the viewer can read, the default pair first, with their names, default feeds and member counts.

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `spaces` | `array` | Yes |  |

#### Errors

- **NotSpaceMember**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The registered pairs whose content space the viewer can read, the default pair first, with their names, default feeds and member counts.",
      "errors": [
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "spaces": {
              "items": {
                "ref": "us.off-the-clock.defs#spaceView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "spaces"
          ],
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.listSpaces",
  "lexicon": 1
}
```
