Appendix A
XRPC methods
Each method links to its lexicon on Lexicon Garden. Link to a row with #authorizeSpaceSync.
Every method of the spaces extension, under com.atproto.space.*, com and com spec. The lexicons in bluesky-social/atproto are the source of truth for parameters, outputs, and errors, and atproto-crates validates against copies of them crates.
getDelegationTokenOAuth readauthorizeSpaceSynctokens in bodylistWriterscredentialgetRecordcredential · MAClistRepoOpscredential · MACnotifyRepoUpdateservice authSpace host
- authorizeSpaceSyncprocedure
com
.atproto .space .authorizeSpaceSync Credential, spaceRev, optional notify registration
Auth none; tokens in body
- listWritersquery
Writer set: #repoWrite and #repoRemoved entries
Auth credential
- removeWriterprocedure
com
.atproto .space .removeWriter Remove one writer
Auth OAuth as the authority, manage=update
- getSpacequery
Space and its policy
Auth OAuth as the authority
- exportSpaceMetaquery
com
.atproto .space .exportSpaceMeta Space meta STAR
Auth OAuth as the authority
- notifyRepoUpdateprocedure
com
.atproto .space .notifyRepoUpdate Repo advanced: repoRev, data
Auth service auth from repo host
- putMembersprocedure
com
.atproto .memberspace .putMembers Add or replace members
Auth OAuth as the authority, manage=update
- removeMembersprocedure
com
.atproto .memberspace .removeMembers Remove members
Auth OAuth as the authority, manage=update
- listMembersquery
com
.atproto .memberspace .listMembers List members
Auth OAuth as the authority
Repo host
- getRecordquery
One record
Auth OAuth or credential; MAC
- listRecordsquery
Records, or paths with excludeValues
Auth OAuth or credential
- getBlobquery
One blob
Auth OAuth or credential
- listBlobsquery
Referenced blob CIDs
Auth OAuth or credential
- getLatestCommitquery
com
.atproto .space .getLatestCommit Current commit
Auth OAuth or credential; MAC
- getRepoquery
Whole repo as STAR
Auth OAuth or credential; MAC
- listRepoOpsquery
Op log since a rev, commit on every page
Auth OAuth or credential; MAC
- notifyCredentialsRevokedprocedure
com
.atproto .space .notifyCredentialsRevoked Revoke credentials by jti
Auth service auth from authority
User's PDS
- getDelegationTokenquery
com
.atproto .space .getDelegationToken Mint a delegation token
Auth OAuth read
PDS
- createRecordprocedure
com
.atproto .space .createRecord Create in own repo
Auth OAuth
- putRecordprocedure
Create or update
Auth OAuth
- deleteRecordprocedure
com
.atproto .space .deleteRecord Delete
Auth OAuth
- applyWritesprocedure
Atomic batch
Auth OAuth
- clearRecordsprocedure
com
.atproto .space .clearRecords Empty own repo
Auth OAuth
- importRepoprocedure
Migration import
Auth OAuth, create on every collection
- listSpacesquery
Spaces held or owned, with repo state
Auth OAuth
- createSpaceprocedure
Create with a policy
Auth OAuth manage=create
- updateSpaceprocedure
Replace the policy
Auth OAuth as the authority, manage=update
- deleteSpaceprocedure
Delete
Auth OAuth as the authority, manage=delete
- importSpaceMetaprocedure
com
.atproto .space .importSpaceMeta Migration import
Auth OAuth as the authority, manage=create and manage=update
Syncer
- notifySpaceUpdateprocedure
com
.atproto .space .notifySpaceUpdate A repo write or removal, deletion, or expired registration
Auth notify token in body
- confirmRegistrationprocedure
com
.atproto .space .confirmRegistration Echo a challenge to confirm a registration
Auth notify token in body
Managing app
- checkAccessquery
com
.atproto .managedspace .checkAccess read and write for one identity
Auth service auth from authority
Reference
Repo host read methods spec#
- com.atproto.space.getLatestCommitParametersnoneReturns
commitAuthOAuth or credential · GETErrors+ the five repo errors and InvalidSpaceMac - com.atproto.space.getRecordParameterscollectionthe record's collectionrkeythe record's keyReturns
uri,cid,valueAuthOAuth or credential · GETErrorsRecordNotFound+ the five repo errors and InvalidSpaceMac - com.atproto.space.listRecordsParameterscollectionoptionalone collection, or alllimit1–1000, default 50cursoroptionalfrom the previous pageexcludeValuesoptionalinclude only pathsReturns
recordsof{collection, rkey, cid, value?},cursor?AuthOAuth or credential · GETErrorsInvalidCursor+ the five repo errors - com.atproto.space.listRepoOpsParameterssinceoptionalthe rev to list ops afterlimit1–1000, default 100cursoroptionalfrom the previous pageexcludeValuesoptionalops without their record valuesReturns
ops,commit,cursor?AuthOAuth or credential · GETErrorsInvalidCursor+ the five repo errors and InvalidSpaceMac - com.atproto.space.getRepoParametersnoneReturnsSTAR bodyAuthOAuth or credential · GETErrors+ the five repo errors and InvalidSpaceMac
- com.atproto.space.listBlobsParameterslimit1–1000, default 500cursoroptionalfrom the previous pageReturns
cids,cursor?AuthOAuth or credential · GETErrors+ the five repo errors - com.atproto.space.getBlobParameterscidthe blob's CIDReturnsthe blob as uploadedAuthOAuth or credential · GETErrors
BlobNotFound+ the five repo errors
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:
| NSID | Kind | Record key | Fields |
|---|---|---|---|
com#commit | object | none | ver, repo, space, rev, data |
com#repoWrite | object | none | repo, repoRev, data, spaceRev, prevSpaceRev? |
com#repoRemoved | object | none | repo, spaceRev, prevSpaceRev? |
| com | record | self | policy |
| com | object | none | none |
| com | object | none | publicRead?, publicWrite?, allowedApps?, publishPolicy?, publishMembers? |
com#member | object | none | did, read, write |
| com | record | the member’s DID | read, write |
| com | object | none | managingApp, publishPolicy? |
| com | record | TID | uri, cid?, val, cts, exp? |
Spaces reuse com#account and #identity events that carry account status and key changes spec. Records inside a space can still point at each other with a comsubject does.
No methods match. Clear the filter or pick another host.
Appendix A · AT Protocol Spaces: A Field Guide