SDK reference
Browser sync
GET/
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.
curl 'https://api.cactive.com.au/v1/me/browser-sync' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Turns sync on: the account and this browser, signed by the new sync key. 409 when it's on already.
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
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.
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/purge' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
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 answerscurl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/reset' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Cancels a reset (signed by a synced browser).
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/browser-sync/reset' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
The browsers set up for sync, removed ones included.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/browser-sync/devices' \
-H "Authorization: Bearer $CACTIVE_TOKEN"PUT/
Registers (or renames) the signing browser itself.
Parameters and answerscurl -X PUT 'https://api.cactive.com.au/v1/me/browser-sync/devices/{deviceId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Removes a browser from sync (signed): its changes are refused from then on.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/browser-sync/devices/{deviceId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
Requests to add a browser that are waiting for an answer.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/browser-sync/pairings' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Asks to add this browser: its one-off public key, name and platform (expires in 10 minutes).
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/pairings' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A request and, once a synced browser answered, its answer.
Parameters and answerscurl 'https://api.cactive.com.au/v1/me/browser-sync/pairings/{pairingId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"DELETE/
Withdraws a request.
Parameters and answerscurl -X DELETE 'https://api.cactive.com.au/v1/me/browser-sync/pairings/{pairingId}' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
A synced browser's answer (signed): its one-off public key and the sealed keyset. Once, before the request expires.
Parameters and answerscurl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/pairings/{pairingId}/approval' \
-H "Authorization: Bearer $CACTIVE_TOKEN"POST/
Up to 100 changes (signed), each at the version it replaces: ok, conflict with the current record, or refused.
curl -X POST 'https://api.cactive.com.au/v1/me/browser-sync/records' \
-H "Authorization: Bearer $CACTIVE_TOKEN"GET/
A collection's records written since since (ms, less 5 minutes), oldest first, 500 a page (page continues).
curl 'https://api.cactive.com.au/v1/me/browser-sync/records' \
-H "Authorization: Bearer $CACTIVE_TOKEN"