# rsvp.atmo.space.whoami

> 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.whoami)
- [Documentation](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.whoami/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:b63bmauox6z5rbibwrhxrdnw/rsvp.atmo.space.whoami/examples)

## Definitions

### `rsvp.atmo.space.whoami`

**Type**: `query`

Report the caller's relationship to a space: whether they are the owner, a member, and at what permission level. Useful for clients to avoid a listMembers roundtrip.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `spaceUri` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `perms` | `string` | No | Present only when the caller is a member or the owner. |
| `isOwner` | `boolean` | Yes |  |
| `isMember` | `boolean` | Yes |  |

#### Errors

- **NotFound**

## Raw Schema

```json
{
  "id": "rsvp.atmo.space.whoami",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "isOwner",
            "isMember"
          ],
          "properties": {
            "perms": {
              "type": "string",
              "description": "Present only when the caller is a member or the owner.",
              "knownValues": [
                "read",
                "write"
              ]
            },
            "isOwner": {
              "type": "boolean"
            },
            "isMember": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "required": [
          "spaceUri"
        ],
        "properties": {
          "spaceUri": {
            "type": "string",
            "format": "at-uri"
          }
        }
      },
      "description": "Report the caller's relationship to a space: whether they are the owner, a member, and at what permission level. Useful for clients to avoid a listMembers roundtrip."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
