Skip to main content

com.atproto.space.authorizeSpaceSync

#main​

Authorize syncing a space, returning a new credential for reading data across it and the space's current revision, and optionally registering for notifications of updates to it. Depending on the space's policy, a delegation token and/or client attestation may be required. Implemented by the space host.

Input​

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
spacestring (unknown)-✅-
credentialKeystring-✅P-256 did:key that the credential is bound to.
delegationTokenstring-❌Obtained from getDelegationToken.
clientAttestationstring-❌-
notify#notify-❌-

Output​

  • Encoding: application/json
PropertyTypeKnown ValuesRequiredDescription
credentialstring-✅-
spaceRevstring (tid)-❌The space's current revision. Omitted before the space's first update.

#notify​

PropertyTypeKnown ValuesRequiredDescription
endpointstring (uri)-✅Base HTTPS URL that notification methods are called against.
tokenstring-✅Opaque secret, included in the body of each request to the endpoint. The endpoint and token together identify the registration, so the token should stay the same across authorizations.