MCP tools
The Zindex MCP server is at https://api.zindex.ai/mcp. There is nothing to install. Your client connects over HTTPS (Streamable HTTP), and signs you in with your Zindex account (OAuth) or sends an API key. The tools run the same code as the REST API, so a diagram saved here is the same diagram over REST and in every other client.
Every tool needs a Zindex account. When your client connects, it opens a Zindex page where you sign in and choose Allow. A new password account verifies its email on that page first; GitHub and Google sign-ups are verified at once.
Nothing over MCP works without an account, checking and previewing a diagram included. Over REST, POST /v1/diagrams/validate and /v1/diagrams/preview do those two without one.
No tool exports a diagram’s whole history or the whole workspace, because a tool’s result goes into the model’s context and a whole history can run to megabytes. A diagram’s history downloads from its page on the dashboard, and every diagram at once from Settings → Account; the REST API has both, as GET /v1/diagrams/{id}/export and GET /v1/workspace/export.
| Tool | Does |
|---|---|
diagram_find | Lists the workspace’s diagrams |
diagram_get | Reads a diagram as an outline, scene JSON or Mermaid, at any version |
diagram_validate | Checks a scene or Mermaid text without saving it |
diagram_create | Saves a new diagram |
diagram_edit | Changes a diagram, making the next revision |
diagram_render | Returns SVG and PNG links for a version, or for a share link or a published diagram’s link |
diagram_history | Lists versions, or compares two |
diagram_delete | Deletes a diagram, or restores one deleted in the last 24 hours |
diagram_share | Publishes or unpublishes a diagram, makes or revokes share links, reports a version, or sends Zindex feedback |
Sign in with your Zindex account
Clients that support MCP sign-in need only the URL https://api.zindex.ai/mcp:
- claude.ai and the Claude apps: open Zindex in Claude’s connector directory, choose Connect to Claude and sign in. On Claude’s Team and Enterprise plans, an Owner adds Zindex for the organization first, and on Team, members can request it. You can also add a custom connector with that URL, and sign in when you connect it.
- ChatGPT: on the web, open Plugins (chatgpt.com/plugins), choose Add custom MCP server, enter that URL with OAuth sign-in, and create it as a plugin. Sign in when ChatGPT asks.
- Claude Code:
claude mcp add --transport http zindex https://api.zindex.ai/mcp, then run/mcpand choose to authenticate. - Cursor: add Zindex to Cursor, and Cursor asks you to sign in when it connects.
- VS Code: add Zindex to VS Code, then sign in when VS Code asks.
The Zindex plugin installs this server together with the Zindex skill, the guide agents follow when they use the tools, in Claude Code, VS Code, Cursor and Antigravity CLI. In Claude it adds the skill only. The plugin’s README has the steps for each app.
To add the server in Claude, open the plugin under Customize → Plugins, on claude.ai or in the desktop app. On its Connectors tab, add Zindex and connect it. On Claude’s Team and Enterprise plans, an Owner adds it first.
On the Zindex page you choose the workspace the app works in, when you belong to a team workspace, and its access, then get a prompt to try once the app is connected. When your address lets you join a team workspace on Auto, the page offers to join it first, and the app then works there. With Read and write, the app can find, read, save, change, render and delete the workspace’s diagrams, make them public, make share links to them, report a problem with one to Zindex support, and send Zindex feedback, acting as you. With Read only, it can find, read, render and compare them, and every change answers READ_ONLY; a viewer in the workspace, or a client that asks for the OAuth scope diagrams:read alone, gets read only. An app works in one workspace. To have it work in another, open that workspace from the workspace menu at the top of the page, then move the app under Dashboard → API keys → Connected apps (Move here): it stays signed in. To work in two at once, connect it once for each (Workspaces). Every app you allow is listed there with its workspace, where you can disconnect it. Disconnecting it, resetting your password, deleting your account or leaving its workspace signs it out, and the workspace’s owners can disconnect it too. ChatGPT can’t send a key, so it connects only by signing in. claude.ai and the Claude apps sign in too, unless the organization has Claude’s request headers, a beta that can send one. If another client can’t complete sign-in, connect it with an API key, and tell us through the contact page.
Connect with an API key
Clients that can send a header, such as Claude Code, Cursor and VS Code, can use an API key instead of signing in. Sign up at zindex.ai/signup/, verify your email (GitHub and Google sign-ups are verified at once), then create a key under Dashboard → API keys. Sign-up makes no key. Keys start with dsp_sk_. A key works in the workspace selected when it is made, with Read and write or Read only access, as a connected app does.
Claude Code:
claude mcp add --transport http zindex https://api.zindex.ai/mcp \
--header "Authorization: Bearer dsp_sk_your_key"
Cursor, in ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"zindex": {
"url": "https://api.zindex.ai/mcp",
"headers": { "Authorization": "Bearer dsp_sk_your_key" }
}
}
}
VS Code, in .vscode/mcp.json. VS Code asks for the key once and stores it:
{
"servers": {
"zindex": {
"type": "http",
"url": "https://api.zindex.ai/mcp",
"headers": { "Authorization": "Bearer ${input:zindex-key}" }
}
},
"inputs": [
{ "id": "zindex-key", "type": "promptString", "description": "Zindex API key", "password": true }
]
}
Other clients: point any client that supports Streamable HTTP at https://api.zindex.ai/mcp and send Authorization: Bearer <your key>. The server keeps no session state, so it works behind any proxy. It speaks both the 2026-07-28 protocol and the earlier 2025 revisions.
Run it locally with npm
For hosts that start MCP servers as local commands over stdio, such as Claude Desktop, use the npm package @zindexai/mcp. It forwards every call to this server, so its tools and instructions stay current without updating the package. It needs Node.js 18 or later and takes an API key from ZINDEX_API_KEY; sign-in is only for clients that connect over HTTPS. Without a key it still starts and lists the tools, but it doesn’t contact Zindex, and every tool returns AUTH_REQUIRED, naming ZINDEX_API_KEY.
Version 2.0.1 or later also passes on diagram_render’s picture to a host that shows MCP Apps views. Earlier versions pass on only the links: update the package, or remove the version pin.
In Claude Desktop’s claude_desktop_config.json (Cursor’s mcp.json takes the same entry), then restart the app:
{
"mcpServers": {
"zindex": {
"command": "npx",
"args": ["-y", "@zindexai/mcp"],
"env": {
"ZINDEX_API_KEY": "dsp_sk_..."
}
}
}
}
In Claude Code:
claude mcp add zindex -e ZINDEX_API_KEY=dsp_sk_... -- npx -y @zindexai/mcp
Any other host: run npx -y @zindexai/mcp with ZINDEX_API_KEY in its environment.
| Variable | Default | Meaning |
|---|---|---|
ZINDEX_API_KEY | none | Your API key. Without one, every tool returns AUTH_REQUIRED |
ZINDEX_MCP_URL | https://api.zindex.ai/mcp | The server the package forwards to |
ZINDEX_API_URL, the setting before 1.0, still works and means <url>/mcp.
Through the package, every confirmation comes back as CONFIRMATION_REQUIRED with a confirm token (Confirmation). A tool call the server refuses over HTTP comes back as a tool error with the refusal’s code and, when it has one, retryAfter in seconds: RATE_LIMITED for a 429, BUSY for a 503 and DRAW_TIMEOUT for a 422 when the answer names no code. Other HTTP errors reach the app as an error whose message carries the server’s answer.
Check it. npx -y @zindexai/mcp --version and --help don’t contact Zindex or need a key. When the server starts, it writes one line to stderr, which your host’s MCP log shows: Zindex MCP server vX.Y.Z running on stdio, connected to https://api.zindex.ai/mcp. Without a key, or with one Zindex refuses, the line says that instead of connected.
If it fails. AUTH_REQUIRED from the tools means the server started without a key, or Zindex doesn’t accept the key in ZINDEX_API_KEY because it is wrong, revoked or expired. The error and the start-up line say which. Create a new key at zindex.ai/dashboard/api-keys/, put it in the env block for this server, and restart the host.
“could not connect” at start, followed by “Rate limit exceeded” or “Zindex is busy”, means the server answered 429 or 503: wait the time it gives, or a minute, and restart the host. A version of the package before 2.0.0 also exits at start with “could not connect” when it has no working key: update it, or remove the version pin. Otherwise check the network, and ZINDEX_MCP_URL if you set it. If npx isn’t found, install Node.js 18 or later.
Upgrading from 0.x
Version 1.0 replaced the dsp_* tools with the diagram_* tools. The old names are gone, not aliased, so prompts and code that call a dsp_* tool by name need the new tool. Diagrams saved with 0.x keep their IDs and work with the new tools. A config pinned to a 0.x version of the old package, such as @zindex-ai/mcp@0.45.0, still lists the old tools, but every call fails: 0.x calls /v1/scenes, which answers 410 MOVED. Remove the pin so the config runs @zindexai/mcp, and restart the host.
How every tool behaves
Signing in. A client signs the person in with their Zindex account (OAuth 2.1; Sign in with your Zindex account) or sends an API key as Authorization: Bearer dsp_sk_... (or in X-API-Key). Every request needs one or the other, the first a client sends included. Sign-in tokens work only on /mcp; the REST API takes API keys.
A request without a working one gets an HTTP 401 before any tool runs:
| The request has | code | What to do |
|---|---|---|
| No token or key | AUTH_REQUIRED | A client that supports sign-in signs the person in as it connects; any other sends an API key |
| A sign-in token that is invalid, revoked or expired, or whose person is no longer in its workspace | OAUTH_TOKEN_INVALID | The client gets a new token, signing the person in again if it has to |
A key that is unknown, revoked or expired, or whose person is no longer in its workspace (API_KEY_REVOKED) | API_KEY_INVALID, API_KEY_REVOKED or API_KEY_EXPIRED | Use another key |
The AUTH_REQUIRED answer carries WWW-Authenticate: Bearer resource_metadata="https://api.zindex.ai/.well-known/oauth-protected-resource/mcp", scope="diagrams". The other two carry error="invalid_token".
Workspaces. Every sign-in and key works in one workspace, and every tool acts on that workspace’s diagrams, except diagram_render with a share link or a published diagram’s link; no tool takes a workspace. With read-only access, or as a viewer in the workspace, every tool that changes or shares a diagram, or reports a problem with one, returns READ_ONLY, diagram_delete and diagram_share before asking the person. Don’t retry: with reason: "credential" the person connects again with read and write, or uses a key with write access; with reason: "role" they are a viewer, and a workspace owner can make them a member. diagram_history shows who saved each version (by) and how (credential), never which key (Workspaces).
IDs and keys. Wherever a tool takes id, you can pass the diagram’s ID (dgm_ plus 12 characters) or the key you gave it. A diagram in another workspace answers exactly like a missing one: NOT_FOUND, except in diagram_render, which also takes a share link, or a published diagram’s ID, from any workspace (diagram_render).
Versions. revision picks a version by number. asOf picks the version that was current at an instant: a date such as 2026-09-26 (the end of that day in UTC) or an ISO 8601 timestamp with an offset, such as 2026-09-26T14:00:00Z. Give one or the other, not both.
Results. diagram_create, diagram_edit and diagram_render return JSON as text and as structuredContent, except a diagram_render preview of an unsaved scene or mermaid, which returns the image. When an app shows diagram_render’s picture, its content can end with a short note for you (diagram_render). Every other tool returns text only.
Near a plan limit. A create, a saved edit, a restore (diagram_delete with undo) or a render that leaves the workspace at 80% or more of a plan limit carries LIMIT_NEAR in warnings (Limits: Before a limit). A render’s and a restore’s answer have warnings only then. Tell the person.
Errors. A failed call is a tool result with isError: true. Its text is JSON with code, error (a short message) and any details. Every code below comes that way except CONFIRMATION_REQUIRED, which isn’t a failure: nothing was done (Confirmation). Arguments that don’t match a tool’s input schema are refused before the tool runs, with plain text starting Input validation error: instead of JSON.
| Code | Means |
|---|---|
AUTH_REQUIRED | Through the npm package only: no API key is set, or Zindex refused it. A client connected over HTTPS gets an HTTP 401 instead (Signing in above) |
EMAIL_NOT_VERIFIED | Verify the account’s email before saving, deleting, sharing, reporting or sending feedback |
NOT_FOUND | No such diagram or version in this workspace; for a link in diagram_render, the link is revoked, ended or unknown, its diagram is private or deleted, or a version or latest link was asked for a version. Leave out revision, asOf and knownRevision with a version or latest link; otherwise the link has stopped, so ask the person for a new one |
NO_REVISION_AS_OF | The diagram had no version yet at that instant |
INVALID_REQUEST | An argument is wrong; error says which |
INVALID_PROJECT_NAME | project isn’t an allowed name: use 1 to 40 characters, not none or all, or leave it out. diagram_find takes none for the diagrams in no project and refuses all: leave project out to list every diagram |
VALIDATION_FAILED | Nothing was saved; errors lists each problem with a code, a one-line fix and, where it applies, the element |
KEY_EXISTS | The key belongs to another diagram in the workspace, with different content or a teammate’s; id and revision name it |
REVISION_CONFLICT | The diagram changed since baseRevision; see diagram_edit |
REQUEST_ID_REUSED | The requestId already made a different revision |
PARSE_ERROR | Mermaid couldn’t read the text; error says where or what, and line and column are there when Mermaid names them (Mermaid: Refused) |
UNSUPPORTED_DIAGRAM_TYPE | The Mermaid isn’t an erDiagram, a flowchart or a sequenceDiagram; send the diagram as a scene |
IMPORT_TIMEOUT, IMPORT_FAILED | The Mermaid parser took too long or stopped; send shorter text, or a scene |
MERMAID_FAMILY_MISMATCH | A Mermaid edit doesn’t fit the diagram’s family; see diagram_edit |
INPUT_TOO_LARGE | The Mermaid text, or a feedback snippet, is over 64 KB |
LIMIT_REACHED | The workspace is at a plan limit; limit, maximum and current give the numbers |
PROJECT_LIMIT | The workspace can’t hold another project, and nothing was saved. Create again under an existing project or without project, and tell the person which you did. nearest, when present, names up to 5 projects that read like the name sent |
FEATURE_UNAVAILABLE | The workspace’s plan doesn’t include the feature (feature); on Free, diagram_share with link returns it for a latest or every-version link, or an end more than 7 days out, before asking the person (Paid-plan features) |
READ_ONLY | The sign-in or key can read diagrams but not change or share them or report a problem with them; reason is credential or role; Workspaces above says what to do |
SHARING_DISABLED | The workspace’s owners turned public sharing off: diagram_share with publish or link returns it before asking the person. Don’t retry; tell the person an owner can turn sharing back on |
RATE_LIMITED | Over a rate limit (the call did nothing) or the feedback limit; retryAfter is the seconds to wait |
CONFIRMATION_REQUIRED | Ask the person first; see Confirmation. Not an error: it comes without isError, since nothing was done |
UNSUPPORTED | This server doesn’t offer that action |
DRAW_TIMEOUT | Drawing the scene took longer than the drawing budget (20 s for every drawing over MCP), or needed more memory than it allows. A save or edit saved nothing. The error says what to change: split the diagram, draw fewer edges into one node, or bring the elements closer together |
BUSY | Every drawing worker is busy; retryAfter is the seconds to wait |
STORAGE_UNAVAILABLE | The workspace’s own GitHub repository didn’t answer; retry after retryAfter seconds. detail names the cause |
STORAGE_HOLD | The connection to the workspace’s own GitHub repository needs a workspace owner; reason says what for and detail names the cause. Don’t retry: tell the person a workspace owner must act in Settings → Storage |
INTERNAL_ERROR | Zindex hit an internal error; try again, with the same requestId for an edit. If it keeps failing, tell the person to email support@zindex.ai and say when it happened |
STORAGE_UNAVAILABLE and STORAGE_HOLD come only from a workspace that keeps its diagrams in its own GitHub repository (Bring your own storage); Zindex’s own storage, the default, never returns them. STORAGE_HOLD’s reason is installation_missing, installation_suspended, repository_missing, repository_public (the repository was made public; the hold lifts once it is private or internal), branch_missing, push_refused, credentials, external_change (a change made in the repository outside Zindex) or disconnected (an owner disconnected the workspace’s storage). On such a workspace a save takes a few seconds and a read under a second, and a connected repository takes about 80 saves a minute and 500 an hour, GitHub’s limits for the App; past them Zindex answers STORAGE_UNAVAILABLE with the seconds to wait, never a plan-limit error.
A tool call past the person’s tool-call limit comes back as a tool result with code: "RATE_LIMITED" and retryAfter. The call did nothing, so wait that many seconds and make it again. Past the ceiling on other messages, the server answers HTTP 429 instead, as that section describes.
Confirmation
diagram_delete, and diagram_share with publish, link, report or feedback, need the person’s agreement:
- A client on the 2026-07-28 protocol that supports elicitation gets a yes or no form to show the person. A yes runs the action.
- ChatGPT asks the person before each call to
diagram_deleteordiagram_share, so Zindex doesn’t ask again, and a call from ChatGPT runs the action at once. A person who chooses to always allow Zindex isn’t asked again, in any chat, so every later call runs unasked, whatever the tool, action or diagram. Make each call only once the person has asked for or agreed to that action, and say what it will do first. - Every other client gets a result with
code: "CONFIRMATION_REQUIRED", whatever its protocol revision. So does any answer to the form but a yes, because a client can answer the form without showing it.
CONFIRMATION_REQUIRED comes without isError, since nothing was done. Its error says what will happen, and it carries a confirm token. Tell the person, and only if they agree, call again with the same arguments plus confirm. The token is valid for 10 minutes and only for that account, action and diagram (for link, exactly what the link shows, for whom and until when; for feedback, that item); it can be sent again until it expires.
Zindex never asks before undoing a delete, unpublishing or revoking share links.
diagram_find
Lists the diagrams in this workspace, latest version first. Look here before creating a diagram: each result carries enough to tell it from a similar one without opening it.
| Input | Type | Notes |
|---|---|---|
query | string, up to 200 characters | Matches the title, key or brief, ignoring case. Title matches come first, then key matches, then brief matches, each latest version first |
limit | 1 to 50 | Default 10 |
cursor | string | nextCursor from the previous page |
project | string | Only this project, by name; none for diagrams in no project |
{
"diagrams": [
{ "id": "dgm_7Q2kD9a1B2c3", "key": "payments-architecture", "title": "Payments", "brief": "The payments platform's services, queues and databases.", "diagramFamily": "architecture", "project": "Payments", "revision": 12, "updatedAt": "2026-10-01T14:02:11.204Z", "updatedBy": "Priya Shah" }
],
"nextCursor": "..."
}
key is left out when a diagram has none, or when it equals the ID. brief is the first line of the diagram’s brief, cut at a word to 120 characters with ”…”; diagram_get returns all of it. A query matches the whole brief, so a brief match can show a line without the words searched for. diagramFamily is the scene’s family; both are left out when the diagram has none. project is the name of the project the diagram is in, left out when it has none; a person can rename a project, so read the name again when you need it. updatedAt is when the latest version was saved; publishing a diagram or changing its sharing doesn’t move it. In a team workspace, updatedBy names who saved that version, as history does: their name, else their email, or former member for a closed account. It is left out in a personal workspace, and when Zindex doesn’t know who saved it. starred: true marks the diagrams the person starred, on the dashboard or with PUT /v1/diagrams/{id}/star; no tool stars one. sample: true marks the sample diagram Zindex made in a new account, and stays after edits. Pick it only when the person asks for the sample. nextCursor appears only when there are more.
The tool filters by project, by name and ignoring case; an unknown name finds nothing. It doesn’t filter by family or by star; the dashboard does, and REST takes diagramFamily and starred (API). No tool lists the projects, and diagram_get doesn’t show a diagram’s project: read it from diagram_find (Projects).
diagram_get
Reads a saved diagram. By default it returns an outline: a header line (ID, title, revision, time in UTC, the first 12 hex characters of the content hash), the key, sample: true for the sample diagram, the brief, the last three changes, the diagram’s live share links, then one element per line in document order, with a container’s children indented under it. Edges follow as id: from -> to "label", then step 2 for an edge with a step, and its stepText in quotes when it has one. A spanning frame is listed with the elements outside every frame, followed by what it spans: asg aws.autoScalingGroup "Auto Scaling group" spans app_a, app_b. In a sequence diagram the messages and notes follow the other elements in the order they’re drawn, top to bottom, each fragment’s or highlight band’s line before its first one and its messages indented under it, and a participant box’s lifelines under its line: the IDs after and before take (Operations: Order in a sequence diagram). A fragment’s line gives its operator and the row each further operand starts at (frag_charge fragment alt "[charge succeeded]" operands at m_charge_retry "retry on 5xx"), and an activation’s its messages (busy sequence.activation from m1 to m4).
The links: line appears only with write access, for a diagram with live share links. It gives each link’s linkId, what it shows, who it’s for and when it ends, such as lnk_8sV2nQx7LpWe version r7 for "Halden Assurance" until 2027-02-25, or no end. Pass the linkId to diagram_share with unlink to revoke one.
| Input | Type | Notes |
|---|---|---|
id | string | The diagram’s ID or key |
revision or asOf | number or string | An earlier version; default the latest |
view | outline, dsp or mermaid | Default outline. dsp returns the scene JSON; mermaid returns Mermaid you can edit and send back |
knownRevision | number | A revision you already have; returns only what changed since |
elements | up to 50 element IDs | Only those elements, their direct neighbors and the edges among them |
cursor | string | The next page of a long outline |
dgm_7Q2kD9a1B2c3 "Payments" r2 2026-10-01T14:02Z sha256:182e406914b7
key: payments-architecture
brief: Checkout payment services, left to right.
Keep databases in the bottom row; name queues for what they carry.
recent: r2 Claude Code/2.1 "Add the job queue" | r1 Cursor/1.4 "First version"
outline: 3 nodes, 2 edges
api service "API"
db database "Ledger"
queue queue "Jobs"
e1: api -> db "writes"
e2: api -> queue "enqueues"
brief:is the brief as written; its later lines are indented two spaces.emphasisends the line of a node or edge that setsemphasis, before a sequence message’s number. An end node marked only by its edge shows none.recent:lists the last three versions with their client and message. In a team workspace it names the person too:r7 Ana Lima via Claude Code/2.1 "Add the queue".theme:names the diagram’s theme on a line under the header, such astheme: dark. A diagram inclean, the default, has none.- Numbered messages. A sequence diagram that numbers its messages has a line under the header with the count’s start and increment,
autonumber: from 1 by 1, and each message the count numbers ends its line with its number,#3. A message’s own step is writtenstep 3. - Long outlines. Past 150 element lines the outline stops and its last line is
nextCursor: <cursor>. Pass that ascursorfor the next page. knownRevisionapplies when you read the latest version. If it equals the latest revision, the answer is{ "unchanged": true, "id", "revision", "hash", "chain" }. If it is older, you get the header, the versions since, and one line per changed element:+added,~changed,-removed (ID only). Elements that only moved or were resized follow on one line,moved: api, db.view: "dsp"returns{ "id", "key", "revision", "hash", "chain", "createdAt", "visibility", "scene" }, wherevisibilityispublicorprivateandsceneis the DSP document withoutcomputed, the engine’s drawing output (element boxes, edge routes, label positions). It holds what was written: what the engine infers while drawing, such as an ER edge end’s cardinality from its column or the arrowheads an edge’s type or an AWS or Google Cloud diagram gives, isn’t in it (an older version can still list its type’s arrowheads; they draw the same). It is valid input: send it to diagram_create to save a copy. A version saved before 8.0.0 can hold sequence fragment operands with ay, which the schema refuses: replace each withstartsAt, the ID of the message or note it starts at, before sending it back. While the diagram is public,madePublicAtsays when it was published. The sample diagram Zindex made in a new account hassample: true. The engine lays sequence diagrams out from their messages, so their nodes stay atx: 0, y: 0, which means not placed. Each node’slayoutholds the size the node is drawn at, except for the nodes Element types: Node size and wrapped text lists. It also holds the position the engine placed it at, which is part of the content and itshash. Later edits keep it, with these exceptions, andchanged.movedlists the nodes each one only moves or saves at a new size. To have the engine place nodes again, send anautoLayoutop with diagram_edit:- A node that grows pushes the nodes in its way.
- A node an edit adds whose edge label needs more room than the column it joins pushes that column and everything past it along the flow.
- An edit that adds a line between two placed nodes, or changes what its label needs, moves the nodes past the line’s two nodes just far enough when the label has no room on its line, and so does
autoLayoutwith the line’s ID inelements. Layout engine: Room for a label on an edit has where it applies and where it declines. - A new task in a lane takes a free place in its column, or its lane grows and what lies past it moves across the flow. One inserted between two placed columns of a pool opens a column, moving what follows.
- A node an edit inserts in a flowchart, between two placed nodes, goes on the first one’s line, and what lies past it moves along the flow. That holds neither for a new node on a decision’s no exit nor in a flowchart with a frame that has no
layout(Layout engine: Positions are kept). - A new node in an AWS diagram takes a free place in its row or column, or the row or column grows and what lies past it moves. With AZs as rows, a full service column opens, and services on both sides of the opening can move. With AZs as columns, an edit that leaves a labeled line into the Region’s column too little room moves the column right.
- A spanning frame an edit adds round subnets of one VPC, or what they hold, grows every AZ alike for its header, and what lies below moves down. With AZs as columns, a row or column also grows for the room round a tier frame.
- A new card in a Google Cloud diagram stands in its zone’s column: send
updateFramewith that zone’s wholespansin the same edit. A new tier, Region or row item goes in at its place, and what lies past the growth moves. So do some saved nodes the arrangement realigns, such as a load balancer over the gap between two Regions with the items joined only to it, or an item a new line crosses, which moves aside (Layout engine: Google Cloud architecture diagrams). An edit that adds a load balancer’s line into a second Region opens the gap between the Regions whengcp.cloudlists the load balancer, or the project that lists it holds both Regions. - An edit that adds a tier’s line past another tier opens a gap between zone columns. So does an item outside the boundary added with its line into a tier past another tier, which then stands over the gap where its row has a free place there.
- A line past a tier to a node the Region lists below its subnets, when no gap between zone columns takes it, opens the subnet’s inset beside the tiers and the gap between two tiers, and the node moves under it. The router draws any other line past a tier and opens no room inside the subnet for it, except a line from an item outside the boundary (next).
- An item outside the boundary that the edit adds with its line into a tier past another tier opens the same room when no gap between zone columns takes it. It stands over the line where its row has a free place there. A saved item outside doesn’t move to the lane: it moves only as far as what lies right of the opening moves. Layout engine: Google Cloud architecture diagrams says which lines from outside take a lane.
- An edit that widens a Google Cloud group’s title moves what lies past the growth.
- Except in org chart, network and sequence diagrams, a new node in a frame without a
layoutthat has no room there grows the frame, and what lies past it moves across the flow. - In a stack of layers, a card an edit adds to a layer, or moves into one, stands in that layer’s row. A layer that grows, or is added, moves what lies after it along by the growth (Layout engine: Layers).
- A node an edit moves to another lane is placed again there.
- A frame added or deleted around placed nodes places them again when keeping them would leave frames overlapping or a frame holding a node that isn’t its member.
- An
orderconstraint you add places its two nodes again when they stand the wrong way around.
view: "mermaid"returns a header line (ID, revision, content hash), anote:line for anything Mermaid can’t show, then the diagram in a fencedmermaidcode block: anerDiagramfor entity-relationship diagrams, asequenceDiagramfor sequence diagrams and aflowchartfor every other family. Node IDs are the Mermaid IDs; an ID Mermaid can’t hold is written as an alias such aszid1, with a%% zindex-idcomment that maps it back, so keep those comments. In a flowchart, frames and groups appear as subgraphs, and spanning frames and steps are left out; a Mermaid edit keeps them. Edit the text and send it back asmermaidto diagram_edit. Mermaid scope has what each type writes and leaves out.
diagram_validate
Checks a DSP scene document, or Mermaid text, without saving it.
| Input | Type | Notes |
|---|---|---|
scene | object | A scene document |
mermaid | string, up to 64 KB | Mermaid text, instead of scene: an erDiagram, a flowchart (graph) or a sequenceDiagram |
{
"ok": false,
"errors": [{ "code": "SCHEMA_VALIDATION_ERROR", "element": "cache", "fix": "/elements/1/kind: 'nod' is not allowed; use one of 'node', 'edge', 'group', 'text', 'guide', 'frame', 'image'." }],
"warnings": []
}
ok is false when there is at least one error. Warnings don’t block a save. Mermaid that can’t be read (PARSE_ERROR, UNSUPPORTED_DIAGRAM_TYPE, IMPORT_TIMEOUT, IMPORT_FAILED, INPUT_TOO_LARGE), a scene without an elements array (INVALID_REQUEST), and a check when every drawing worker is busy (BUSY), come back as a tool error instead. element appears when a problem belongs to one element, and each list holds at most 10 entries, Mermaid’s notes included. The codes are in Validation rules.
A valid scene is also laid out and drawn, so warnings include what drawing notices, among them:
TEXT_OVERFLOW: text doesn’t fit its element.ICON_NOT_FOUND: a node’s icon key isn’t a built-in icon.CHARACTER_NOT_DRAWN: text holds characters that are drawn as empty boxes (Text and scripts).NODE_OVERLAP_DETECTED: two nodes sit on top of each other.NODE_OUTSIDE_FRAME: a node sits outside a frame that doesn’t grow to fit it.FRAME_OVERLAP_DETECTED: two frames overlap.NODE_IN_WRONG_FRAME: a node lies inside a frame it isn’t a member of.LABEL_DUPLICATION_DETECTED: edges that meet at one element share a label.EDGE_LABEL_OVER_NODE: a label is drawn over a node. Where the layout would open room for it, the fix namesautoLayoutwith the edge’s ID.DRAW_TIMEOUT: drawing took longer than its budget, so the other drawing warnings weren’t checked.
Every code is in Validation rules: What drawing notices. diagram_create and diagram_edit return the same warnings for the version they save, including the diagram family’s rules.
diagram_create
Saves a new diagram and returns revision 1.
| Input | Type | Notes |
|---|---|---|
scene | object | A DSP scene document |
mermaid | string, up to 64 KB | Mermaid text, instead of scene: an erDiagram, a flowchart (graph) or a sequenceDiagram |
key | string, up to 128 characters | Your stable name, such as payments-architecture: letters, digits, ., _ and -, starting with a letter or digit. Unique among the workspace’s live diagrams |
brief | string, up to 1,000 characters | What the diagram shows, conventions to keep, decisions made |
message | string, up to 500 characters | One line on why it was made |
project | string, 1 to 40 characters | The project to file it under, at create only; created if new. Leave it out for no project |
{ "id": "dgm_7Q2kD9a1B2c3", "key": "payments-architecture", "revision": 1, "hash": "sha256:be1cd7...", "chain": "sha256:9c68ef...", "warnings": [], "created": true }
- Zindex mints the ID. Any
scene.scene.idyou send is ignored. hashis the content hash.chainis the chain hash, which covers this version and every one before it. Verifying explains both.chainisnulluntil Zindex has computed it, normally when the version is saved; a render, an export or the next edit computes a missing one. Reads and the history never compute it.- From Mermaid, element IDs are the Mermaid IDs (in a sequence diagram, only participants’ are) and the same text always gives the same diagram; no model is involved. Subgraphs, edges to them and styles are left out and listed in
warnings(Mermaid scope). - Repeating a create with the same
keyand the same content returns the existing diagram withcreated: false, so a retry never makes a copy. The same key with different content isKEY_EXISTS, and so is a teammate’s create with a key the team workspace already has. Without akey, every call makes a new diagram. - The scene is validated first. Errors return
VALIDATION_FAILEDand nothing is saved. projectfiles the diagram at create and nowhere else. A project is a group of diagrams, not a Google Cloud project.diagram_editcan’t move a saved diagram: ask the person to use Move to project… in the dashboard. A repeated create leaves the project as it was.- Pass
projectonly when the person names one, or the diagrams you found on the subject are all in one. Every new name makes a new project, and names match ignoring case (Projects). - A create that makes a new project adds
PROJECT_CREATEDtowarnings, with the name it made and, when some exist, up to 5 projects that read like it. Apaymentbeside an existingpaymentsis likely a typo: ask the person to move the diagram, since no edit fixes it. Filing under a project that exists, in any letter case, adds nothing, and neither does a repeated create.
diagram_edit
Changes a saved diagram. A change appends the next revision; nothing is overwritten, and every earlier revision stays readable.
| Input | Type | Notes |
|---|---|---|
id | string | The diagram’s ID or key |
baseRevision | number | The revision you last read; required |
message | string, 1 to 500 characters | One line on what the edit does and why; required |
ops | up to 500 operations | Typed operations, checked against ops.schema.json |
mermaid | string, up to 64 KB | The whole diagram as Mermaid, usually read with view: "mermaid" and edited |
restoreRevision | number, or { "asOf": "..." } | Makes the next revision equal to an earlier one |
brief | string up to 1,000 characters, or null | Replaces the brief; null removes it |
requestId | string, 1 to 255 visible ASCII characters, no spaces | Your ID for this edit, such as a UUID |
Send ops, mermaid, restoreRevision, or brief on its own. brief may also go with ops or mermaid. restoreRevision can’t be combined with any of them.
{ "id": "dgm_7Q2kD9a1B2c3", "revision": 3, "hash": "sha256:9b1c...", "chain": "sha256:e665...", "warnings": [], "changed": { "added": ["queue"], "updated": ["api"], "removed": [], "moved": [] } }
- No change, no revision. An edit that leaves the diagram as it was returns
noop: truewith the current revision and nochanged. - Retries. A call with a
requestIdthat already made a revision returns that revision’s result withreplayed: true. The samerequestIdwith a different edit isREQUEST_ID_REUSED. Without arequestId, a retried edit whose result is already the current content returnsnoop: true. - Conflicts. If the diagram moved past
baseRevision, the call returnsREVISION_CONFLICTwith the currentrevisionandchanges, the lines that changed since your base in the same form asknownRevision. AbaseRevisionpast the latest gets nochanges. Re-plan against the new revision and call again. changedlists the elements the editadded,updatedorremoved, and those it onlymoved: at most 20 IDs, filled in that order, so moved IDs are cut first;morecounts the rest.updatedholds every element with a change besides its position or size, which the colored diff draws amber; a newzIndexcounts only where it changes what is drawn in front. A frame that only gained new elements or lost deleted ones is in no list, or inmovedif itslayoutchanged.movedlists the elements whose only change is their position or size: those amoveElementorresizeElementnames, those an update gives only a newlayout, and the nodes the engine moved or saved at a new size:- nodes saved at a new size, such as a card drawn bigger than its saved
layout - nodes a grown node pushed
- nodes moved along to make room for a new node’s edge label
- nodes moved past a line’s two nodes to open room for its label, after an edit added or changed the line or
autoLayoutnamed it - nodes moved by a lane that grew for a new task, or by a column a new task opened in a pool
- nodes moved along for a node inserted in a flowchart
- nodes moved by a frame that grew for a node the edit added
- nodes moved along by a layer that grew for a card the edit added or moved in, or by a layer the edit added
- nodes moved by an AWS diagram’s row or column that grew for a new node, a spanning frame’s header or the room round a tier frame
- nodes moved by a Google Cloud diagram’s row, zone column, Region or project’s box that grew for what the edit added or a group’s title it widened, a gap between two Regions, two projects or two zone columns that opened, a line that crossed an item in a row, or a line past a tier that moved the item it feeds under it
- nodes moved with a Region’s column to keep a labeled line clear
- a task moved to another lane and placed again there
- members a moved frame carried
- nodes the engine placed again because of a frame the edit added or deleted
- nodes saved at a new size, such as a card drawn bigger than its saved
- Every edit is all or nothing. Operations run in order, but only the element an operation changes must exist by then: an edge, group, frame, style, relative layout or constraint can name an element a later operation creates. The element
afterorbeforenames, and the frame acreateNodeorupdateNodeframenames, are the exceptions: they must exist when the operation runs. An operation that can’t apply (such asmoveElementon an edge), a name nothing creates, or a version with an error its base didn’t have returnsVALIDATION_FAILEDand saves nothing. An error the diagram already had doesn’t block an edit that leaves it alone. - A saved edit’s
warningsalso note what adeleteElementchanged besides the element it named:CONSTRAINT_REMOVEDfor each constraint it removed,RELATIVE_LAYOUT_FIXEDfor each element that was placed relative to the deleted one,SPAN_REMOVEDfor each spanning frame left spanning nothing, and in a sequence diagramFRAGMENT_OPERAND_REMOVEDfor each operand left with no rows andACTIVATION_REMOVEDfor each activation bar left with no message to start at. A move withafterorbeforethat leaves an operand with no rows notes it too. An edit that adds a line or changes what its label needs, or anautoLayoutthat names a line, addsLABEL_ROOM_NOT_OPENEDwhen the label got no room and nothing moved. A response lists at most 10 warnings. - Mermaid edits. Zindex compares the Mermaid with the
baseRevisionversion and applies only the differences, as operations. Nodes are matched by ID, and edges by ID or by their ends, so everything you didn’t change keeps its ID and history, and a node keeps its type unless you change its Mermaid shape. Nodes and edges missing from the Mermaid are deleted. In flowchart anderDiagramtext, frames, groups, text, images and guides are never changed this way: a changed subgraph comes back as aFRAMES_NOT_CHANGEDwarning, so change frames withops. An edge to a subgraph that shows a frame or group is an edge to that frame or group, changed like any other edge; an edge to any other subgraph is left out, with aCONSTRUCT_DROPPEDnote. Mermaid edits work on architecture, flowchart, entity-relationship and sequence diagrams, and diagrams without a family. Any other pairing returnsMERMAID_FAMILY_MISMATCH: change that diagram withops. Flowchart orerDiagramtext sent back as read returnsnoop: truewhen everything in the diagram has a Mermaid form (Mermaid scope: Edits). AnerDiagramrelationship’s cardinality, as read, is the one drawn (inferred from the columns where none was set): left as read, it keeps following the columns; changed, it is saved as you wrote it. - Mermaid edits of a sequence diagram match participants by ID, and messages and notes as lines, as a line diff does, so a message whose ends change gets a new ID. Mermaid scope: Sequence diagram edits has the rules.
diagram_render
Returns links to the SVG and PNG of one version, not the image itself, with the image’s size and the version’s date.
| Input | Type | Notes |
|---|---|---|
id | string | The diagram’s ID or key, or a share link or a published diagram’s link (see below) |
revision or asOf | number or string | An earlier version; default the latest |
knownRevision | number | A revision you already have (see below) |
preview | boolean | Also return the PNG, so you can look at it, or a page can show it |
scene | object | An unsaved DSP document, instead of id |
mermaid | string | Unsaved Mermaid text, instead of id |
{
"id": "dgm_7Q2kD9a1B2c3",
"title": "Payments",
"revision": 3,
"latest": 3,
"savedAt": "2026-10-04T15:20:11.204Z",
"hash": "sha256:9b1c...",
"chain": "sha256:e665...",
"engine": "6.0.0+build.1690",
"svg": "https://api.zindex.ai/v1/images/dgm_7Q2kD9a1B2c3@3.svg?e=1791756000&s=...",
"png": "https://api.zindex.ai/v1/images/dgm_7Q2kD9a1B2c3@3.png?e=1791756000&s=...",
"expires": "2026-10-11T22:00:00.000Z",
"width": 812,
"height": 436
}
- For a private diagram, as above, the links are signed and work without a key until
expires, 7 days after the call. Anyone holding a link can open that one version until then, so share them only with people who may see the diagram. - For a published diagram, the links are its permanent links instead, and there is no
expires:urlis the version’s page,https://zindex.ai/d/<id>@<revision>, andsvgandpngare that page with.svgor.png. They work until the diagram is made private or deleted. For a private diagram that should stay private,diagram_sharewithlinkmakes a share link, which shows its picture and never its scene. widthandheightare the image’s size in pixels, the same for the SVG and the PNG, so a page can make room for the image before it loads.savedAtis when the version was saved, andlatestis the diagram’s latest revision.titleis the diagram’s title; it is left out when the diagram has none, and always through a share link.hashandchainare the version’s content and chain hashes, as diagram_create returns them.engineis the API build that drew the image. Each version’s image is drawn once, when it is saved (or the first time it is needed, for older versions), and kept, so a link always shows the same picture even after an engine update.- The picture in the chat. Apps that show MCP Apps views, among them ChatGPT and Claude on the web, show the person the picture when the call returns. It comes in a card with the diagram’s title and version, Full screen and Open in Zindex. An untitled diagram of your own shows its key instead. An unsaved preview’s card has Full screen only.
- When the picture shows, the result can end with a short note for you saying so. Follow it: the picture answers a request to see the diagram, so don’t attach or describe it unless the person asks for a file, a link or a description. Don’t draw any part of it yourself, in Mermaid, an image or any other way, unless they ask you to. To show what changed, say it in words.
- In ChatGPT, you get Zindex’s tools only on a message that names the app. The card asks the person to mention @Zindex when they ask for a change.
- With no note, give the person the
svglink. Some apps show the picture with no note, and some show no picture, such as Claude Code in the terminal. A picture too large for the chat isn’t shown, and a saved version’s card links to the diagram in Zindex instead. Some apps show the result’s PNG in its place, frompreviewor an unsaved preview. - For the card, the result’s
_metaalso carries the picture, for the app to show, not for you.
- A link as
id.idalso takes a share link, or a published diagram’s link, from any workspace.- What to send. The link on zindex.ai as people paste it, such as
https://zindex.ai/d/<ref>or its image’s address, or its ref. A ref is a share link’s token or a published diagram’s ID, with@3for version 3 where the link takes one. - A version link or latest link shows one picture and takes no version:
@<revision>,revision,asOfandknownRevisionanswerNOT_FOUND. The answer hasshows,namewhen the link has one,savedAt, the version’sfingerprint, itsurl,svgandpng, and its size. It names no diagram and no version number. - A published diagram or an every-version link takes a version in the link, or in
revisionorasOf.@<revision>withasOf, or with a differentrevision, answersINVALID_REQUEST; the same revision given both ways is accepted. The answer has the version’s links, hashes, engine, size and date and the latest revision, and an every-version link’sshows,nameandends.urlis the version’s page,https://zindex.ai/d/<ref>@<revision>, even when the link follows the latest, andsvgandpngare that page with.svgor.png. - What it never has. Through a share link the answer never has the title, and no tool returns a share link’s scene. Its links have no
expires: they work until the link is revoked or ends, or the diagram is made private or deleted. - A link that stopped. A revoked or ended link, a private diagram and a deleted one all answer
NOT_FOUND, as the link’s page does. - Plan counts. Opening a link isn’t a render, so it doesn’t count against the owner’s plan.
- Your own diagram. By its ID or key, it renders as above, even inside a link. A published diagram’s ID that isn’t in your workspace renders as its link.
- What to send. The link on zindex.ai as people paste it, such as
knownRevisionchecks whether anything is new without fetching it again, as a page that refreshes its picture does. When the version this call would render is that revision, the answer is{ "id", "revision", "unchanged": true }, with no links and no image, even withpreview, and it isn’t counted as a render. Otherwise it is the whole answer. Call again with the sameid: a published diagram’s or every-version link without@<revision>, like an ID withoutrevisionorasOf, follows the latest version, so the answer changes once a new version is saved. A version link or latest link takes noknownRevision.- In a page or file you publish (a Claude artifact, a slide deck, a PDF, a generated report), make the diagram in Zindex and show one version; such pages can’t load images from other sites. Where you can run a command, download the version’s
pngwith a command, not typed, and embed it. Embedding and linking has the recipe for each place. Caption the picture with the version’s address:- a published diagram:
zindex.ai/d/<id>@<revision> - a diagram with a version link:
zindex.ai/d/<token>, which shows that version alone - a diagram with an every-version link:
zindex.ai/d/<token>@<revision> - a private diagram with no link:
https://zindex.ai/dashboard/diagram/?id=<id>&revision=<n>, which opens only for its workspace. Embed its copy only in a page for people who may see it.
- a published diagram:
- Where you can’t run a command and the page can call Zindex tools as it opens, as in claude.ai chat, the page calls
diagram_renderwith the version’s address asidandpreview: true: a version link, or<ref>@<revision>for a published diagram. A latest link, or a published diagram’s<ref>alone, follows the latest version. A version link or latest link takes noknownRevision; with a published diagram’s or every-version link’s<ref>, a refresh that finds no new version returns no image. Embedding and linking says who sees the live picture and what to give the rest. - With
sceneormermaidinstead ofid, the tool draws the document as a PNG in its theme, as a save would, and returns the image. Nothing is saved. Giveid,sceneormermaid, only one.
diagram_history
Lists versions newest first, or compares two versions.
| Input | Type | Notes |
|---|---|---|
id | string | The diagram’s ID or key |
limit | 1 to 50 | Default 10 |
cursor | string | nextCursor from the previous page |
compare | { "from": ..., "to": ... } | Revision numbers or dates; to defaults to the latest |
{
"id": "dgm_7Q2kD9a1B2c3",
"currentRevision": 2,
"versions": [
{ "revision": 2, "at": "2026-10-01T14:02:11.204Z", "by": "Ana Lima", "credential": "oauth", "client": "Claude Code/2.1", "message": "Add the job queue", "chain": "sha256:d6d68b...", "added": 1, "changed": 1, "removed": 0, "moved": 1 },
{ "revision": 1, "at": "2026-09-30T09:12:40.517Z", "by": "Ana Lima", "credential": "api_key", "client": "Cursor/1.4", "message": "First version", "chain": "sha256:9c68ef..." }
]
}
by is who saved the version: their name, else their email, "former member" once their account is closed, or null when it isn’t known. credential is how: session, api_key or oauth, never which key. client is the MCP client’s name and version, or the first product token of the REST caller’s User-Agent. chain is the version’s chain hash. added, changed, removed and moved count the elements the version added, changed, removed and only moved or resized; revision 1 has no counts.
With compare, the result lists element IDs:
{ "id": "dgm_7Q2kD9a1B2c3", "from": 1, "to": 2, "added": ["queue"], "changed": ["api"], "removed": [], "moved": ["db"], "scene": ["title"], "authors": [{ "by": "Ana Lima", "client": "Claude Code/2.1" }] }
changed and moved hold what an edit’s changed.updated and changed.moved would. scene names the scene-level fields that changed, such as title or brief. authors lists each distinct by and client pair that saved a version after from, up to to.
diagram_delete
Deletes a diagram with all its versions. Asks the person first (see Confirmation).
| Input | Type | Notes |
|---|---|---|
id | string | The diagram’s ID or key |
undo | boolean | Restore a diagram deleted in the last 24 hours |
confirm | string | The token from a CONFIRMATION_REQUIRED result |
{ "id": "dgm_7Q2kD9a1B2c3", "deleted": true, "undoWithinHours": 24 }
For 24 hours, undo: true restores it with every version: { "id", "restored": true, "revision", "key" }. If another diagram took its key in the meantime, it comes back without one and the result says so in note. After 24 hours the diagram and its history are gone for good, and undo returns NOT_FOUND.
diagram_share
Changes who can see a diagram, reports a problem with one version to Zindex support, or sends Zindex feedback. Sharing says what each kind of share link and publishing let people see, and which to choose for whom: publishing also lets anyone read the scene JSON.
| Input | Type | Notes |
|---|---|---|
id | string | The diagram’s ID or key; optional for feedback |
action | publish, unpublish, link, unlink, report or feedback | |
shows | version, latest or every | For link: one version, the newest each time it’s opened, or every version and what each changed. Default version |
name | string, up to 60 characters | For link: who it’s for. Anyone with the link sees it, and a version link or latest link prints it on its picture |
ends | YYYY-MM-DD or null | For link: the last day it opens, today or later; it stops at 23:59:59 UTC. null: no end date. Default 90 days for a version link, 30 for an every-version link, none for a latest link; 7 days on Free |
linkId | string | For unlink: the one link to revoke, from diagram_get’s links: line |
problem | string, up to 500 characters | For report: what is wrong, in one line |
revision | integer | For a version link, report, or feedback with id; default the latest |
anonymize | boolean | For report and feedback; default true |
kind | bug, docs, request or other | For feedback; docs: docs and engine disagree |
summary | string, up to 200 characters | For feedback: one line |
expected, observed | string, up to 2,000 characters each | For feedback |
confidence | seen, likely or unsure | For feedback |
snippet | scene object or Mermaid text, up to 64 KB | For feedback, in place of id: send one or the other, not both |
confirm | string | The token from a CONFIRMATION_REQUIRED result |
publishasks first, then makes the diagram readable by anyone with its link, and returns{ "id", "visibility": "public", "url", "madePublicAt" }. Anyone with the link tohttps://zindex.ai/d/<id>can see every version and fetch its scene JSON without a key;https://zindex.ai/d/<id>@<revision>is one version, which never changes (Links anyone can open).robots.txtasks crawlers other than link previews to skip/d/pages, but treat a published diagram as public. Public diagrams fall under the hosted-content policy.unpublishmakes the diagram private again and returns{ "id", "visibility": "private" }. Its links by ID stop working at once; its share links don’t.linkchecks the plan and the diagram first, then asks, naming what the link will show, for whom and until when, then makes a share link. It returns the link with itslinkIdandurl, as Share links shows. Anyone who hasurlsees what the link shows, never the scene, and making it doesn’t publish the diagram. Choose the link by who it’s for (Sharing).- A version link’s or latest link’s
urltakes no@<revision>. An every-version link’s follows the latest version; add@<revision>for one version. - On Free, a link shows one version and ends within 7 days. Anything else returns
FEATURE_UNAVAILABLEwithout asking (Paid-plan features). - A version link or latest link of a public diagram returns
INVALID_REQUEST: ask the person whether tounpublishit first. - Each call makes a new link. Anyone who has a link can report the diagram, and a link whose diagram breaks the hosted-content policy is revoked.
- A version link’s or latest link’s
unlinkwithlinkIdrevokes that link and returns{ "id", "linkId", "revoked": true }. WithoutlinkIdit revokes every live share link on the diagram and returns{ "id", "revoked" }, the number revoked. Revoking doesn’t ask first. A revoked link stops at once, and its record stays (Link records).- Each of these takes effect at once for new fetches through Zindex: unpublishing stops the links by ID, revoking or reaching a link’s end stops that share link, and deleting the diagram stops both. Zindex’s edge cache keeps none of a share link’s answers, and is emptied of a published diagram’s at the same time; if that ever fails, they expire within an hour. Copies people already fetched stay with them, as with any image once shared: a browser may keep an exact version’s image for up to a year.
reportasks first, then sends one version to Zindex support with your one-lineproblemand returns{ "reportId", "id", "revision", "reported": true, "anonymized" }. A report is its own record: the diagram stays as private or public as it was, and later versions aren’t part of it. Withanonymizeleft attrue, Zindex keeps an anonymized copy and staff see only that: the diagram’s text (labels, titles, the brief, column names and comments) and IDs with their letters and digits swapped for random ones of similar width, which is usually enough to diagnose a layout or rendering problem; metadata, which isn’t drawn, is left out. Punctuation, spacing and non-ASCII characters stay as they are. Withanonymize: false, staff see that version as it is. Each time staff open a report, an internal audit log records it with the staff member who viewed it. That log is for Zindex’s own use; you can’t see it. The person sees exactly what staff see on the diagram’s page in the dashboard, under Report a problem, and can withdraw a report there (or withDELETE /v1/diagrams/{id}/reports/{reportId}). Deleting the diagram hides its reports from staff at once, and they are removed for good with the diagram 24 hours later.feedbackasks first, then sends Zindex staff one item and returns{ "feedbackId", "sent": true, "status": "new" }. Send it when the person wants Zindex told that the docs and the engine disagree, or that something they needed is missing.kindandsummaryare required;expected,observedandconfidencehelp staff reproduce it. It needs no diagram:idattaches a version of one, orsnippeta scene or Mermaid text, anonymized unlessanonymizeisfalse. When Zindex asks, its question names the item, what it carries, the engine version and your client.CONFIRMATION_REQUIREDalso carriespreview: the item as staff will see it, anonymized copy included. Aconfirmtoken covers that item only, so call again with the same arguments. An account can send 20 items in any 24 hours. The person sees each item as staff see it, with its status, under Your feedback on Dashboard → Usage (GET /v1/feedback).