sync

Issues a short-lived, HMAC-signed ticket that authorizes one WebSocket connection to a shared note's live document. Browsers cannot attach a bearer header to a WebSocket upgrade, so the ticket carries the resolved capability instead and the socket route verifies it without touching Supabase.

Changed on
post/sync/shares/{share_id}/live/ticket

Request

  • The document declares no server URL.
  • Auth: HTTP bearer

Path parameters

share_idstring required

Shared note ID

Response

capability'editor' | 'viewer' required
contentRevisioninteger required
expiresInSecondsinteger required
ticketstring required

Changes