Export
GET /diagrams/{id}/export is free. Pass the format as a query parameter.
The
xml returned on generate, edit, and fix is already the native draw.io format, so you only
need export when you want SVG or a standalone file. Confirm the current format list via
Meta → formats.