Sync

Handle TipTap collaboration webhook events by persisting document content changes to Supabase and updating source citation references.

Skips processing for non-DOCUMENT types, empty content, and content that is identical to the current version (avoiding unnecessary writes). Emits structured [files-sync] lifecycle logs with timing for observability.

post/api/py/files/sync

Request body

app_namestring required
namestring required
timestring required
tiptap_jsonobject
ydoc_statestring nullable
clients_countinteger
typestring nullable
triggerstring nullable
usersstring[] nullable
userstring nullable
commentobject nullable

Response

Successful Response

successboolean required
version_idstring nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.