Check whether the server still owes this vault sync work
GET
/sync/quiescence
const url = 'https://api.engram.page/sync/quiescence';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.engram.page/sync/quiescence \ --header 'Authorization: Bearer <token>'The vault’s change_seq plus how many CRDT updates still await their checkpoint. A client whose catch-up cursor has reached change_seq while both counts are 0 has seen every change the server will make on its own.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Sync quiescence
Media typeapplication/json
SyncQuiescenceResponse
object
change_seq
required
Current per-vault sequence watermark.
integer
pending_checkpoints
required
Scheduled or running checkpoint jobs for this vault’s notes.
integer
pending_crdt_updates
required
CRDT updates stored but not yet folded into their note by a checkpoint.
integer
Example generated
{ "change_seq": 1, "pending_checkpoints": 1, "pending_crdt_updates": 1}