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 MarkdownQuery Parameters
The previous answer's next (RFC 3339). Omitted means 30 s ago.
date-timeHeader Parameters
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}Internal: persist CRDT state (notes-sync only)
Stores the Yjs binary and projects the JSON doc through the standard save path (rev bump, snapshot throttling, wiki-link edges, search text). The sync server is authoritative during co-editing, except over writes made outside it: when baseRev is sent and the page's rev has moved past it (a REST save, version restore or copilot write while the page was open), the store is refused with 409 and the current doc, so notes-sync applies that write to the live document instead of overwriting it. Without baseRev the store is unconditional. A locked page refuses a store with 423 (a seed, which stores state only, is still taken).
List known members
Members seen by this service (upserted from JWTs), for name lookups.