Skip to main content
POST
Add CRDT Data
Use this API to create new CRDT editor data on the backend. Use it with the Multiplayer Editing (Yjs) feature.

Endpoint

POST https://api.velt.dev/v2/crdt/add

Headers

x-velt-api-key
string
required
Your API key.
x-velt-auth-token
string
required

Body Parameters

data
object
required

Example Requests

Text (e.g., CodeMirror):
Map (e.g., ReactFlow):
Array:
XML (e.g., TipTap):

Response

Success Response

Error Responses

CRDT data already exists for the given editor ID:
Invalid arguments: