> From *AT Protocol Spaces: A Field Guide* on atproto.how, revised 2026-11-23.
> Web page: https://atproto.how/atproto-spaces-field-guide/a-xrpc-methods
> Index for agents: https://atproto.how/llms.txt · Text CC BY-SA 4.0, code samples MIT.

# Appendix A · XRPC methods

Every method of the spaces extension, under `com.atproto.space.*`, `com.atproto.memberspace.*` and `com.atproto.managedspace.*` \[spec\]. The [lexicons](https://github.com/bluesky-social/atproto/tree/permissioned-data/lexicons/com/atproto) in `bluesky-social/atproto` are the source of truth for parameters, outputs, and errors, and atproto-crates validates against copies of them \[crates\].

<a id="table-a-1"></a>

**Table A.1.** Who calls whom

| Method | From | To | Auth |
| --- | --- | --- | --- |
| `getDelegationToken` | App | PDS | OAuth read |
| `authorizeSpaceSync` | Syncer | Space host | tokens in body |
| `listWriters` | Syncer | Space host | credential |
| `getRecord` | Syncer | Repo host | credential · MAC |
| `listRepoOps` | Syncer | Repo host | credential · MAC |
| `notifyRepoUpdate` | Repo host | Space host | service auth |

<a id="table-a-3"></a>

| Method | Served by | Type | Auth | Purpose |
| --- | --- | --- | --- | --- |
| [`com.atproto.space.authorizeSpaceSync`](https://lexicon.garden/nsid/com.atproto.space.authorizeSpaceSync) | space host | procedure | none; tokens in body | Credential, spaceRev, optional notify registration |
| [`com.atproto.space.listWriters`](https://lexicon.garden/nsid/com.atproto.space.listWriters) | space host | query | credential | Writer set: #repoWrite and #repoRemoved entries |
| [`com.atproto.space.removeWriter`](https://lexicon.garden/nsid/com.atproto.space.removeWriter) | space host | procedure | OAuth as the authority, manage=update | Remove one writer |
| [`com.atproto.space.getSpace`](https://lexicon.garden/nsid/com.atproto.space.getSpace) | space host | query | OAuth as the authority | Space and its policy |
| [`com.atproto.space.exportSpaceMeta`](https://lexicon.garden/nsid/com.atproto.space.exportSpaceMeta) | space host | query | OAuth as the authority | Space meta STAR |
| [`com.atproto.space.notifyRepoUpdate`](https://lexicon.garden/nsid/com.atproto.space.notifyRepoUpdate) | space host | procedure | service auth from repo host | Repo advanced: repoRev, data |
| [`com.atproto.space.getRecord`](https://lexicon.garden/nsid/com.atproto.space.getRecord) | repo host | query | OAuth or credential; MAC | One record |
| [`com.atproto.space.listRecords`](https://lexicon.garden/nsid/com.atproto.space.listRecords) | repo host | query | OAuth or credential | Records, or paths with excludeValues |
| [`com.atproto.space.getBlob`](https://lexicon.garden/nsid/com.atproto.space.getBlob) | repo host | query | OAuth or credential | One blob |
| [`com.atproto.space.listBlobs`](https://lexicon.garden/nsid/com.atproto.space.listBlobs) | repo host | query | OAuth or credential | Referenced blob CIDs |
| [`com.atproto.space.getLatestCommit`](https://lexicon.garden/nsid/com.atproto.space.getLatestCommit) | repo host | query | OAuth or credential; MAC | Current commit |
| [`com.atproto.space.getRepo`](https://lexicon.garden/nsid/com.atproto.space.getRepo) | repo host | query | OAuth or credential; MAC | Whole repo as STAR |
| [`com.atproto.space.listRepoOps`](https://lexicon.garden/nsid/com.atproto.space.listRepoOps) | repo host | query | OAuth or credential; MAC | Op log since a rev, commit on every page |
| [`com.atproto.space.notifyCredentialsRevoked`](https://lexicon.garden/nsid/com.atproto.space.notifyCredentialsRevoked) | repo host | procedure | service auth from authority | Revoke credentials by jti |
| [`com.atproto.space.getDelegationToken`](https://lexicon.garden/nsid/com.atproto.space.getDelegationToken) | user's PDS | query | OAuth read | Mint a delegation token |
| [`com.atproto.space.createRecord`](https://lexicon.garden/nsid/com.atproto.space.createRecord) | PDS | procedure | OAuth | Create in own repo |
| [`com.atproto.space.putRecord`](https://lexicon.garden/nsid/com.atproto.space.putRecord) | PDS | procedure | OAuth | Create or update |
| [`com.atproto.space.deleteRecord`](https://lexicon.garden/nsid/com.atproto.space.deleteRecord) | PDS | procedure | OAuth | Delete |
| [`com.atproto.space.applyWrites`](https://lexicon.garden/nsid/com.atproto.space.applyWrites) | PDS | procedure | OAuth | Atomic batch |
| [`com.atproto.space.clearRecords`](https://lexicon.garden/nsid/com.atproto.space.clearRecords) | PDS | procedure | OAuth | Empty own repo |
| [`com.atproto.space.importRepo`](https://lexicon.garden/nsid/com.atproto.space.importRepo) | PDS | procedure | OAuth, create on every collection | Migration import |
| [`com.atproto.space.listSpaces`](https://lexicon.garden/nsid/com.atproto.space.listSpaces) | PDS | query | OAuth | Spaces held or owned, with repo state |
| [`com.atproto.space.createSpace`](https://lexicon.garden/nsid/com.atproto.space.createSpace) | PDS | procedure | OAuth manage=create | Create with a policy |
| [`com.atproto.space.updateSpace`](https://lexicon.garden/nsid/com.atproto.space.updateSpace) | PDS | procedure | OAuth as the authority, manage=update | Replace the policy |
| [`com.atproto.space.deleteSpace`](https://lexicon.garden/nsid/com.atproto.space.deleteSpace) | PDS | procedure | OAuth as the authority, manage=delete | Delete |
| [`com.atproto.space.importSpaceMeta`](https://lexicon.garden/nsid/com.atproto.space.importSpaceMeta) | PDS | procedure | OAuth as the authority, manage=create and manage=update | Migration import |
| [`com.atproto.space.notifySpaceUpdate`](https://lexicon.garden/nsid/com.atproto.space.notifySpaceUpdate) | syncer | procedure | notify token in body | A repo write or removal, deletion, or expired registration |
| [`com.atproto.space.confirmRegistration`](https://lexicon.garden/nsid/com.atproto.space.confirmRegistration) | syncer | procedure | notify token in body | Echo a challenge to confirm a registration |
| [`com.atproto.memberspace.putMembers`](https://lexicon.garden/nsid/com.atproto.memberspace.putMembers) | space host | procedure | OAuth as the authority, manage=update | Add or replace members |
| [`com.atproto.memberspace.removeMembers`](https://lexicon.garden/nsid/com.atproto.memberspace.removeMembers) | space host | procedure | OAuth as the authority, manage=update | Remove members |
| [`com.atproto.memberspace.listMembers`](https://lexicon.garden/nsid/com.atproto.memberspace.listMembers) | space host | query | OAuth as the authority | List members |
| [`com.atproto.managedspace.checkAccess`](https://lexicon.garden/nsid/com.atproto.managedspace.checkAccess) | managing app | query | service auth from authority | read and write for one identity |

**Reference: Repo host read methods** \[spec\]

| Method | Other parameters | Output | MAC |
| --- | --- | --- | --- |
| `getLatestCommit` | none | `commit` | yes |
| `getRecord` | `collection`, `rkey` | `uri`, `cid`, `value` | yes |
| `listRecords` | `collection?`, `limit` (1 to 1000, default 50), `cursor?`, `excludeValues?` | `records` of `{collection, rkey, cid, value?}`, `cursor?` | no |
| `listRepoOps` | `since?`, `limit` (1 to 1000, default 100), `cursor?`, `excludeValues?` | `ops`, `commit`, `cursor?` | yes |
| `getRepo` | none | STAR body | yes |
| `listBlobs` | `limit` (1 to 1000, default 500), `cursor?` | `cids`, `cursor?` | no |
| `getBlob` | `cid` | the blob as uploaded | no |

All of them declare `SpaceNotFound`, `RepoNotFound`, `RepoTakendown`, `RepoSuspended`, and `RepoDeactivated`. The MAC’d methods add `InvalidSpaceMac`, `getRecord` adds `RecordNotFound`, `getBlob` adds `BlobNotFound`, and `listRecords` and `listRepoOps` add `InvalidCursor` \[spec\]. Without `collection`, `listRecords` lists every collection.

Records and shared object definitions \[spec\]:

<a id="table-a-2"></a>

**Table A.2.** Records and shared definitions

| NSID | Kind | Record key | Fields |
| --- | --- | --- | --- |
| [`com.atproto.space.defs`](https://lexicon.garden/nsid/com.atproto.space.defs)`#commit` | object | none | `ver`, `repo`, `space`, `rev`, `data` |
| [`com.atproto.space.defs`](https://lexicon.garden/nsid/com.atproto.space.defs)`#repoWrite` | object | none | `repo`, `repoRev`, `data`, `spaceRev`, `prevSpaceRev?` |
| [`com.atproto.space.defs`](https://lexicon.garden/nsid/com.atproto.space.defs)`#repoRemoved` | object | none | `repo`, `spaceRev`, `prevSpaceRev?` |
| [`com.atproto.space.policy`](https://lexicon.garden/nsid/com.atproto.space.policy) | record | `self` | `policy` |
| [`com.atproto.personalspace.policy`](https://lexicon.garden/nsid/com.atproto.personalspace.policy) | object | none | none |
| [`com.atproto.memberspace.policy`](https://lexicon.garden/nsid/com.atproto.memberspace.policy) | object | none | `publicRead?`, `publicWrite?`, `allowedApps?`, `publishPolicy?`, `publishMembers?` |
| [`com.atproto.memberspace.defs`](https://lexicon.garden/nsid/com.atproto.memberspace.defs)`#member` | object | none | `did`, `read`, `write` |
| [`com.atproto.memberspace.member`](https://lexicon.garden/nsid/com.atproto.memberspace.member) | record | the member’s DID | `read`, `write` |
| [`com.atproto.managedspace.policy`](https://lexicon.garden/nsid/com.atproto.managedspace.policy) | object | none | `managingApp`, `publishPolicy?` |
| [`com.atproto.label.record`](https://lexicon.garden/nsid/com.atproto.label.record) | record | TID | `uri`, `cid?`, `val`, `cts`, `exp?` |

Spaces reuse [`com.atproto.sync.subscribeRepos`](https://lexicon.garden/nsid/com.atproto.sync.subscribeRepos) unchanged for the `#account` and `#identity` events that carry account status and key changes \[spec\]. Records inside a space can still point at each other with a [`com.atproto.repo.strongRef`](https://lexicon.garden/nsid/com.atproto.repo.strongRef), as the RSVP’s `subject` does.
