Data

Follow the changes of a Space

POST
/data/changes

Follow a Space: the first call (no cursor) lists every record and document once, page by page; later calls with the returned cursor list only what changed since, each target once with its newest state. Process pages until has_more is false and keep the cursor. Items can repeat and intermediate states are not delivered. A record item carries type and revision, a document item path and hash (null while browser edits wait to be rendered); deleted marks archived or deleted targets. include=values adds record values and document text up to 64 KB. wait_seconds holds the call until something changes. On resync_required start again without a cursor.

Authorization

bearerApiKey
AuthorizationBearer <token>

Create a scoped API key in the Adlass settings.

In: header

Header Parameters

X-Request-Id?string

Optional correlation identifier.

Lengthlength <= 128

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/data/changes" \  -H "Content-Type: application/json" \  -d '{    "space_id": "123e4567-e89b-42d3-a456-426614174000"  }'
{  "items": [    {      "seq": 0,      "kind": "record",      "id": "example",      "deleted": false    }  ],  "cursor": "example",  "has_more": false}