EaserixDocs
DevelopersAPI referenceNotesSystem

Internal: share links revoked and pages trashed since a time (notes-sync only)

Revocation feed for the notes-sync realtime server, gated by the X-Internal-Key shared secret (501 when unconfigured). notes-sync polls it every few seconds and closes the matching share-link connections at once, instead of at its per-connection re-check. Share links are reported as SHA-256 hashes (hex) of their tokens, never the tokens. since is a cursor: pass the previous answer's next. Rows come oldest first, at most 1000 of each kind; a full answer's next trails the clock by 30 s (so late commits are seen again), a capped answer's next is the last row's time (so a burst is read over several polls). The feed never looks back more than 10 minutes. epochBumps lists identity-epoch rows changed since the cursor (auth bumps one on every access change: removal, role, teams, tools, API keys, OAuth grants), with the new version. notes-sync asks each live connection whose token was minted for that subject and workspace with a lower version to re-authenticate (close 4401). At most 5000: past that, epochBumps is empty and epochBumpsTruncated is true, and notes-sync re-checks every member connection instead. Older notes-sync builds ignore both fields.

View as Markdown
GET
/internal/sync/revocations

Query Parameters

since?string

The previous answer's next (RFC 3339). Omitted means 30 s ago.

Formatdate-time

Header Parameters

X-Internal-Key*string

Shared service secret (INTERNAL_API_KEY).

Response Body

application/json

application/json

curl -X GET "https://example.com/internal/sync/revocations" \  -H "X-Internal-Key: string"
{  "next": "2019-08-24T14:15:22Z",  "revokedShareHashes": [    "string"  ],  "trashedPageIds": [    "1816570a-074c-4d20-979e-9678b506162c"  ],  "lockChanges": [    {      "pageId": "347b9bf8-fe00-46f6-b8ca-1e06b3bd5809",      "at": "2019-08-24T14:15:22Z"    }  ],  "epochBumps": [    {      "subject": "string",      "workspace": "string",      "version": 0    }  ],  "epochBumpsTruncated": true}