Diagrams

Create a share link

A share link shows the diagram's images and the dates of its versions, never its scene, to anyone who has it, until it is revoked, by you, or by Zindex if the diagram breaks the content policy; the diagram stays private. Its token is 22 random base58 characters, and it opens this diagram only. It follows the latest version; add @{revision} for one version. No request body. Share links need Pro or Team: on Free the answer is 403 FEATURE_UNAVAILABLE, and in a team workspace whose owners turned public sharing off, 403 SHARING_DISABLED. Listing and revoking links, and publishing (PUT /v1/diagrams/{id}/sharing), work on every plan.

post/v1/diagrams/{id}/links

Request

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

Path parameters

idstring required

The diagram's ID or key

Response

The new link

idstring required
linkIdstring required

lnk_ plus 12 characters; names the link for revoking it

urlstring uri required

https://zindex.ai/d/{token}: the page, following the latest version; add @{revision} for one version

svgstring uri required

The latest version's image as SVG

pngstring uri required

The latest version's image as PNG

createdAtstring date-time required

Changes

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