Render a diagram
diagram_renderSVG and PNG links to a version, not the image, with its size, date, hashes and engine version. A published diagram's links, and a version link's, last until the link is revoked, or the diagram made private or deleted (then NOT_FOUND); url is its page. Others last 7 days. A version link needs no sign-in and works from any workspace; a share link gives no title. preview adds a PNG. Artifacts, slides and PDFs need the png file itself. scene or mermaid instead of id previews an unsaved diagram.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Diagram id or key, or a version link: https://zindex.ai/d/<ref>@<n>, <ref>@<n> or <ref> | |
| asOf | No | 2026-06-30 (end of day, UTC) or ISO 8601 with an offset | |
| scene | No | https://zindex.ai/schemas/scene.schema.json | |
| mermaid | No | erDiagram or flowchart (graph); drops subgraphs, edges to them and styles | |
| preview | No | ||
| revision | No | Omit for the latest | |
| knownRevision | No | Answers only { id, revision, unchanged } if it's the version to render |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| png | No | ||
| svg | No | ||
| url | No | ||
| hash | No | ||
| chain | No | ||
| title | No | ||
| width | No | ||
| engine | No | ||
| height | No | ||
| latest | No | ||
| expires | No | ||
| savedAt | No | ||
| revision | No | ||
| unchanged | No |