#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.
- Encoding: application/json
| Property | Type | Known Values | Required | Description |
|---|
| space | string (unknown) | - | ✅ | - |
| credentialKey | string | - | ✅ | P-256 did:key that the credential is bound to. |
| delegationToken | string | - | ❌ | Obtained from getDelegationToken. |
| clientAttestation | string | - | ❌ | - |
| notify | #notify | - | ❌ | - |
Output
- Encoding: application/json
| Property | Type | Known Values | Required | Description |
|---|
| credential | string | - | ✅ | - |
| spaceRev | string (tid) | - | ❌ | The space's current revision. Omitted before the space's first update. |
#notify
| Property | Type | Known Values | Required | Description |
|---|
| endpoint | string (uri) | - | ✅ | Base HTTPS URL that notification methods are called against. |
| token | string | - | ✅ | 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. |