Sync change feed

What Bramble Sync and the mobile apps use to stay in step: the spaces you can sync (personal files and libraries) and a change feed per space. Keep the cursor from each answer and pass it next time; wait long-polls until something changes.

MethodPathSummary
GET/api/v2/sync/spacesSpaces you can sync
GET/api/v2/sync/changesChanges in a space since a cursor

#Spaces you can sync

GET/api/v2/sync/spaces
Address
https://<your-org>.brambleit.cloud/drive/api/v2/sync/spaces
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Licence: Drive.

Response 200

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/drive/api/v2/sync/spaces' \
  -H "X-API-Key: $BRAMBLE_KEY"

#Changes in a space since a cursor

GET/api/v2/sync/changes
Address
https://<your-org>.brambleit.cloud/drive/api/v2/sync/changes
Requires
Signed-in session, X-API-Key, or a Bramble app access token (Authorization: Bearer).
Licence: Drive.

Query parameters

NameTypeDescription
spaceanyThe space (from GET /api/v2/sync/spaces).
cursoranyThe cursor from the last answer (leave out the first time).
afterany
waitanySeconds to wait for a change before answering (long poll).

Response 200

Example request

Bash
curl -X GET 'https://<your-org>.brambleit.cloud/drive/api/v2/sync/changes' \
  -H "X-API-Key: $BRAMBLE_KEY"