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.
Core Definitions
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.| Field | Type | Required | Description |
|---|---|---|---|
vary | string | ✓ | Indicates when hydration is needed. 'authenticated' means full content requires viewer authentication. |
subject | #subjectRef | ✓ | Reference to the full record at the hydration service. |
service | string (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.| Field | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | AT-URI of the record at the hydration service. |
cid | string (cid) | ✓ | CID of the full record content for integrity verification. |
Actor
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
| Field | Type | Required | Description |
|---|---|---|---|
service | string (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. |
signingKey | string | ✓ | 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. |
createdAt | string (datetime) | ✓ | Timestamp when the enrollment was created. |
custody | string | — | 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. |
repoHost | string (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.| Field | Type | Required | Description |
|---|---|---|---|
sig | bytes | ✓ | Raw signature bytes of the DAG-CBOR encoded attestation payload, signed by the service key. |
signingKey | string | ✓ | The Stratos service's public key as a did:key string, used to verify the attestation signature. |
issuedAt | string (datetime) | — | Signed issue time. Required for historical service key verification. Legacy attestations omit this field. |
Admin
Grant admin access to a DID. Requires admin authorization.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID to grant admin access to. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ |
Type Definitions
settings| Field | Type | Required | Description |
|---|---|---|---|
displayName | string | ✓ | |
description | string | ✓ | |
listed | boolean | ✓ | |
joinable | boolean | ✓ | |
autoEnroll | boolean | ✓ | |
appAccess | string | ✓ | |
clientIds | string (uri)[] | ✓ |
boundary| Field | Type | Required | Description |
|---|---|---|---|
displayName | string | ✓ | |
description | string | ✓ | |
listed | boolean | ✓ | |
joinable | boolean | ✓ | |
autoEnroll | boolean | ✓ | |
appAccess | string | ✓ | |
clientIds | string (uri)[] | ✓ | |
boundary | string | ✓ | |
roomId | string | ✓ | |
status | string | ✓ | |
createdAt | string (datetime) | ✓ | |
updatedAt | string (datetime) | ✓ | |
revision | integer | ✓ | |
memberCount | integer | ✓ | |
reserved | boolean | ✓ |
Create a persistent boundary. Requires admin authorization.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
name | string | ✓ | |
settings | #settings | ✓ |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundary | #boundary | ✓ |
Errors
BoundaryNotFoundBoundaryExistsBoundaryConflictReservedBoundaryBoundaryUnavailableBlock grants, remove every member, then mark the boundary inactive. Records and the boundary are retained. Requires admin authorization.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | |
revision | integer | ✓ |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundary | #boundary | ✓ |
Errors
BoundaryNotFoundBoundaryExistsBoundaryConflictReservedBoundaryBoundaryUnavailableRead 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
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
checkpoint | checkpoint | ✓ | |
signature | string | ✓ | |
cursor | string | ✓ |
Resolve repository hosts for an enrolled member's spaces. Requires admin authorization.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The enrolled member DID. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
custody | string | ✓ | Who hosts the member repository. |
isService | boolean | ✓ | Whether this is a service enrollment. |
resolutions | #resolution[] | ✓ |
Type Definitions
resolution| Field | Type | Required | Description |
|---|---|---|---|
boundary | #Domain | ✓ | |
spaceUri | string (uri) | ✓ | The space's URI, at:space/{authority}/{type}/{skey}. |
host | string (uri) | — | |
source | string | — |
List everyone holding admin access. Requires admin authorization.
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
admins | #admin[] | ✓ | |
viewer | string (did) | ✓ | The DID of the requesting admin. |
Type Definitions
admin| Field | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
source | string | ✓ | Where the grant comes from. Config admins cannot be revoked through the API. |
addedAt | string (datetime) | — | When access was granted. Absent for config admins. |
addedBy | string (did) | — | Who granted access. Absent for config admins. |
List boundary definitions, lifecycle state, and member counts. Requires admin authorization.
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundaries | #boundary[] | ✓ |
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
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
limit | integer | — | |
cursor | string | — |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
operations | #signedOperation[] | ✓ | |
cursor | string | ✓ | |
hasMore | boolean | ✓ |
Type Definitions
signedOperation| Field | Type | Required | Description |
|---|---|---|---|
operation | operation | ✓ | |
hash | string | ✓ | |
signature | string | ✓ |
Errors
BoundaryHistoryTruncatedHistory is missing, inconsistent, or does not prove this cursor. Recover with getBoundaryAuditState.List enrollments in this Stratos service. Requires admin authorization.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | — | Maximum number of enrollments to return. |
cursor | string | — | Pagination cursor from a previous response. |
boundary | string | — | Only return members holding this boundary. |
active | boolean | — | Only return active or inactive enrollments. |
custody | string | — | Only return enrollments with this repo custody. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
enrollments | #enrollment[] | ✓ | |
cursor | string | — | Cursor for the next page. Absent on the last page. |
total | integer | — | Total number of enrollments in the service. Absent when any filter is applied. |
Type Definitions
enrollment| Field | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The enrolled DID. |
enrolledAt | string (datetime) | ✓ | When the DID was enrolled. |
active | boolean | ✓ | Whether the enrollment is currently active. |
isService | boolean | — | Whether this is a service enrollment rather than a user. |
custody | string | ✓ | Who hosts the member repository. |
repoHost | string (uri) | — | The repository host recorded for a PDS-custody member. |
boundaries | #Domain[] | ✓ |
List queued PDS enrollment-record sync jobs. Shows which members' PDS records are still behind this service's boundary state. Requires admin authorization.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | — | Maximum number of jobs per page. |
cursor | string | — | Opaque pagination cursor from a previous response. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
jobs | #job[] | ✓ | |
cursor | string | — | Pass to the next call to continue. Absent on the last page. |
Type Definitions
job| Field | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The member whose PDS enrollment record is behind. |
status | string | ✓ | A 'pending' job is retried by the worker. A 'failed' job is terminal until a fresh admin mutation or a requeue revives it. |
attemptCount | integer | ✓ | Number of attempts made so far. |
nextAttemptAt | string (datetime) | ✓ | When the worker may next attempt this job. |
firstQueuedAt | string (datetime) | ✓ | When sync intent was first recorded for this member. |
updatedAt | string (datetime) | ✓ | When the job was last written. |
lastError | string | — | Message from the most recent failed attempt. Absent when no attempt has failed. |
generation | integer | ✓ | 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. |
Reactivate an empty inactive boundary without restoring memberships. Requires admin authorization.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | |
revision | integer | ✓ |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundary | #boundary | ✓ |
Errors
BoundaryNotFoundBoundaryExistsBoundaryConflictReservedBoundaryBoundaryUnavailableRevoke admin access from a DID. Config-provided admins cannot be revoked here, and an admin cannot revoke their own access.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID to revoke admin access from. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ |
Errors
NotFoundThe DID does not hold admin access.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
| Name | Type | Required | Description |
|---|---|---|---|
requeued | integer | ✓ | Number of jobs moved from 'failed' back to 'pending'. |
Activate or deactivate an enrolled member. Requires admin authorization. Deactivation is reversible and preserves the member's boundaries.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The member to update. |
active | boolean | ✓ | Whether the member's enrollment should be active. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
active | boolean | ✓ |
Errors
NotFoundThe DID is not enrolled.AccountTakenDownAn account takedown is in force, so the member cannot be activated.Update boundary settings if its revision still matches. Requires admin authorization.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | |
revision | integer | ✓ | |
settings | #settings | ✓ |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
boundary | #boundary | ✓ |
Errors
BoundaryNotFoundBoundaryExistsBoundaryConflictReservedBoundaryBoundaryUnavailableBoundary
Type Definitions
#main| Field | Type | Required | Description |
|---|---|---|---|
$type | string | ✓ | |
authority | string (did) | ✓ | |
did | string (did) | ✓ | |
sequence | integer | ✓ | |
recordedAt | string (datetime) | ✓ | |
signingKey | string (did) | ✓ | |
headHash | string | ✓ | |
state | #state | ✓ |
Type Definitions
Domain— A specific domain to define exposure boundary.| Field | Type | Required | Description |
|---|---|---|---|
value | string | ✓ | 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.| Field | Type | Required | Description |
|---|---|---|---|
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. |
Type Definitions
#main| Field | Type | Required | Description |
|---|---|---|---|
$type | string | ✓ | |
authority | string (did) | ✓ | |
did | string (did) | ✓ | |
sequence | integer | ✓ | |
recordedAt | string (datetime) | ✓ | |
signingKey | string (did) | ✓ | |
previousHash | string | ✓ | |
before | #state | ✓ | |
after | #state | ✓ |
state| Field | Type | Required | Description |
|---|---|---|---|
enrolled | boolean | ✓ | |
active | boolean | ✓ | |
boundaries | string[] | ✓ |
Embed
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.| Field | Type | Required | Description |
|---|---|---|---|
images | #image[] | ✓ |
image| Field | Type | Required | Description |
|---|---|---|---|
image | blob | ✓ | The image blob. |
alt | string | ✓ | Alternative text for the image, for accessibility. |
aspectRatio | #aspectRatio | — |
aspectRatio| Field | Type | Required | Description |
|---|---|---|---|
width | integer | ✓ | |
height | integer | ✓ |
Enrollment
Check enrollment status for a DID in this Stratos service.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID to check enrollment for. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID that was checked. |
enrolled | boolean | ✓ | Whether the DID is enrolled in this Stratos service. |
eligible | boolean | — | Whether the DID is eligible to enroll. Only included when the DID is not enrolled. Omitted when the eligibility check cannot complete. |
active | boolean | — | Whether the enrollment is active. Only included when enrolled. |
enrolledAt | string (datetime) | — | When the DID was enrolled, if enrolled. |
signingKey | string (did) | — | The service-held signing key DID for this enrollment. Only included when enrolled. |
enrollmentRkey | string | — | 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. |
Unenroll from the Stratos service, revoking the session and deleting the enrollment record from the user's PDS.
Request Body application/json
| Name | Type | Required | Description |
|---|
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
success | boolean | — |
Errors
NotEnrolledAuthRequiredFeed
Fetch a timeline of posts.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | integer | — | |
cursor | string | — |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
feed | #feedViewPost[] | ✓ | |
cursor | string | — |
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
| Field | Type | Required | Description |
|---|---|---|---|
source | #source | — | When present, indicates this is a stub record. Full content should be hydrated from the referenced service. |
text | string | — | 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. |
facets | facet[] | — | Annotations of text (mentions, URLs, hashtags, etc) |
reply | #replyRef | — | |
embed | images | images | video | external | record | recordWithMedia | — | |
langs | string (language)[] | — | Indicates human language of post primary text content. |
labels | #selfLabels | — | Self-label values for this post. Effectively content warnings. |
tags | string[] | — | Additional hashtags, in addition to any included in post text and facets. |
createdAt | string (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.| Field | Type | Required | Description |
|---|---|---|---|
root | strongRef | ✓ | |
parent | strongRef | ✓ |
Feed Generator
List feeds offered by this generator.
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
feeds | #feedDescription[] | ✓ |
Type Definitions
feedDescription| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✓ | |
boundary | string | ✓ | |
displayName | string | — | |
description | string | — |
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
| Name | Type | Required | Description |
|---|---|---|---|
uri | string | ✓ | Exact indexed post URI: at://{did}/{collection}/{rkey}, or at:space/{authority}/{type}/{skey}/{author}/{collection}/{rkey} for a space record. |
cid | string (cid) | ✓ |
Errors
BlobNotFoundBlobTooLargeBlobBusyFeedNotReadyFetch a boundary-scoped hydrated feed. Requires service-auth.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
feed | string | ✓ | Configured feed id. |
limit | integer | — | |
cursor | string | — |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | — | |
feed | #feedViewPost[] | ✓ |
Type Definitions
feedViewPost| Field | Type | Required | Description |
|---|---|---|---|
post | #postView | ✓ |
postView| Field | Type | Required | Description |
|---|---|---|---|
uri | string | ✓ | 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. |
cid | string (cid) | ✓ | |
author | #authorView | ✓ | |
record | unknown | ✓ | |
indexedAt | string (datetime) | ✓ | |
boundaries | string[] | ✓ | |
blobs | #blobView[] | — | Authenticated feedgen blob URLs. Record blob refs remain unchanged. Absent for custody whose blobs must be read from the host. |
likeCount | integer | — | Number of distinct actors who like this post in the feed's boundary. |
repostCount | integer | — | Number of distinct actors who repost this post in the feed's boundary. |
viewer | #viewerState | — |
viewerState| Field | Type | Required | Description |
|---|---|---|---|
like | string | — | URI of the viewer's like record. |
repost | string | — | URI of the viewer's repost record. |
authorView| Field | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
handle | string | — |
blobView| Field | Type | Required | Description |
|---|---|---|---|
cid | string (cid) | ✓ | |
url | string (uri) | ✓ | |
mimeType | string | — |
Errors
UnknownFeedBoundaryMismatchIdentity
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
| Name | Type | Required | Description |
|---|---|---|---|
serviceDid | string (did) | ✓ | |
entries | #entry[] | ✓ |
Type Definitions
entry| Field | Type | Required | Description |
|---|---|---|---|
versionId | string | ✓ | |
key | string | ✓ | |
validFrom | string (datetime) | ✓ | |
previousVersionId | string | ✓ | |
proof | string | ✓ | |
acceptance | string | ✓ |
Resolve enrollment boundaries for a DID. Returns the boundary domains the user is enrolled in.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID to resolve enrollment boundaries for. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
enrolled | boolean | ✓ | Whether the DID is enrolled in this Stratos service. |
boundaries | string[] | ✓ | Boundary domains the user is enrolled in. Empty if not enrolled. |
Repository
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
| Name | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | Service-qualified boundary identifier `{serviceDid}/{domainName}` |
repo | string (did) | ✓ | The DID of the repo to write to (the authenticated member). |
validate | boolean | — | 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
| Name | Type | Required | Description |
|---|---|---|---|
results | #createResult | #updateResult | #deleteResult[] | — |
Type Definitions
create— Operation which creates a new record.| Field | Type | Required | Description |
|---|---|---|---|
collection | string (nsid) | ✓ | |
rkey | string (record-key) | — | |
value | unknown | ✓ |
update— Operation which updates an existing record.| Field | Type | Required | Description |
|---|---|---|---|
collection | string (nsid) | ✓ | |
rkey | string (record-key) | ✓ | |
value | unknown | ✓ |
delete— Operation which deletes an existing record.| Field | Type | Required | Description |
|---|---|---|---|
collection | string (nsid) | ✓ | |
rkey | string (record-key) | ✓ |
createResult| Field | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | |
cid | string (cid) | ✓ | |
validationStatus | string | — |
updateResult| Field | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | |
cid | string (cid) | ✓ | |
validationStatus | string | — |
deleteResult| Field | Type | Required | Description |
|---|
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.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
| Name | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | Service-qualified boundary identifier `{serviceDid}/{domainName}` |
repo | string (did) | ✓ | The DID of the repo to write to (the authenticated member). |
collection | string (nsid) | ✓ | The NSID of the record collection. |
rkey | string (record-key) | — | The Record Key. |
validate | boolean | — | 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. |
record | unknown | ✓ | The record itself. Must contain a $type field. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | URI of the created record. |
cid | string (cid) | ✓ | |
validationStatus | string | — |
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.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
| Name | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | Service-qualified boundary identifier `{serviceDid}/{domainName}` |
repo | string (did) | ✓ | The DID of the repo to delete from (the authenticated member). |
collection | string (nsid) | ✓ | The NSID of the record collection. |
rkey | string (record-key) | ✓ | The Record Key. |
Response application/json
| Name | Type | Required | Description |
|---|
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.Hydrate a single record by URI. Returns the record if viewer has boundary access.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | The AT-URI of the record to hydrate |
cid | string (cid) | — | Optional CID to verify record version |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | |
cid | string (cid) | ✓ | |
value | unknown | ✓ |
Errors
RecordNotFoundThe requested record does not existRecordBlockedAccess to the record is blocked due to boundary restrictionsHydrate multiple records by URI. Returns records filtered by viewer's boundary access.
Request Body application/json
| Name | Type | Required | Description |
|---|---|---|---|
uris | string (at-uri)[] | ✓ | Array of AT-URIs to hydrate (max 100) |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
records | #recordView[] | ✓ | Successfully hydrated records |
notFound | string (at-uri)[] | ✓ | URIs that were not found |
blocked | string (at-uri)[] | ✓ | URIs blocked due to boundary restrictions |
Type Definitions
recordView| Field | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | |
cid | string (cid) | ✓ | |
value | unknown | ✓ |
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
| Name | Type | Required | Description |
|---|---|---|---|
imported | integer | ✓ | 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.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
| Name | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | Service-qualified boundary identifier `{serviceDid}/{domainName}` |
repo | string (did) | ✓ | The DID of the repo to write to (the authenticated member). |
collection | string (nsid) | ✓ | The NSID of the record collection. |
rkey | string (record-key) | ✓ | The Record Key. |
validate | boolean | — | 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. |
record | unknown | ✓ | The record to write. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | URI of the written record. |
cid | string (cid) | ✓ | |
validationStatus | string | — |
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.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
| Name | Type | Required | Description |
|---|---|---|---|
blob | blob | ✓ |
Server
Returns the list of boundary domains available on this Stratos service.
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
domains | string[] | ✓ | The boundary domains available on this service. |
List publicly listed rooms from the authority-owned boundary catalog. Unavailable rooms cannot accept joins.
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
rooms | #room[] | ✓ |
Type Definitions
room| Field | Type | Required | Description |
|---|---|---|---|
id | string | ✓ | |
boundary | string | ✓ | |
displayName | string | ✓ | |
description | string | ✓ | |
available | boolean | ✓ |
Space
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
| Name | Type | Required | Description |
|---|---|---|---|
space | string | ✓ | 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. |
repo | string (did) | ✓ | The DID of the account whose repo to read from. |
collection | string (nsid) | ✓ | The NSID of the record collection. |
rkey | string | ✓ | The Record Key. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
uri | string (at-uri) | ✓ | |
cid | string (cid) | ✓ | |
value | unknown | ✓ |
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).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
| Name | Type | Required | Description |
|---|---|---|---|
space | string | ✓ | 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. |
delegationToken | string | — | 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. |
clientAttestation | string | — | 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
| Name | Type | Required | Description |
|---|---|---|---|
credential | string | ✓ | The compact-serialized space-credential JWT. |
expiresAt | string (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.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
| Name | Type | Required | Description |
|---|---|---|---|
space | string | ✓ | 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. |
repo | string (did) | ✓ | The DID of the account whose blobs to list. |
since | string (tid) | — | Optional revision of the repo to list blobs since. |
limit | integer | — | |
cursor | string | — |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | — | |
cids | string (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).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
| Name | Type | Required | Description |
|---|---|---|---|
space | string | ✓ | 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. |
limit | integer | — | Maximum number of repos to return. |
cursor | string | — |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
cursor | string | — | |
repos | #repo[] | ✓ |
Type Definitions
repo| Field | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID of a repo that holds data in the space. |
custody | string | ✓ | 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'. |
rev | string (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. |
hash | bytes | — | 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. |
host | string | — | 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. |
hostSource | string | — | 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
Get a blob by CID with boundary-based access control.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | |
cid | string (cid) | ✓ |
Errors
BlobNotFoundForbiddenExport the full repository as a CAR file. Returns all record blocks, MST nodes, and the signed commit.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID of the repo to export. |
since | string (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.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
| Name | Type | Required | Description |
|---|---|---|---|
boundaries | #boundary[] | ✓ |
Type Definitions
boundary| Field | Type | Required | Description |
|---|---|---|---|
boundary | string | ✓ | |
roomId | string | ✓ | |
displayName | string | ✓ | |
description | string | ✓ | |
listed | boolean | ✓ | |
joinable | boolean | ✓ | |
revision | integer | ✓ |
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
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID of the repo to enumerate. |
collection | string (nsid) | — | Optional single collection to enumerate. When omitted, all collections are enumerated. |
cursor | string | — | Opaque pagination cursor from a previous response. |
limit | integer | — | Maximum number of rows to return in this page. |
excludeValues | boolean | — | When true, record values are omitted and only path metadata is returned. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
records | #recordPath[] | ✓ | The record paths in this page. |
cursor | string | — | 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.| Field | Type | Required | Description |
|---|---|---|---|
collection | string (nsid) | ✓ | The record collection. |
rkey | string | ✓ | The record key. |
cid | string (cid) | ✓ | The CID (string form) of the current record value. |
value | unknown | — | The current record value, inlined by default. Omitted when excludeValues is true. |
Errors
RepoNotFoundThe requested repo does not exist.AuthRequiredService authentication is required.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
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID of the repo to sync. |
since | string (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. |
limit | integer | — | Maximum number of operations to return in this page. |
cursor | string | — | Opaque pagination cursor from a previous response. Takes precedence over `since` when both are supplied. |
excludeValues | boolean | — | When true, record values are omitted and only operation metadata is returned. |
Response application/json
| Name | Type | Required | Description |
|---|---|---|---|
ops | #repoOp[] | ✓ | The operations in this page, in ascending revision order. |
cursor | string | — | 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.| Field | Type | Required | Description |
|---|---|---|---|
rev | string (tid) | ✓ | The revision of the commit that produced this operation. Atomic multi-writes share one rev. |
collection | string (nsid) | ✓ | The record collection. |
rkey | string (record-key) | ✓ | The record key. |
cid | string (cid) | ✓ | The CID (string form) of the current record value. Null for a delete. |
prev | string (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. |
value | unknown | — | 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).| Field | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID of the repo. |
version | integer | ✓ | The commit version (3). |
data | string (cid) | ✓ | The CID (string form) of the MST root node. |
rev | string (tid) | ✓ | The commit revision. |
prev | string (cid) | — | The CID (string form) of the previous commit. Absent for the first commit. |
sig | string | ✓ | 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.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
| Name | Type | Required | Description |
|---|---|---|---|
did | string (did) | — | The DID of the account to subscribe to. If omitted, subscribes to service-level enrollment events. |
cursor | integer | — | The last known event sequence number to resume from. |
domain | string | — | Optional domain filter. Only events for records with this domain in their boundary will be emitted. |
Message Types
Type Definitions
commit— A commit event containing record operations.| Field | Type | Required | Description |
|---|---|---|---|
seq | integer | ✓ | The sequence number of this event. |
did | string (did) | ✓ | The DID of the account. |
time | string (datetime) | ✓ | Timestamp of when the event was sequenced. |
rev | string (tid) | ✓ | The repo revision. |
ops | #recordOp[] | ✓ | List of record operations in this commit. |
recordOp— A single record operation within a commit.| Field | Type | Required | Description |
|---|---|---|---|
action | string | ✓ | The type of operation. |
path | string | ✓ | The record path (collection/rkey). |
cid | cid-link | — | The CID of the record. Present for create and update operations. |
record | unknown | — | 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.| Field | Type | Required | Description |
|---|---|---|---|
values | #Domain[] | ✓ |
info— An informational message about the subscription state.| Field | Type | Required | Description |
|---|---|---|---|
name | string | ✓ | The type of info message. |
message | string | — | Additional details about the info message. |
enrollment— An enrollment event indicating a user has enrolled or unenrolled from the service.| Field | Type | Required | Description |
|---|---|---|---|
did | string (did) | ✓ | The DID of the user. |
action | string | ✓ | The enrollment action. |
service | string (uri) | — | The Stratos service endpoint URL. |
boundaries | string[] | — | The boundaries assigned to the user. |
time | string (datetime) | ✓ | Timestamp of the enrollment event. |
Errors
FutureCursorCursor is in the future.AuthRequiredAuthentication is required.