Export a project
Also available in Swagger.
Mermaid text, the sealed project file (JSON), an SVG picture, or a ZIP bundle. format=svg draws one level (the main one, or level=n3, level=n3/n7 from the brief) exactly like the editor's Download SVG: light theme, no scripts, no external links, aiMermaid footer. format=bundle answers JSON with a download link valid 15 minutes; the ZIP holds AI-README.md, README.md, diagram.mmd, the sealed project.json, nested diagrams and every attached file. delivery=link (only with format=svg) answers JSON with a private download link valid 15 minutes instead of the SVG text: use it when you cannot save text as a file; nothing becomes public. Bundles hold at most 50.0 MB of attachments. Exports carry the same aiMermaid attribution as the editor. Credits: mermaid 5, json 10, svg 10, bundle 20. Credits: 5.
bearerAuthorizationBearer <token>An API key: amk_live__. A key can have an expiry date chosen when it is created (1 hour to 90 days, or none). After that moment the API answers 401 unauthorized, as for a revoked key. Create a new key or rotate the expired one (rotation keeps the same lifetime). A key can also be limited to one folder (with its subfolders) or one project: anything else answers 404 not_found, and a project key cannot create projects or use folders (403 insufficient_scope). A folder key creates projects and folders inside its folder. If that folder or project is deleted for good, the key answers 403 target_gone.
id*stringuuidformat?string"mermaid""mermaid""json""svg""bundle"level?stringOnly with format=svg: the level to draw, a step path from the brief such as n3 or n3/n7. Default: the main level.
^n\d+(\/n\d+)*$delivery?stringOnly with format=svg. inline: the SVG text. link: JSON with a private download_url valid 15 minutes.
"inline""inline""link"The export
- response
curl -X GET 'https://pltlaavsvbpebaopfbsp.supabase.co/functions/v1/api/v1/projects/497f6eca-6276-4993-bfeb-53cbbbba6f08/export'{ "format": "svg", "delivery": "link", "filename": "Sales-process.svg", "bytes": 18420, "version": 7, "download_url": "https://<project>.supabase.co/storage/v1/object/sign/exports/<owner>/3f6c1e2a-9b7d-4c1e-8a2f-5d6e7f8a9b0c/<id>.svg?token=<signed>&download=Sales-process.svg", "expires_at": "2026-11-12T09:15:00.000Z", "expires_in": 900, "next": [ "GET download_url within 15 minutes (no auth header needed), save it as filename and embed or upload it. The link is private: it stops working after 15 minutes." ]}