AT Protocol Spaces
A Field Guide
By Nick Gerakines · updated 2026-11-26
Spaces are the AT Protocol extension for permissioned data: records kept under access control instead of broadcast to the whole network. This book explains how spaces work at the level of bytes, headers, and decisions. It is written for developers who are building a PDS, a syncer, an AppView, or a client that reads and writes spaces, and who need to interoperate with other implementations.
Download
EPUB for phones, tablets and e-readers; on Kindle, add it with Send to Kindle. PDF for desktop reading and printing. The live consoles and examples are on the web only.
This edition
First edition, 2026. Copyright © 2026 Nick Gerakines. Text licensed under CC BY-SA 4.0. Code samples licensed under MIT.
Published by Nick Gerakines.
AT Protocol, atproto, and atprotocol are trademarks of Bluesky Social PBC, used under license.
This book describes atproto spaces as the specification stood at the time of writing. The specification may change, and later versions of this guide may differ.
Contents
Chapters
- ·Preface If you’re not a developer How this book works The family in the examples For developers
- If you’re not a developer
- How this book works
- The family in the examples
- For developers
- 1Orientation Why public atproto isn’t enough Roles Where records live Access control, not confidentiality The shape of atproto spaces Common questions
- Why public atproto isn’t enough
- Where records live
- Access control, not confidentiality
- The shape of atproto spaces
- Common questions
- 2Identity and keys A DID document with spaces support #atproto: the signing key #atproto_kem: the key-encapsulation key #atproto_pds: the space host Client keys Ephemeral keys Rotation Common questions
- A DID document with spaces support
- #atproto: the signing key
- #atproto_kem: the key-encapsulation key
- #atproto_pds: the space host
- Ephemeral keys
- Common questions
- 3Spaces and addressing The URI The authority The space type The space key Spaces used together Common shapes Common questions
- The authority
- The space type
- The space key
- Spaces used together
- Common shapes
- Common questions
- 4Space repos and commits What a space repo is Lifecycle The commit Why a set hash instead of a tree Common questions
- What a space repo is
- Why a set hash instead of a tree
- Common questions
- 5Cryptography in depth LtHash, the set hash Why MACs and not signatures The shared secret MACs as HTTP Message Signatures Credential binding signatures Verification order Common questions
- LtHash, the set hash
- Why MACs and not signatures
- The shared secret
- MACs as HTTP Message Signatures
- Credential binding signatures
- Verification order
- Common questions
- 6Access control and credentials Space credential token exchange The delegation token The client attestation Authorizing space sync Refusals Presenting the credential Expiry and revocation Writing without read access Identities without an account Common questions
- Space credential token exchange
- The delegation token
- The client attestation
- Authorizing space sync
- Presenting the credential
- Expiry and revocation
- Writing without read access
- Identities without an account
- Common questions
- 7Sync Getting a copy of a space Staying current Blobs Why this scales Common questions
- Getting a copy of a space
- Staying current
- Why this scales
- Common questions
- 8Policies The lifecycle methods personalspace memberspace managedspace Publishing configuration to readers Other policies Common questions
- The lifecycle methods
- personalspace
- managedspace
- Publishing configuration to readers
- Other policies
- Common questions
- 9OAuth and consent Grammar Read is all-or-nothing Writes and management Worked scopes Permission sets The OAuth consent screen Common questions
- Read is all-or-nothing
- Writes and management
- Worked scopes
- Permission sets
- The OAuth consent screen
- Common questions
- 10Operations Deleting a space Migrating an account Moderation Account status and identity events Access control in applications Common questions
- Deleting a space
- Migrating an account
- Account status and identity events
- Access control in applications
- Common questions
- 11Implementation notes Where the spec leaves a choice Passages that need careful reading Design trade-offs worth knowing Conformance checklist
- Where the spec leaves a choice
- Passages that need careful reading
- Design trade-offs worth knowing
- Conformance checklist
Appendices
- AXRPC methods
- CToken types
- ETest vectors
- FExample identities and keys
- GWorked values
- IAI use and disclosure
Practicals
Practicals are short companion guides in the library. Each builds one complete application on what this book explains, with every identity, record, request, and response written out.
- PracticalA Forum SpaceNotice, a small forum for one group, built end to end on spaces.Builds on this book · web only
A Forum Space
Notice, a small forum for one group, built end to end on spaces.
Builds on this book · web only