Skip to main content
POST
Convert a diagram XML document to a tldraw snapshot

Authorizations

X-API-Key
string
header
required

Headers

customer
string
required

Workspace identifier

Body

application/json
xml
string
required

Diagram XML in either supported format — the endpoint detects which:

  • draw.io: a raw , an wrapper with an inline , or an whose body is the draw.io compressed form (base64 + raw-deflate + URI-encoded XML).
  • Flow: a document as produced by /convert/tldraw-to-xml.

Response

200 - application/json

tldraw StoreSnapshot — { store, schema } consumable by loadSnapshot

snapshot
object