Skip to content

At a glance

Audience
App developers and protocol implementers
Type
Reference
Status
current

At a glance

Audience
App developers and protocol implementers
Type
Reference
Status
current

Lexicon Reference ​

Every lexicon under lexicons/zone/stratos/ in the repository. A lexicon describes an XRPC method, a record type, or a shared definition in the zone.stratos.* namespace. The page is generated from the JSON files at build time.

A lexicon on this page is a contract, not a promise that one service serves it. The Stratos service serves most methods. The feed generator serves zone.stratos.feedgen.*. The API methods lists what the Stratos service serves and the authentication each method accepts.

The space type zone.stratos.space.feed is not on this page. Its lexicon lives in lexicons-spaces/zone/stratos/space/feed.json. Stratos publishes it as a com.atproto.lexicon.schema record, and a PDS resolves it before it grants a space scope.

GET Query — read-only XRPC callPOST Procedure — write XRPC callWS Subscription — WebSocket streamRECORD Record type stored in reposOBJECT Object type used inside recordsDEFS Shared type definitions

Core Definitions ​

DEFSzone.stratos.defs

Type Definitions

source— Indicates this record requires hydration from an external service. The stub record on the PDS contains minimal data; full content is fetched from the service endpoint.
FieldTypeRequiredDescription
varystring✓Indicates when hydration is needed. 'authenticated' means full content requires viewer authentication.
subject#subjectRef✓Reference to the full record at the hydration service.
servicestring (did)✓DID of the hydration service, optionally with fragment identifying the service entry (e.g., 'did:plc:abc123#atproto_pns').
subjectRef— A strong reference to a record, including its content hash for verification.
FieldTypeRequiredDescription
uristring (at-uri)✓AT-URI of the record at the hydration service.
cidstring (cid)✓CID of the full record content for integrity verification.

Actor ​

RECORDzone.stratos.actor.enrollment

A record indicating the user is enrolled in a Stratos service. Published to the user's PDS during OAuth enrollment for endpoint discovery by AppViews. Multiple enrollment records are supported — one per Stratos service.

Record Schema

FieldTypeRequiredDescription
servicestring (uri)✓The Stratos service endpoint URL where this user's private data is stored.
boundaries#Domain[]—Service-qualified boundaries the user has access to on this Stratos service, each in '{serviceDid}/{domainName}' format.
signingKeystring✓The user's public key as a did:key string, used for user-level record signing. For 'stratos' custody this is a P-256 key generated by the Stratos service; for 'pds' custody this is the user's own '#atproto' key from their DID document.
attestation#serviceAttestation✓Service attestation vouching for the user's enrollment, boundaries, and signing key.
createdAtstring (datetime)✓Timestamp when the enrollment was created.
custodystring—Who hosts and signs this enrollment's repo. 'stratos' is the Stratos-hosted, Stratos-signed repo. 'pds' is the user's own spaces-capable PDS, signing with their own '#atproto' key. Defaults to 'stratos' when absent.
repoHoststring (uri)—The repo host endpoint when custody is 'pds'. Absent for 'stratos' custody.

Type Definitions

serviceAttestation— Service signature over DAG-CBOR {boundaries, did, signingKey, issuedAt}, with sorted boundaries. Legacy attestations omit issuedAt from the payload.
FieldTypeRequiredDescription
sigbytes✓Raw signature bytes of the DAG-CBOR encoded attestation payload, signed by the service key.
signingKeystring✓The Stratos service's public key as a did:key string, used to verify the attestation signature.
issuedAtstring (datetime)—Signed issue time. Required for historical service key verification. Legacy attestations omit this field.

Admin ​

POSTzone.stratos.admin.addAdmin

Grant admin access to a DID. Requires admin authorization.

Request Body application/json

NameTypeRequiredDescription
didstring (did)✓The DID to grant admin access to.

Response application/json

NameTypeRequiredDescription
didstring (did)✓
DEFSzone.stratos.admin.boundaryDefs

Type Definitions

settings
FieldTypeRequiredDescription
displayNamestring✓
descriptionstring✓
listedboolean✓
joinableboolean✓
autoEnrollboolean✓
appAccessstring✓
clientIdsstring (uri)[]✓
boundary
FieldTypeRequiredDescription
displayNamestring✓
descriptionstring✓
listedboolean✓
joinableboolean✓
autoEnrollboolean✓
appAccessstring✓
clientIdsstring (uri)[]✓
boundarystring✓
roomIdstring✓
statusstring✓
createdAtstring (datetime)✓
updatedAtstring (datetime)✓
revisioninteger✓
memberCountinteger✓
reservedboolean✓
POSTzone.stratos.admin.createBoundary

Create a persistent boundary. Requires admin authorization.

Request Body application/json

NameTypeRequiredDescription
namestring✓
settings#settings✓

Response application/json

NameTypeRequiredDescription
boundary#boundary✓

Errors

BoundaryNotFound
BoundaryExists
BoundaryConflict
ReservedBoundary
BoundaryUnavailable
POSTzone.stratos.admin.deactivateBoundary

Block grants, remove every member, then mark the boundary inactive. Records and the boundary are retained. Requires admin authorization.

Request Body application/json

NameTypeRequiredDescription
boundarystring✓
revisioninteger✓

Response application/json

NameTypeRequiredDescription
boundary#boundary✓

Errors

BoundaryNotFound
BoundaryExists
BoundaryConflict
ReservedBoundary
BoundaryUnavailable
GETzone.stratos.admin.getBoundaryAuditState

Read a consistent authority-signed actor membership checkpoint and resume cursor. Requires OAuth admin authorization. A checkpoint recovers current state; it does not reconstruct missing history.

Parameters

NameTypeRequiredDescription
didstring (did)✓

Response application/json

NameTypeRequiredDescription
checkpointcheckpoint✓
signaturestring✓
cursorstring✓
GETzone.stratos.admin.getRepoHost

Resolve repository hosts for an enrolled member's spaces. Requires admin authorization.

Parameters

NameTypeRequiredDescription
didstring (did)✓The enrolled member DID.

Response application/json

NameTypeRequiredDescription
didstring (did)✓
custodystring✓Who hosts the member repository.
isServiceboolean✓Whether this is a service enrollment.
resolutions#resolution[]✓

Type Definitions

resolution
FieldTypeRequiredDescription
boundary#Domain✓
spaceUristring (uri)✓The space's URI, at:space/{authority}/{type}/{skey}.
hoststring (uri)—
sourcestring—
GETzone.stratos.admin.listAdmins

List everyone holding admin access. Requires admin authorization.

Response application/json

NameTypeRequiredDescription
admins#admin[]✓
viewerstring (did)✓The DID of the requesting admin.

Type Definitions

admin
FieldTypeRequiredDescription
didstring (did)✓
sourcestring✓Where the grant comes from. Config admins cannot be revoked through the API.
addedAtstring (datetime)—When access was granted. Absent for config admins.
addedBystring (did)—Who granted access. Absent for config admins.
GETzone.stratos.admin.listBoundaries

List boundary definitions, lifecycle state, and member counts. Requires admin authorization.

Response application/json

NameTypeRequiredDescription
boundaries#boundary[]✓
GETzone.stratos.admin.listBoundaryOps

Page an actor’s authority-signed boundary history. Requires OAuth admin authorization. Cursors bind actor, sequence, and hash. Never use user-repo signatures as boundary authorization.

Parameters

NameTypeRequiredDescription
didstring (did)✓
limitinteger—
cursorstring—

Response application/json

NameTypeRequiredDescription
operations#signedOperation[]✓
cursorstring✓
hasMoreboolean✓

Type Definitions

signedOperation
FieldTypeRequiredDescription
operationoperation✓
hashstring✓
signaturestring✓

Errors

BoundaryHistoryTruncatedHistory is missing, inconsistent, or does not prove this cursor. Recover with getBoundaryAuditState.
GETzone.stratos.admin.listEnrollments

List enrollments in this Stratos service. Requires admin authorization.

Parameters

NameTypeRequiredDescription
limitinteger—Maximum number of enrollments to return.
cursorstring—Pagination cursor from a previous response.
boundarystring—Only return members holding this boundary.
activeboolean—Only return active or inactive enrollments.
custodystring—Only return enrollments with this repo custody.

Response application/json

NameTypeRequiredDescription
enrollments#enrollment[]✓
cursorstring—Cursor for the next page. Absent on the last page.
totalinteger—Total number of enrollments in the service. Absent when any filter is applied.

Type Definitions

enrollment
FieldTypeRequiredDescription
didstring (did)✓The enrolled DID.
enrolledAtstring (datetime)✓When the DID was enrolled.
activeboolean✓Whether the enrollment is currently active.
isServiceboolean—Whether this is a service enrollment rather than a user.
custodystring✓Who hosts the member repository.
repoHoststring (uri)—The repository host recorded for a PDS-custody member.
boundaries#Domain[]✓
GETzone.stratos.admin.listPdsSyncStatus

List queued PDS enrollment-record sync jobs. Shows which members' PDS records are still behind this service's boundary state. Requires admin authorization.

Parameters

NameTypeRequiredDescription
limitinteger—Maximum number of jobs per page.
cursorstring—Opaque pagination cursor from a previous response.

Response application/json

NameTypeRequiredDescription
jobs#job[]✓
cursorstring—Pass to the next call to continue. Absent on the last page.

Type Definitions

job
FieldTypeRequiredDescription
didstring (did)✓The member whose PDS enrollment record is behind.
statusstring✓A 'pending' job is retried by the worker. A 'failed' job is terminal until a fresh admin mutation or a requeue revives it.
attemptCountinteger✓Number of attempts made so far.
nextAttemptAtstring (datetime)✓When the worker may next attempt this job.
firstQueuedAtstring (datetime)✓When sync intent was first recorded for this member.
updatedAtstring (datetime)✓When the job was last written.
lastErrorstring—Message from the most recent failed attempt. Absent when no attempt has failed.
generationinteger✓Fencing token. Every fresh sync intent increases it. An attempt writes its bookkeeping only while its own generation is still current, so a superseded attempt cannot clear or delay a newer job.
POSTzone.stratos.admin.reactivateBoundary

Reactivate an empty inactive boundary without restoring memberships. Requires admin authorization.

Request Body application/json

NameTypeRequiredDescription
boundarystring✓
revisioninteger✓

Response application/json

NameTypeRequiredDescription
boundary#boundary✓

Errors

BoundaryNotFound
BoundaryExists
BoundaryConflict
ReservedBoundary
BoundaryUnavailable
POSTzone.stratos.admin.removeAdmin

Revoke admin access from a DID. Config-provided admins cannot be revoked here, and an admin cannot revoke their own access.

Request Body application/json

NameTypeRequiredDescription
didstring (did)✓The DID to revoke admin access from.

Response application/json

NameTypeRequiredDescription
didstring (did)✓

Errors

NotFoundThe DID does not hold admin access.
POSTzone.stratos.admin.requeuePdsSync

Move every terminally failed PDS enrollment-record sync job back to 'pending'. Use this after a fault that every attempt saw alike, such as a signing key rotation or clock skew, which marks many jobs failed at once. Requires admin authorization.

Response application/json

NameTypeRequiredDescription
requeuedinteger✓Number of jobs moved from 'failed' back to 'pending'.
POSTzone.stratos.admin.setActive

Activate or deactivate an enrolled member. Requires admin authorization. Deactivation is reversible and preserves the member's boundaries.

Request Body application/json

NameTypeRequiredDescription
didstring (did)✓The member to update.
activeboolean✓Whether the member's enrollment should be active.

Response application/json

NameTypeRequiredDescription
didstring (did)✓
activeboolean✓

Errors

NotFoundThe DID is not enrolled.
AccountTakenDownAn account takedown is in force, so the member cannot be activated.
POSTzone.stratos.admin.updateBoundary

Update boundary settings if its revision still matches. Requires admin authorization.

Request Body application/json

NameTypeRequiredDescription
boundarystring✓
revisioninteger✓
settings#settings✓

Response application/json

NameTypeRequiredDescription
boundary#boundary✓

Errors

BoundaryNotFound
BoundaryExists
BoundaryConflict
ReservedBoundary
BoundaryUnavailable

Boundary ​

OBJECTzone.stratos.boundary.checkpoint

Type Definitions

#main
FieldTypeRequiredDescription
$typestring✓
authoritystring (did)✓
didstring (did)✓
sequenceinteger✓
recordedAtstring (datetime)✓
signingKeystring (did)✓
headHashstring✓
state#state✓
DEFSzone.stratos.boundary.defs

Type Definitions

Domain— A specific domain to define exposure boundary.
FieldTypeRequiredDescription
valuestring✓Service-qualified boundary identifier in the format '{serviceDid}/{domainName}', e.g. 'did:web:stratos.example.com/engineering'.
Domains— A collection of domains that define the exposure boundary for a record.
FieldTypeRequiredDescription
values#Domain[]✓The single domain that can access this record. Exactly one domain per record (one record, one space); the array shape is retained for wire compatibility.
OBJECTzone.stratos.boundary.operation

Type Definitions

#main
FieldTypeRequiredDescription
$typestring✓
authoritystring (did)✓
didstring (did)✓
sequenceinteger✓
recordedAtstring (datetime)✓
signingKeystring (did)✓
previousHashstring✓
before#state✓
after#state✓
state
FieldTypeRequiredDescription
enrolledboolean✓
activeboolean✓
boundariesstring[]✓

Embed ​

OBJECTzone.stratos.embed.images

A set of images embedded in a Stratos post. Similar to app.bsky.embed.images but for private data.

Type Definitions

#main— A set of images embedded in a Stratos post. Similar to app.bsky.embed.images but for private data.
FieldTypeRequiredDescription
images#image[]✓
image
FieldTypeRequiredDescription
imageblob✓The image blob.
altstring✓Alternative text for the image, for accessibility.
aspectRatio#aspectRatio—
aspectRatio
FieldTypeRequiredDescription
widthinteger✓
heightinteger✓

Enrollment ​

GETzone.stratos.enrollment.status

Check enrollment status for a DID in this Stratos service.

Parameters

NameTypeRequiredDescription
didstring (did)✓The DID to check enrollment for.

Response application/json

NameTypeRequiredDescription
didstring (did)✓The DID that was checked.
enrolledboolean✓Whether the DID is enrolled in this Stratos service.
eligibleboolean—Whether the DID is eligible to enroll. Only included when the DID is not enrolled. Omitted when the eligibility check cannot complete.
activeboolean—Whether the enrollment is active. Only included when enrolled.
enrolledAtstring (datetime)—When the DID was enrolled, if enrolled.
signingKeystring (did)—The service-held signing key DID for this enrollment. Only included when enrolled.
enrollmentRkeystring—Record key of the zone.stratos.actor.enrollment record on the user's PDS. Only included when enrolled.
boundaries#Domain[]—Authoritative boundaries assigned. Only included when request is authenticated.
POSTzone.stratos.enrollment.unenroll

Unenroll from the Stratos service, revoking the session and deleting the enrollment record from the user's PDS.

Request Body application/json

NameTypeRequiredDescription

Response application/json

NameTypeRequiredDescription
successboolean—

Errors

NotEnrolled
AuthRequired

Feed ​

GETzone.stratos.feed.getTimeline

Fetch a timeline of posts.

Parameters

NameTypeRequiredDescription
limitinteger—
cursorstring—

Response application/json

NameTypeRequiredDescription
feed#feedViewPost[]✓
cursorstring—
RECORDzone.stratos.feed.post

Record containing a private Stratos post with domain boundary restrictions. When stored on user's PDS as a stub, only 'source' and 'createdAt' are present. Full content is available from the hydration service.

Record Schema

FieldTypeRequiredDescription
source#source—When present, indicates this is a stub record. Full content should be hydrated from the referenced service.
textstring—The primary post content. May be an empty string, if there are embeds. Omitted in stub records.
boundary#Domains—Limit exposure to defined domains. Omitted in stub records.
facetsfacet[]—Annotations of text (mentions, URLs, hashtags, etc)
reply#replyRef—
embedimages | images | video | external | record | recordWithMedia—
langsstring (language)[]—Indicates human language of post primary text content.
labels#selfLabels—Self-label values for this post. Effectively content warnings.
tagsstring[]—Additional hashtags, in addition to any included in post text and facets.
createdAtstring (datetime)✓Client-declared timestamp when this post was originally created.

Type Definitions

replyRef— Reference to parent and root posts for replies. Must reference stratos posts only.
FieldTypeRequiredDescription
rootstrongRef✓
parentstrongRef✓

Feed Generator ​

GETzone.stratos.feedgen.describeFeed

List feeds offered by this generator.

Response application/json

NameTypeRequiredDescription
didstring (did)✓
feeds#feedDescription[]✓

Type Definitions

feedDescription
FieldTypeRequiredDescription
idstring✓
boundarystring✓
displayNamestring—
descriptionstring—
GETzone.stratos.feedgen.getBlob

Read a Stratos-hosted blob attached to an accessible indexed post. Requires service-auth scoped to this method. Responses are private and must not be shared or cached by HTTP intermediaries.

Parameters

NameTypeRequiredDescription
uristring✓Exact indexed post URI: at://{did}/{collection}/{rkey}, or at:space/{authority}/{type}/{skey}/{author}/{collection}/{rkey} for a space record.
cidstring (cid)✓

Errors

BlobNotFound
BlobTooLarge
BlobBusy
FeedNotReady
GETzone.stratos.feedgen.getFeed

Fetch a boundary-scoped hydrated feed. Requires service-auth.

Parameters

NameTypeRequiredDescription
feedstring✓Configured feed id.
limitinteger—
cursorstring—

Response application/json

NameTypeRequiredDescription
cursorstring—
feed#feedViewPost[]✓

Type Definitions

feedViewPost
FieldTypeRequiredDescription
post#postView✓
postView
FieldTypeRequiredDescription
uristring✓Record URI: at://{did}/{collection}/{rkey} for a Stratos-hosted post, or at:space/{authority}/{type}/{skey}/{author}/{collection}/{rkey} for a permissioned space record.
cidstring (cid)✓
author#authorView✓
recordunknown✓
indexedAtstring (datetime)✓
boundariesstring[]✓
blobs#blobView[]—Authenticated feedgen blob URLs. Record blob refs remain unchanged. Absent for custody whose blobs must be read from the host.
likeCountinteger—Number of distinct actors who like this post in the feed's boundary.
repostCountinteger—Number of distinct actors who repost this post in the feed's boundary.
viewer#viewerState—
viewerState
FieldTypeRequiredDescription
likestring—URI of the viewer's like record.
repoststring—URI of the viewer's repost record.
authorView
FieldTypeRequiredDescription
didstring (did)✓
handlestring—
blobView
FieldTypeRequiredDescription
cidstring (cid)✓
urlstring (uri)✓
mimeTypestring—

Errors

UnknownFeed
BoundaryMismatch

Identity ​

GETzone.stratos.identity.getKeyHistory

Public, append-only service signing key history. Each rotation requires previous-key authorization and new-key acceptance. Anchor the final key to the current service DID document before trusting historical keys.

Response application/json

NameTypeRequiredDescription
serviceDidstring (did)✓
entries#entry[]✓

Type Definitions

entry
FieldTypeRequiredDescription
versionIdstring✓
keystring✓
validFromstring (datetime)✓
previousVersionIdstring✓
proofstring✓
acceptancestring✓
GETzone.stratos.identity.resolveEnrollments

Resolve enrollment boundaries for a DID. Returns the boundary domains the user is enrolled in.

Parameters

NameTypeRequiredDescription
didstring (did)✓The DID to resolve enrollment boundaries for.

Response application/json

NameTypeRequiredDescription
didstring (did)✓
enrolledboolean✓Whether the DID is enrolled in this Stratos service.
boundariesstring[]✓Boundary domains the user is enrolled in. Empty if not enrolled.

Repository ​

POSTzone.stratos.repo.applyWrites

Apply a batch of creates, updates, and deletes in one boundary as a single commit. Mirrors com.atproto.space.applyWrites at atproto commit 98ef3a6b9, addressing the boundary by its service-qualified name. Requires auth.

Request Body application/json

NameTypeRequiredDescription
boundarystring✓Service-qualified boundary identifier `{serviceDid}/{domainName}`
repostring (did)✓The DID of the repo to write to (the authenticated member).
validateboolean—Can be set to 'false' to skip Lexicon schema validation of record data across all operations, 'true' to require it, or leave unset to validate only for known Lexicons.
writes#create | #update | #delete[]✓The writes to apply. One batch is one commit, so the length is bounded to the limit the reference implementation enforces; the server rejects larger batches before charging the rate limit.

Response application/json

NameTypeRequiredDescription
results#createResult | #updateResult | #deleteResult[]—

Type Definitions

create— Operation which creates a new record.
FieldTypeRequiredDescription
collectionstring (nsid)✓
rkeystring (record-key)—
valueunknown✓
update— Operation which updates an existing record.
FieldTypeRequiredDescription
collectionstring (nsid)✓
rkeystring (record-key)✓
valueunknown✓
delete— Operation which deletes an existing record.
FieldTypeRequiredDescription
collectionstring (nsid)✓
rkeystring (record-key)✓
createResult
FieldTypeRequiredDescription
uristring (at-uri)✓
cidstring (cid)✓
validationStatusstring—
updateResult
FieldTypeRequiredDescription
uristring (at-uri)✓
cidstring (cid)✓
validationStatusstring—
deleteResult
FieldTypeRequiredDescription

Errors

BoundaryNotFoundThe boundary does not exist.
RecordNotFoundAn update or delete targeted a record that does not exist.
RecordAlreadyExistsA create targeted a collection and rkey that already holds a record.
BoundaryMismatchThe record carries a boundary that differs from the boundary parameter.
InvalidRecordThe record is not an object, its $type is missing or differs from the collection, or it breaks a content rule of the collection.
InvalidCollectionThe collection is not allowed in this boundary.
NotEnrolledThe caller is not enrolled, or the enrollment is inactive.
ServiceWriteForbiddenService identities cannot write records.
PdsCustodyWriteForbiddenThe caller keeps their records on their own PDS and cannot write here.
ForbiddenBoundaryThe caller does not hold this boundary.
InvalidDomainThe boundary name is malformed.
ServiceMismatchThe boundary belongs to another service.
RateLimitExceededThe caller has exceeded the write rate limit.
ScopeUpgradeRequiredThe member's grant predates this collection. Authorize again.
POSTzone.stratos.repo.createRecord

Create a single new record in a boundary. Mirrors com.atproto.space.createRecord at atproto commit 98ef3a6b9, addressing the boundary by its service-qualified name. Requires auth.

Request Body application/json

NameTypeRequiredDescription
boundarystring✓Service-qualified boundary identifier `{serviceDid}/{domainName}`
repostring (did)✓The DID of the repo to write to (the authenticated member).
collectionstring (nsid)✓The NSID of the record collection.
rkeystring (record-key)—The Record Key.
validateboolean—Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
recordunknown✓The record itself. Must contain a $type field.

Response application/json

NameTypeRequiredDescription
uristring (at-uri)✓URI of the created record.
cidstring (cid)✓
validationStatusstring—

Errors

BoundaryNotFoundThe boundary does not exist.
RecordAlreadyExistsA record already exists at this collection and rkey. Retry with a different rkey, or use putRecord.
BoundaryMismatchThe record carries a boundary that differs from the boundary parameter.
InvalidRecordThe record is not an object, its $type is missing or differs from the collection, or it breaks a content rule of the collection.
InvalidCollectionThe collection is not allowed in this boundary.
NotEnrolledThe caller is not enrolled, or the enrollment is inactive.
ServiceWriteForbiddenService identities cannot write records.
PdsCustodyWriteForbiddenThe caller keeps their records on their own PDS and cannot write here.
ForbiddenBoundaryThe caller does not hold this boundary.
InvalidDomainThe boundary name is malformed.
ServiceMismatchThe boundary belongs to another service.
RateLimitExceededThe caller has exceeded the write rate limit.
ScopeUpgradeRequiredThe member's grant predates this collection. Authorize again.
POSTzone.stratos.repo.deleteRecord

Delete a record from a boundary, or ensure it is not there. Mirrors com.atproto.space.deleteRecord at atproto commit 98ef3a6b9, addressing the boundary by its service-qualified name. Succeeds whether or not the record was present in the boundary. Requires auth.

Request Body application/json

NameTypeRequiredDescription
boundarystring✓Service-qualified boundary identifier `{serviceDid}/{domainName}`
repostring (did)✓The DID of the repo to delete from (the authenticated member).
collectionstring (nsid)✓The NSID of the record collection.
rkeystring (record-key)✓The Record Key.

Response application/json

NameTypeRequiredDescription

Errors

BoundaryNotFoundThe boundary does not exist.
InvalidCollectionThe collection is not allowed in this boundary.
NotEnrolledThe caller is not enrolled, or the enrollment is inactive.
ServiceWriteForbiddenService identities cannot write records.
PdsCustodyWriteForbiddenThe caller keeps their records on their own PDS and cannot write here.
ForbiddenBoundaryThe caller does not hold this boundary.
InvalidDomainThe boundary name is malformed.
ServiceMismatchThe boundary belongs to another service.
RateLimitExceededThe caller has exceeded the write rate limit.
GETzone.stratos.repo.hydrateRecord

Hydrate a single record by URI. Returns the record if viewer has boundary access.

Parameters

NameTypeRequiredDescription
uristring (at-uri)✓The AT-URI of the record to hydrate
cidstring (cid)—Optional CID to verify record version

Response application/json

NameTypeRequiredDescription
uristring (at-uri)✓
cidstring (cid)✓
valueunknown✓

Errors

RecordNotFoundThe requested record does not exist
RecordBlockedAccess to the record is blocked due to boundary restrictions
POSTzone.stratos.repo.hydrateRecords

Hydrate multiple records by URI. Returns records filtered by viewer's boundary access.

Request Body application/json

NameTypeRequiredDescription
urisstring (at-uri)[]✓Array of AT-URIs to hydrate (max 100)

Response application/json

NameTypeRequiredDescription
records#recordView[]✓Successfully hydrated records
notFoundstring (at-uri)[]✓URIs that were not found
blockedstring (at-uri)[]✓URIs blocked due to boundary restrictions

Type Definitions

recordView
FieldTypeRequiredDescription
uristring (at-uri)✓
cidstring (cid)✓
valueunknown✓
POSTzone.stratos.repo.importRepo

Import a repository from a CAR file. Verifies record CID integrity and re-signs with the destination service key. The caller must be enrolled as the DID in the CAR's commit block.

Response application/json

NameTypeRequiredDescription
importedinteger✓Number of records successfully imported.

Errors

InvalidCarThe CAR file is malformed, has missing blocks, or contains records with mismatched CIDs.
RepoAlreadyExistsThe destination already has records for this DID. Import is only supported for empty repos.
POSTzone.stratos.repo.putRecord

Write a record in a boundary, creating it or updating it in place. Mirrors com.atproto.space.putRecord at atproto commit 98ef3a6b9, addressing the boundary by its service-qualified name. A record held in another boundary, or taken down, is never overwritten. Requires auth.

Request Body application/json

NameTypeRequiredDescription
boundarystring✓Service-qualified boundary identifier `{serviceDid}/{domainName}`
repostring (did)✓The DID of the repo to write to (the authenticated member).
collectionstring (nsid)✓The NSID of the record collection.
rkeystring (record-key)✓The Record Key.
validateboolean—Can be set to 'false' to skip Lexicon schema validation of record data, 'true' to require it, or leave unset to validate only for known Lexicons.
recordunknown✓The record to write.

Response application/json

NameTypeRequiredDescription
uristring (at-uri)✓URI of the written record.
cidstring (cid)✓
validationStatusstring—

Errors

BoundaryNotFoundThe boundary does not exist.
RecordAlreadyExistsA record already exists at this collection and rkey in another boundary, or has been taken down.
BoundaryMismatchThe record carries a boundary that differs from the boundary parameter.
InvalidRecordThe record is not an object, its $type is missing or differs from the collection, or it breaks a content rule of the collection.
InvalidCollectionThe collection is not allowed in this boundary.
NotEnrolledThe caller is not enrolled, or the enrollment is inactive.
ServiceWriteForbiddenService identities cannot write records.
PdsCustodyWriteForbiddenThe caller keeps their records on their own PDS and cannot write here.
ForbiddenBoundaryThe caller does not hold this boundary.
InvalidDomainThe boundary name is malformed.
ServiceMismatchThe boundary belongs to another service.
RateLimitExceededThe caller has exceeded the write rate limit.
ScopeUpgradeRequiredThe member's grant predates this collection. Authorize again.
POSTzone.stratos.repo.uploadBlob

Upload a new blob, to be referenced from a Stratos repository record. The blob will be deleted if it is not referenced within a time window (eg, minutes). Blob restrictions (mimetype, size, etc) are enforced when the reference is created. Requires auth, implemented by Stratos service.

Response application/json

NameTypeRequiredDescription
blobblob✓

Server ​

GETzone.stratos.server.listDomains

Returns the list of boundary domains available on this Stratos service.

Response application/json

NameTypeRequiredDescription
domainsstring[]✓The boundary domains available on this service.
GETzone.stratos.server.listRooms

List publicly listed rooms from the authority-owned boundary catalog. Unavailable rooms cannot accept joins.

Response application/json

NameTypeRequiredDescription
rooms#room[]✓

Type Definitions

room
FieldTypeRequiredDescription
idstring✓
boundarystring✓
displayNamestring✓
descriptionstring✓
availableboolean✓

Space ​

GETzone.stratos.space.getRecord

Get a single record from a permissioned space. This is a boundary-scoped read of a record this service holds. It is a Stratos method, not the upstream com.atproto.space.getRecord of a similar name, and a member's own PDS is never asked. It is callable with standard user auth (the caller must be a member of the space) or with a space credential for that space (for syncing services). The record must belong to the requested space; records outside it - including records with no space at all - resolve to RecordNotFound (no existence leak).

Parameters

NameTypeRequiredDescription
spacestring✓The space's URI (at:space/{did}/{type}/{skey}). This is a space URI in the form above; upstream's space-ref format (atproto#5187) is expected to adopt it. Declared as a plain string until @atproto/lexicon supports a matching format. Its space DID must equal this service's DID.
repostring (did)✓The DID of the account whose repo to read from.
collectionstring (nsid)✓The NSID of the record collection.
rkeystring✓The Record Key.

Response application/json

NameTypeRequiredDescription
uristring (at-uri)✓
cidstring (cid)✓
valueunknown✓

Errors

RecordNotFoundThe record does not exist in the requested space (or does not exist at all - indistinguishable by design).
UnknownSpaceThe requested space URI is malformed or its space DID does not match this service's DID.
AuthRequiredThe caller is not admitted to the requested space (not a member, or the presented credential targets a different space).
POSTzone.stratos.space.getSpaceCredential

Stratos's own transport for minting a space credential. It issues a credential of the standard shape for a space the caller is a member of, but it is not com.atproto.space.authorizeSpaceSync: it has no notification registration and no writer revision, and it is not an alias for that method. The credential is multi-use until it expires and is bound to the caller's DPoP key (cnf.jkt, RFC 9449): it must be presented under the DPoP auth scheme with a per-request proof signed by that key. It is signed by the space authority's signing key so any repo host can verify it without contacting the authority. A client may present a space delegation as a Bearer Authorization header with a standalone nonce-free DPoP proof that omits ath, or as delegationToken in the JSON body for existing clients with the same proof and no Authorization header. A body delegation combined with any Authorization header, including a DPoP session token, is rejected. Without delegation, identity comes from the DPoP-authenticated user and the session proof key is bound. Membership is checked live against the enrollment store. App-axis (client attestation) gating is enforced here: spaces configured with an app allow-list require a valid client attestation whose attested client_id is listed; spaces that are open ignore any attestation supplied. Additive HTTP-signature profile: Bearer delegation with RFC 9421 atproto-space Signature and Signature-Input covering exactly authorization, with a P-256 did:key keyid, mints cnf.kid credentials (default 600 seconds, maximum 3600). Present these with an Atproto-Space-Credential authorization, an atproto-space-audience header and one signature tagged atproto-space-credential covering authorization then atproto-space-audience. Repo reads use the actual repo owner DID; authority listing uses the bare authority DID. Presentation signatures are reusable for the same credential and audience. Conflicting proof families are rejected without fallback. Legacy DPoP and OAuth-session minting retain cnf.jkt and their existing lifetime.

Request Body application/json

NameTypeRequiredDescription
spacestring✓The space's URI (at:space/{did}/{type}/{skey}). This is a space URI in the form above; upstream's space-ref format (atproto#5187) is expected to adopt it. Declared as a plain string until @atproto/lexicon supports a matching format. Its space DID must equal this service's DID.
delegationTokenstring—Compatibility transport for a space-delegation JWT. New clients send the delegation in a Bearer Authorization header. The token target must equal space. When this field is present, omit Authorization entirely; a standalone DPoP proof is still required.
clientAttestationstring—Optional client-attestation JWT (an OAuth private_key_jwt client assertion to the space authority). Required only for spaces gated on client app identity (appAccess allowList); the allow-list is evaluated against the attested client_id. Ignored for open spaces.

Response application/json

NameTypeRequiredDescription
credentialstring✓The compact-serialized space-credential JWT.
expiresAtstring (datetime)✓The credential's expiry time (matches the JWT `exp` claim).

Errors

InvalidTokenThe supplied delegation token failed verification, or its target space does not match the requested space.
NotEnrolledThe identified user is not enrolled in the boundary corresponding to the requested space.
UnknownSpaceThe requested space URI is malformed or its space DID does not match this service's DID.
AttestationRequiredThe requested space gates on client app identity (appAccess allowList) but no valid client attestation was supplied.
ClientNotAllowedA valid client attestation was supplied but its attested client_id is not in the space's app allow-list.
ProofRequiredA valid profile-specific proof is required: HTTP signature for the Bearer delegation HTTP profile, or the existing DPoP proof for legacy delegation and session profiles. Conflicting profiles are rejected.
GETzone.stratos.space.listBlobs

List the CIDs of blobs referenced by an account's records within a permissioned space, optionally since some revision of that repo. This is a boundary-scoped read of blobs this service holds. It is a Stratos method, not the upstream com.atproto.space.listBlobs of a similar name. It is callable with standard user auth (the caller must be a member of the space) or with a space credential for that space (for syncing services). Blobs behind permissioned records are never enumerated by an unauthenticated endpoint.

Parameters

NameTypeRequiredDescription
spacestring✓The space's URI (at:space/{did}/{type}/{skey}). This is a space URI in the form above; upstream's space-ref format (atproto#5187) is expected to adopt it. Declared as a plain string until @atproto/lexicon supports a matching format. Its space DID must equal this service's DID.
repostring (did)✓The DID of the account whose blobs to list.
sincestring (tid)—Optional revision of the repo to list blobs since.
limitinteger—
cursorstring—

Response application/json

NameTypeRequiredDescription
cursorstring—
cidsstring (cid)[]✓

Errors

RepoNotFoundThe requested account has no repo on this service.
UnknownSpaceThe requested space URI is malformed or its space DID does not match this service's DID.
AuthRequiredThe caller is not admitted to the requested space (not a member, or the presented credential targets a different space).
GETzone.stratos.space.listRepos

List the known repos that hold data in a space (the writer set), each with its DID and custody. A stratos-custody repo also carries its current rev, which this service stores. A pds-custody repo also carries a `host` and `hostSource` when its host can be resolved: an authority-recorded override, or else the member's DID-document #atproto_pds endpoint; both are omitted when neither is found. This is the membership oracle for a space, answered from this service's active enrollments in the space's boundary. It is a Stratos method, not the upstream com.atproto.space.listWriters, and does not take or return what that method does. It is not a member-facing read: callable with inter-service auth (a syncing service, admitted by its own enrolled boundaries) or with a space credential for that space, never with a plain user session.

Parameters

NameTypeRequiredDescription
spacestring✓The space's URI (at:space/{did}/{type}/{skey}). This is a space URI in the form above; upstream's space-ref format (atproto#5187) is expected to adopt it. Declared as a plain string until @atproto/lexicon supports a matching format. Its space DID must equal this service's DID.
limitinteger—Maximum number of repos to return.
cursorstring—

Response application/json

NameTypeRequiredDescription
cursorstring—
repos#repo[]✓

Type Definitions

repo
FieldTypeRequiredDescription
didstring (did)✓The DID of a repo that holds data in the space.
custodystring✓Who hosts and signs this member's repo: 'stratos' when Stratos itself holds and signs it, 'pds' when the member's own spaces-capable PDS does. Always present; an enrollment recorded before custody tracking reports 'stratos'.
revstring (tid)—The repo's current revision (TID). Present only for a stratos-custody member, whose repo Stratos itself stores; absent for a pds-custody member, whose repo lives on their own PDS.
hashbytes—Unpopulated by this service: Stratos stores an MST repo, not an LtHash repo, so it never computes the sha256-of-LtHash-state value this field describes upstream. Reserved for a repo host that does.
hoststring—The Stratos convention's resolved repo host for a pds-custody member, if resolvable. Absent for a stratos-custody member, and when neither an override nor a DID-document PDS endpoint could be found.
hostSourcestring—Which arm of the Stratos host-discovery convention produced `host`. Absent along with `host` when the member is unresolvable.

Errors

UnknownSpaceThe requested space URI is malformed or its space DID does not match this service's DID.
AuthRequiredThe caller is not admitted to the requested space (not a member, or the presented credential targets a different space).

Sync ​

GETzone.stratos.sync.getBlob

Get a blob by CID with boundary-based access control.

Parameters

NameTypeRequiredDescription
didstring (did)✓
cidstring (cid)✓

Errors

BlobNotFound
Forbidden
GETzone.stratos.sync.getRepo

Export the full repository as a CAR file. Returns all record blocks, MST nodes, and the signed commit.

Parameters

NameTypeRequiredDescription
didstring (did)✓The DID of the repo to export.
sincestring (tid)—Optional revision cursor. If provided, only blocks newer than this revision are included.

Errors

RepoNotFoundThe requested repo does not exist or has no commits.
GETzone.stratos.sync.listBoundaries

Read the current active boundary catalog for an enrolled service. Only boundaries the authenticated service currently holds are returned. Joinability controls new joins, not existing member reads.

Response application/json

NameTypeRequiredDescription
boundaries#boundary[]✓

Type Definitions

boundary
FieldTypeRequiredDescription
boundarystring✓
roomIdstring✓
displayNamestring✓
descriptionstring✓
listedboolean✓
joinableboolean✓
revisioninteger✓
GETzone.stratos.sync.listRecordPaths

Full-state recovery: enumerate the record paths and current CIDs of a repo this service holds, paged by collection and record key. Record values are inlined by default; excludeValues returns metadata only. Boundary-gated: the caller only observes records within its enrolled boundaries. Intended as the fallback when the oplog (listRepoOps) returns OplogTruncated: the caller enumerates paths, diffs locally, and fetches misses. Callers must authenticate with a signed service JWT via the Authorization: Bearer header.

Parameters

NameTypeRequiredDescription
didstring (did)✓The DID of the repo to enumerate.
collectionstring (nsid)—Optional single collection to enumerate. When omitted, all collections are enumerated.
cursorstring—Opaque pagination cursor from a previous response.
limitinteger—Maximum number of rows to return in this page.
excludeValuesboolean—When true, record values are omitted and only path metadata is returned.

Response application/json

NameTypeRequiredDescription
records#recordPath[]✓The record paths in this page.
cursorstring—Opaque pagination cursor to fetch the next page. Absent when enumeration is complete.

Type Definitions

recordPath— A record path with its current CID and optionally its value.
FieldTypeRequiredDescription
collectionstring (nsid)✓The record collection.
rkeystring✓The record key.
cidstring (cid)✓The CID (string form) of the current record value.
valueunknown—The current record value, inlined by default. Omitted when excludeValues is true.

Errors

RepoNotFoundThe requested repo does not exist.
AuthRequiredService authentication is required.
GETzone.stratos.sync.listRepoOps

Incremental pull sync of the operation log (oplog) of a repo this service holds, for a syncing service such as a feed generator. It is a Stratos method, not the upstream com.atproto.space.listRepoOps of a similar name, and does not take or return what that method does. Returns record operations after the `since` revision, with current record values inlined by default. Boundary-gated: a service caller only observes operations for records within its enrolled boundaries, and a space credential only those within its space's boundary. The response reaches the head of the oplog when `cursor` is absent; the repo's current signed commit is then included (unless the repo has no commits yet), consistent with the operations returned. When a concurrent write is detected, a cursor is returned instead of the commit; that response can carry no operations and repeat the cursor you sent, so poll again while a cursor is present and do not read an unchanged cursor as a stall. A write that commits after the head probe is not detected; it falls outside this snapshot and arrives on a later poll. Callers authenticate with a signed service JWT via the Authorization: Bearer header, or with a space credential; a plain user session is not admitted. The oplog is a droppable transport optimization; if `since` predates retained history the OplogTruncated error is returned rather than a silent restart, so the caller falls back to full-state recovery (listRecordPaths).

Parameters

NameTypeRequiredDescription
didstring (did)✓The DID of the repo to sync.
sincestring (tid)—A revision (TID): the caller's own sync position. Only operations after this revision are returned. Omit to start from the beginning of retained history. Use `cursor` to continue a paginated response.
limitinteger—Maximum number of operations to return in this page.
cursorstring—Opaque pagination cursor from a previous response. Takes precedence over `since` when both are supplied.
excludeValuesboolean—When true, record values are omitted and only operation metadata is returned.

Response application/json

NameTypeRequiredDescription
ops#repoOp[]✓The operations in this page, in ascending revision order.
cursorstring—Opaque pagination cursor to fetch the next page. Absent once the response reaches the head of the oplog. Can repeat the cursor you sent when a concurrent write was detected.
commit#signedCommit—The repo's current signed MST commit. Included when the response reaches the head of the oplog; omitted on backfill responses and when the repo has no commits yet (no writes) - in that case there is nothing to sign and also no ops to sync.

Type Definitions

repoOp— A single record operation in the oplog. `cid` null means delete; `prev` null means create.
FieldTypeRequiredDescription
revstring (tid)✓The revision of the commit that produced this operation. Atomic multi-writes share one rev.
collectionstring (nsid)✓The record collection.
rkeystring (record-key)✓The record key.
cidstring (cid)✓The CID (string form) of the current record value. Null for a delete.
prevstring (cid)✓The CID (string form) of the record value this operation superseded. Null for a create, or when the superseded value predates the returned window.
valueunknown—The current record value, inlined by default for create/update ops. Omitted when excludeValues is true, for a delete, or when the value has been superseded by a later operation.
signedCommit— A signed MST v3 commit, as persisted (read verbatim, not re-signed).
FieldTypeRequiredDescription
didstring (did)✓The DID of the repo.
versioninteger✓The commit version (3).
datastring (cid)✓The CID (string form) of the MST root node.
revstring (tid)✓The commit revision.
prevstring (cid)—The CID (string form) of the previous commit. Absent for the first commit.
sigstring✓The commit signature, base64-encoded (the exact persisted bytes).

Errors

OplogTruncatedThe requested `since` revision falls outside retained history: it predates the oldest retained event (compacted), postdates the newest (not a rev this repo issued), or there is no retained log to check it against. Also returned for an unusable `cursor`: malformed, predating retained history (compacted between pages), or beyond the newest retained event. The caller must fall back to full-state recovery. Stricter than upstream, which restarts from the beginning of retained history instead of erroring.
RepoNotFoundThe requested repo does not exist.
AuthRequiredService authentication is required.
WSzone.stratos.sync.subscribeRecords

Subscribe to stratos events. When 'did' is provided, subscribes to record updates for that account. When omitted, subscribes to service-level events (enrollments). Callers must authenticate with a signed service JWT via the Authorization: Bearer header.

Parameters

NameTypeRequiredDescription
didstring (did)—The DID of the account to subscribe to. If omitted, subscribes to service-level enrollment events.
cursorinteger—The last known event sequence number to resume from.
domainstring—Optional domain filter. Only events for records with this domain in their boundary will be emitted.

Message Types

commitenrollmentinfo

Type Definitions

commit— A commit event containing record operations.
FieldTypeRequiredDescription
seqinteger✓The sequence number of this event.
didstring (did)✓The DID of the account.
timestring (datetime)✓Timestamp of when the event was sequenced.
revstring (tid)✓The repo revision.
ops#recordOp[]✓List of record operations in this commit.
recordOp— A single record operation within a commit.
FieldTypeRequiredDescription
actionstring✓The type of operation.
pathstring✓The record path (collection/rkey).
cidcid-link—The CID of the record. Present for create and update operations.
recordunknown—The record content. Present for create and update operations.
boundary#opBoundary—The boundary the op belongs to; present on create, update and scoped removal ops written by current servers; absent on ops written before it existed, where consumers fall back to the record body.
excludeBoundary#opBoundary—Present on a scoped removal that is half of a move: the boundary the record moved into. A subscriber that holds one of these boundaries still sees the record and does not receive the removal.
opBoundary— The boundaries of a sync op. Unlike a record's boundary, it can list several values, because the removal op for a record written before the one-boundary rule names every boundary the record had.
FieldTypeRequiredDescription
values#Domain[]✓
info— An informational message about the subscription state.
FieldTypeRequiredDescription
namestring✓The type of info message.
messagestring—Additional details about the info message.
enrollment— An enrollment event indicating a user has enrolled or unenrolled from the service.
FieldTypeRequiredDescription
didstring (did)✓The DID of the user.
actionstring✓The enrollment action.
servicestring (uri)—The Stratos service endpoint URL.
boundariesstring[]—The boundaries assigned to the user.
timestring (datetime)✓Timestamp of the enrollment event.

Errors

FutureCursorCursor is in the future.
AuthRequiredAuthentication is required.