Diagrams

Image links for a version

SVG and PNG links to one version's images, as the MCP tool diagram_render returns, that work without a key. A published diagram's are its permanent version links: url is the version's page, https://zindex.ai/d/{id}@{revision}, and svg and png are that page with .svg or .png. Any other diagram's are signed and work for 7 days, until expires. revision or asOf picks the version; default the latest.

get/v1/diagrams/{id}/render

Request

  • Base URL: https://api.zindex.ai
  • URL: https://api.zindex.ai/v1/diagrams/{id}/render
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Path parameters

idstring required

The diagram's ID or key

Query parameters

revisioninteger

The version's number; default the latest

asOfstring

A date (the end of that day in UTC) or an ISO 8601 timestamp with an offset

Response

The version's links, hashes and engine. A version whose image wasn't stored when it was saved gets it now, and its chain hash with it.

idstring required
revisioninteger required
hashstring required

The version's content hash, sha256:<hex>

chainstring nullable required

The version's chain hash, sha256:<hex>

enginestring required

The build that drew the stored image

urlstring uri

Published diagrams only: the version's page

svgstring uri required
pngstring uri required
expiresstring date-time

Signed links only: when they stop working

Changes

No recorded changes to this operation across all 1 revision of this API.