Get the full vault manifest
const url = 'https://api.engram.page/sync/manifest?since_seq=1042';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/manifest?since_seq=1042' \ --header 'Authorization: Bearer <token>'Every live note + attachment path, content hash, and change seq, for sync reconciliation. Pass since_seq (the change_seq of a previous manifest) to short-circuit: when nothing has changed the response is just {unchanged: true, change_seq} with the body omitted.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Watermark from a prior manifest’s change_seq; invalid values are ignored.
Example
1042Responses
Section titled “Responses”Manifest
object
object
CRDT head fingerprint (notes only) — equality with the client’s recorded head proves a live-bound doc is converged without content transfer.
Stable note/attachment id — lets a client reconcile its path↔id map.
Vault-global change sequence of the row’s last write — integer-diff validation hook (a client whose recorded seq is lower is behind).
Current per-vault sequence watermark.
object
CRDT head fingerprint (notes only) — equality with the client’s recorded head proves a live-bound doc is converged without content transfer.
Stable note/attachment id — lets a client reconcile its path↔id map.
Vault-global change sequence of the row’s last write — integer-diff validation hook (a client whose recorded seq is lower is behind).
Present (true) only when since_seq equals the current watermark — the manifest body is omitted because nothing changed.
Examplegenerated
{ "attachments": [ { "content_hash": "example", "crdt_head": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "path": "example", "seq": 1 } ], "change_seq": 1, "notes": [ { "content_hash": "example", "crdt_head": "example", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "path": "example", "seq": 1 } ], "total_attachments": 1, "total_notes": 1, "unchanged": true}