SDK reference

Browser sync

Each route's function in the SDK, its call beside the same request in cURL.
meBrowserSync

GET/v1/me/browser-sync

Your sync account (ids, the signing public key, the keyset sealed under your recovery key, a pending reset), the limits and the server's time; account: null when sync is off.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/browser-sync' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeBrowserSync

POST/v1/me/browser-sync

Turns sync on: the account and this browser, signed by the new sync key. 409 when it's on already.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeBrowserSyncPurge

POST/v1/me/browser-sync/purge

Deletes up to 1,000 of your sync rows a call, the account last (done when nothing is left). Signed by a synced browser, or, 7 days after a reset was asked for, from the session alone.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/purge' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeBrowserSyncReset

POST/v1/me/browser-sync/reset

Asks for a reset when no browser and no recovery key can open sync any more; a purge may follow after 7 days.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/reset' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeBrowserSyncReset

DELETE/v1/me/browser-sync/reset

Cancels a reset (signed by a synced browser).

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/browser-sync/reset' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meBrowserSyncDevices

GET/v1/me/browser-sync/devices

The browsers set up for sync, removed ones included.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/browser-sync/devices' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
putMeBrowserSyncDevicesByDeviceId

PUT/v1/me/browser-sync/devices/:deviceId

Registers (or renames) the signing browser itself.

Parameters and answers
curl -X PUT 'https://api.cactive.com.au/v1/me/browser-sync/devices/{deviceId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeBrowserSyncDevicesByDeviceId

DELETE/v1/me/browser-sync/devices/:deviceId

Removes a browser from sync (signed): its changes are refused from then on.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/browser-sync/devices/{deviceId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meBrowserSyncPairings

GET/v1/me/browser-sync/pairings

Requests to add a browser that are waiting for an answer.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/browser-sync/pairings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeBrowserSyncPairings

POST/v1/me/browser-sync/pairings

Asks to add this browser: its one-off public key, name and platform (expires in 10 minutes).

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/pairings' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meBrowserSyncPairingsByPairingId

GET/v1/me/browser-sync/pairings/:pairingId

A request and, once a synced browser answered, its answer.

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/browser-sync/pairings/{pairingId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
deleteMeBrowserSyncPairingsByPairingId

DELETE/v1/me/browser-sync/pairings/:pairingId

Withdraws a request.

Parameters and answers
curl -X DELETE 'https://api.cactive.com.au/v1/me/browser-sync/pairings/{pairingId}' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeBrowserSyncPairingsApproval

POST/v1/me/browser-sync/pairings/:pairingId/approval

A synced browser's answer (signed): its one-off public key and the sealed keyset. Once, before the request expires.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/pairings/{pairingId}/approval' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
postMeBrowserSyncRecords

POST/v1/me/browser-sync/records

Up to 100 changes (signed), each at the version it replaces: ok, conflict with the current record, or refused.

Parameters and answers
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/records' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"
meBrowserSyncRecords

GET/v1/me/browser-sync/records

A collection's records written since since (ms, less 5 minutes), oldest first, 500 a page (page continues).

Parameters and answers
curl 'https://api.cactive.com.au/v1/me/browser-sync/records' \
  -H "Authorization: Bearer $CACTIVE_TOKEN"