# us.off-the-clock.subspace.listSubspaces

> List every subspace whose parent is the given space. Auth: OAuth as the authority with a covering read_self grant on the parent's type.

- Kind: query
- Authority: subspace.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.subspace.listSubspaces)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.listSubspaces/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.subspace.listSubspaces/analytics)

## Query (`us.off-the-clock.subspace.listSubspaces`)

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 1000, default: 100
- `space` (string · space-ref, required): Reference to the parent space.

### Output (application/json)

- `cursor` (string)
- `subspaces` (array, required)
  - `items` (ref)
    - Reference: `#subspace`

### Errors

- `SpaceNotFound`: No description in schema.

## #subspace (`us.off-the-clock.subspace.listSubspaces#subspace`)

Type: object

### Properties

- `uri` (string · space-ref, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List every subspace whose parent is the given space. Auth: OAuth as the authority with a covering read_self grant on the parent's type.",
      "errors": [
        {
          "name": "SpaceNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "subspaces": {
              "items": {
                "ref": "#subspace",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "subspaces"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 100,
            "maximum": 1000,
            "minimum": 1,
            "type": "integer"
          },
          "space": {
            "description": "Reference to the parent space.",
            "format": "space-ref",
            "type": "string"
          }
        },
        "required": [
          "space"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "subspace": {
      "properties": {
        "uri": {
          "format": "space-ref",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "id": "us.off-the-clock.subspace.listSubspaces",
  "lexicon": 1
}
```
