Render a diagram
diagram_renderRead-onlyIdempotent
Returns SVG and PNG links to a version of a saved diagram, not the image, with its hashes and engine version. A published diagram's links are permanent, with url for its page; others last 7 days. preview adds a PNG for you. scene or mermaid instead of id previews an unsaved diagram.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | The diagram's id or key | |
| 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 |
Output Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| png | No | ||
| svg | No | ||
| url | No | ||
| hash | No | ||
| chain | No | ||
| engine | No | ||
| expires | No | ||
| revision | No |