Skip to content
中文

Render canvas nodes

GET /canvas/v1/canvases/{canvas_id}/images

Render 1–4 nodes to inspect the visual result of a design edit. Use ids from retrieve, execute.created or execute.screenshots; scale defaults to 1 and accepts 0.25–4, and png is the only supported format. Unlike Figma, images contains inline data:image/png;base64,… URLs, not hosted image URLs; a null entry means no image is available for that id. Use nodes.list for editable node content instead of pixels.

Support: supported

Parameters

NameLocationTypeRequiredDescription
canvas_idpathstringtrueCanvas id returned by create or list, in the form cvs_ followed by 16 lowercase letters or digits; a display name is not accepted.
versionquerystringfalseDecimal version from versions.list, or its earliest_restorable_version, for a read-only historical snapshot; omit to read current state. Unavailable versions return VERSION_NOT_FOUND.
idsquerystringtrueComma-separated list of 1–4 node ids to render, from retrieve, execute.created or execute.screenshots.
scalequerynumberfalseOutput pixel scale relative to canvas dimensions, from 0.25 to 4 inclusive; defaults to 1 when omitted.
formatquerystringfalseImage encoding; png produces a PNG data URL and is the only supported value. Omit to use png.

Response

HTTP 200

A node-id-to-PNG-data-URL map, with err=null; individual unavailable images have null values.

application/json

Name Type Description
err null Always null for a successful render response; request failures use the error envelope with a non-2xx status.
images object Map keyed by requested node id, containing a PNG data URL or null when an image is unavailable; these are inline images rather than hosted URLs.
warnings array<object> Praxis extension, present only when a render could not load every font it needed. Each FONT_SKIPPED entry names a directory face that painted in a fallback family, so the image does not show the typography the design specifies; use fewer distinct faces in that node, or treat its type as unverified.
warnings[].code string Machine-readable warning category; FONT_SKIPPED means a font face was not loaded for this render.
warnings[].node_id string Requested node id whose image is affected.
warnings[].message string The skipped face and the family that painted instead, such as "Anton 400 → Geist".