Skip to main content
For AI agents: see llms.txt for the complete documentation index. Markdown versions are available by adding .md to a page URL or requesting Accept: text/markdown.

Data sync

POST 

/data/sync

Requires a Convex Pro plan

On Convex Cloud, this endpoint requires a Convex Pro plan. Learn more about our plans or upgrade.

Paginated streamable export of some or all of a deployment's data.

Call this endpoint repeatedly, passing the opaque pagination.nextCursor from each response back in the next request as cursor. Omit cursor on the first call.

Apply each page's truncates before its values, and persist these changes atomically with pagination.nextCursor. Retrying the same input cursor may return a different page, so non-atomic updates can lead to data inconsistency.

To do a one time data sync, keep fetching pages until reaching an upToDate page. For a continuous streaming export, continue fetching pages periodically. It's recommended to sleep between upToDate pages to reduce overhead.

The caller must have the deployment:data:view permission.

Request​

Responses​