# rsvp.atmo.space.listSpaces

> Published by [atmo.rsvp](https://lexicon.garden/identity/did:plc:b63bmauox6z5rbibwrhxrdnw)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.listSpaces)
- [Documentation](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.listSpaces/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.listSpaces/examples)

## Definitions

### `rsvp.atmo.space.listSpaces`

**Type**: `query`

List spaces the caller has access to. Default scope is 'member' (spaces the caller is a member of, including owned); 'owner' lists only spaces the caller owns.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `type` | `string` (nsid) | No |  |
| `limit` | `integer` | No |  |
| `scope` | `string` | No |  |
| `cursor` | `string` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No |  |
| `spaces` | `array` | Yes |  |

## Raw Schema

```json
{
  "id": "rsvp.atmo.space.listSpaces",
  "defs": {
    "main": {
      "type": "query",
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "spaces"
          ],
          "properties": {
            "cursor": {
              "type": "string"
            },
            "spaces": {
              "type": "array",
              "items": {
                "ref": "rsvp.atmo.space.defs#spaceView",
                "type": "ref"
              }
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "type": {
            "type": "string",
            "format": "nsid"
          },
          "limit": {
            "type": "integer",
            "default": 50,
            "maximum": 200,
            "minimum": 1
          },
          "scope": {
            "type": "string",
            "default": "member",
            "knownValues": [
              "member",
              "owner"
            ]
          },
          "cursor": {
            "type": "string"
          }
        }
      },
      "description": "List spaces the caller has access to. Default scope is 'member' (spaces the caller is a member of, including owned); 'owner' lists only spaces the caller owns."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
