Chartquery

Diagram View

GET
/v1/diagram/view/{id}

View a previously saved diagram as an HTML page. Public, no API key required. Iframe-embeddable with inline SVG rendering.

Paramètres de chemin

id*string

The diagram ID returned in the X-Diagram-View-URL header when saving a diagram. Format: cq-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

Paramètres de requête

share?boolean

Set share=true to persist the config and receive JSON instead of an image: { id, render_url, view_url, embed_url, expires_in }. Free plan: 3-day expiry with watermark. Paid plan: 6-month expiry, no branding.

Default"false"

Value in

  • "false"
  • "true"

Corps de la réponse

application/json

application/json

application/json

curl -X GET "https://example.com/v1/diagram/view/string"

"<!DOCTYPE html><html><!-- rendered diagram image embedded in a responsive page --></html>"

{  "error": "Bad Request"}
{  "error": "Internal Error"}