Workspaces
Every diagram belongs to one workspace. Each person has a personal workspace and can also belong to team workspaces, as an owner, a member or a viewer. Every API key, connected app and dashboard session acts in exactly one workspace and sees only that workspace’s diagrams.
One workspace per credential
- An API key acts in the workspace it was made in: the one selected in the dashboard, or that of the key that made it. A connected app acts in the workspace chosen when it was allowed, until you move it. The dashboard acts in the workspace selected in the workspace menu at the top of every page.
- No endpoint or tool takes a workspace parameter. To use an app in another workspace, open that workspace from the workspace menu and move the app under Dashboard → API keys → Connected apps (Move here). It stays signed in and keeps its access. Connecting the same app again in a workspace replaces its earlier connection there. An API key can’t move: make one in the other workspace. To work in two workspaces at once, use a key or a connection for each.
- A diagram in another workspace answers
NOT_FOUND, as one that doesn’t exist does, except indiagram_render, which takes a version link or a published diagram’s ID from any workspace. Only the dashboard names the other workspace, when you belong to it. - A diagram’s
keyis unique within its workspace. A teammate’s create with a key the workspace already has answers 409KEY_EXISTS: read and edit that diagram instead. - Everyone in a team workspace can read every diagram in it, since there is no per-diagram privacy inside a workspace. Draft in your personal workspace and move the diagram in when it is ready.
Roles
| Owner | Member | Viewer | |
|---|---|---|---|
| Find, read, render, history, compare, one diagram’s export, star | Yes | Yes | Yes |
| Create, edit, delete, restore | Yes | Yes | No |
| Publish, create share links | Unless sharing is off | Unless sharing is off | No |
| Unpublish, list and revoke share links, report a problem | Yes | Yes | No |
| Move a personal diagram in | Yes | Yes | No |
| Export the whole workspace | Yes | No | No |
| Make keys, connect apps | Write or read | Write or read | Read only |
| See and revoke everyone’s keys and connected apps | Yes | No | No |
| Invite, invite link, domains, join requests | Yes | No | No |
| Roles, removing people, transfer, sharing switch, renaming or deleting the workspace | Yes | No | No |
| Subscription and invoices | Yes | No | No |
| Usage and limits | Yes | Yes | Yes |
| Leave | Unless the last owner | Yes | Yes |
A team workspace can have several owners. You are the owner of your personal workspace, which has no team actions.
Agents can’t manage a workspace. Inviting people, roles, domains, the sharing switch, moving a diagram and billing work only from the signed-in dashboard: an API key gets 403 SESSION_REQUIRED, and a connected app’s sign-in works only on /mcp.
Write and read access
Each API key and connected app has write or read access. What it may do is that access narrowed by its person’s role: a viewer’s write key acts read-only, and writes again if they become a member.
- Read access finds, reads, renders and compares diagrams, reads and downloads a diagram’s history, lists recently deleted diagrams, stars diagrams and sends feedback without a diagram. Anything that changes or shares a diagram, or reports a problem with one, answers 403
READ_ONLY, so don’t retry it. Itsreasoniscredentialfor a read key or app, androlefor a viewer. Over MCP the tool list is the same, anddiagram_deleteanddiagram_shareanswerREAD_ONLYbefore asking the person to confirm. - Keys. A key made with a key gets that key’s workspace and a scope no wider than its own (Authentication). A viewer can hold 3 keys in a workspace, and viewers’ keys don’t count toward the workspace’s
apiKeyslimit. One more answers 403PLAN_LIMIT_EXCEEDEDwithmaximumAllowed: 3, so revoke one first. - Connected apps. A client that asks for the OAuth scope
diagrams:readalone gets read access;diagrams, or no scope, asks for write. On the consent page the person chooses the workspace and the access, and can first join a team workspace their address lets them join on Auto. A viewer, or a client that asked only fordiagrams:read, gets read access whatever is chosen. - History names people, not keys. Each version records who saved it,
by(their name, else their email), and how,credential(session,api_keyoroauth), but never which key (diagram_history).
Joining a team workspace
An owner adds people by email invitation, invite link or email domain, while the workspace is on Team. A workspace holds at most 1,000 people. Joining needs a signed-in account with a verified email.
- Email invitation. An owner invites an address as a member or a viewer. The invitation works for 7 days, and only for the account whose verified email is that address. Inviting the same address again sends a new link and stops the old one. An address that can’t have an account, such as a disposable inbox, can’t be invited unless it already has one. A workspace can send 50 invitations a day.
- Invite link. An owner makes one link for the workspace, shown once. Anyone who opens it joins with the link’s role. Making a new link stops the old one, and owners can turn it off.
- Email domain. An owner lists a domain such as
acme.com. People with a verified address there join with one click (Auto), or ask and wait for an owner (Approval, the default, which emails every owner). Domain join has the rules.
The invite link and each domain have a role, viewer (the default) or member, which owners can change at any time; the link stays the same. A member’s seat is added when they join; if it can’t be, they join as a viewer. When someone joins as a member by themselves, by the link or a domain on Auto, every owner gets an email naming them and the seat. An owner who approves a request can choose the other role.
Domain join
- A person qualifies when their account’s verified address is at exactly the listed domain. An address from Google sign-in qualifies only when Google reports the company’s Google Workspace domain for the account, and it matches. With a personal Google account, sign in with the company’s account instead, or ask an owner for an invitation.
- Public mail domains, such as
gmail.com, can’t be listed: invite those people by email. Disposable inboxes can’t be listed either. - An owner or member of the workspace must qualify for a domain before it can be listed.
- Signing up or signing in never joins anyone by itself. Zindex offers the team workspaces your address can join, and the workspace menu and https://zindex.ai/join/ list them. Zindex emails you when an owner approves your request, and joining another way settles a pending one.
- Anyone who still has a verified address at the domain qualifies, including someone who has left the company. With Approval, an owner checks each request.
Moving a diagram in
From the signed-in dashboard, with your personal workspace selected, you can move one of its diagrams into a team workspace where you are an owner or member. It keeps its ID, every version and its hash chain. A published diagram stays published, and its share links keep working.
- It goes one way, personal to team, one diagram at a time.
- Afterwards your personal workspace’s keys and connected apps get
NOT_FOUNDfor it, and the team’s see it. - Nothing moves while:
- the team already has a diagram with the same key. A key can’t be renamed, so delete one of the two.
- the team’s sharing is off and the diagram is public or has share links. Make it private and revoke its links first.
- the team is at its diagram limit.
- either workspace keeps its diagrams in its own storage (Storage).
Public sharing
A team workspace’s owners can turn public sharing off. While it is off, publishing a diagram and creating a share link answer 403 SHARING_DISABLED, over REST and MCP. Don’t retry, since only an owner can turn sharing back on. Making a diagram private and revoking links still work.
- Turning sharing off doesn’t take down anything already shared. Make all private unpublishes every diagram and revokes every share link in the workspace; it doesn’t turn sharing off.
- Share links stay anonymous: anyone who has one sees the images. No link opens for workspace members only.
- The switch doesn’t cover render links.
diagram_renderandGET /v1/diagrams/{id}/renderstill return signed image links that anyone holding them can open for 7 days, and anyone in the workspace, viewers and read keys included, can make them. - Each share link records who made it, as
createdByinGET /v1/diagrams/{id}/links.
Seats, billing and limits
You pay for a team workspace when you create it, for at least 2 paid seats, and viewers and agents are free (Pricing).
- You name it at zindex.ai/settings/new-team/. It exists once payment completes, with you as its owner.
- Each owner and member is a paid seat.
- A seat added is charged at once for the rest of the billing period, and a seat removed leaves a credit for later invoices, not cash. Seats follow roles.
- Owners manage the subscription and download invoices from Billing.
- If the owner who pays stops being an owner, the workspace’s cards are removed and every remaining owner is asked to add one; until then, a seat added is charged with the renewal.
- Limits are pooled: Team gives Pro’s diagrams, updates, renders and keys for each paid seat, shared by everyone in the workspace. One busy agent can use up the month’s updates for everyone, and then saves answer 403
LIMIT_REACHED(Team’s pooled limits). The rate limit stays per person. - When the subscription ends, the workspace has Free’s limits and everyone keeps their role. Until it is subscribed again, nobody new joins by link or domain, no invitation can be sent, and no viewer can be made a member or owner.
Storage
Zindex’s own storage is the default for every workspace, on every plan. An owner of a workspace on Pro or Team can choose bring your own storage in Settings → Storage instead, to keep the workspace’s diagrams in a private GitHub repository. That page says what it is, what is kept where and how it works, and the sections below have the steps. Agents see no difference: the same IDs, keys, revision numbers, baseRevision, requestId, hashes and links work either way, and no prompt, key or connected app changes. A diagram can’t be moved between workspaces while either workspace keeps its diagrams in its own GitHub repository; move that workspace’s diagrams back to Zindex’s own storage first.
Connecting
An owner connects from Settings → Storage, signed in, on Pro or Team:
- Continue on GitHub. GitHub signs you in as the user your browser is signed in to on GitHub, whatever address you use with Zindex, and looks for the Zindex GitHub App on the accounts you can reach. If it isn’t installed anywhere yet, GitHub asks you to install it on the one repository to use: a private repository used for nothing else (what the App can reach). Back in Settings, the repositories of every installation you can reach are listed, grouped by account.
- Choose the repository and branch. For an account or organization the App isn’t on yet, choose Install the Zindex app on another account or organization under the field. GitHub asks which account; once the App is installed there, the list includes its repositories. An account that already has the App gets GitHub’s configuration page instead: add the repository to the App’s access there, then Continue on GitHub again.
- The repository must be private, or internal, which only your enterprise’s members can see. A public one is listed but can’t be chosen. Connecting or reconnecting checks with GitHub at that moment and refuses a public one.
- The branch is the repository’s default unless you name another. If it doesn’t exist yet, Zindex creates it and writes
.zindex/README.mdand an empty.zindex/manifest.json. - Otherwise
.zindex/must be empty or already this workspace’s. Zindex refuses a folder another workspace uses, or one something else wrote.
- Review what Zindex keeps, and confirm.
An empty workspace is connected at once. A workspace that already has diagrams connects as moving. Zindex copies every version into the repository, reads each one back and compares its hashes with the index, then switches. The copies in its own storage go after the switch.
While the move runs, saves answer STORAGE_UNAVAILABLE with a retryAfter, and reads keep working. Settings shows the move’s progress and says when it is waiting for GitHub to answer. Nothing is lost, and the move goes on when GitHub does. An owner can cancel a move before the switch, which removes what it copied.
If the repository goes on hold or is made public during the move, the move stops. The diagrams stay in Zindex’s own storage, and what it copied stays in the repository.
When the repository belongs to an organization whose members may not install apps, GitHub sends the request to its owners and emails them. Nothing is connected until an owner approves it. Then start again from Settings → Storage.
Each repository holds one workspace, and each workspace has one storage. Only owners see which repository and branch hold the diagrams, in Settings → Storage. No MCP tool, API key or connected app can see the repository or the branch, or connect, move or disconnect the storage.
Owner actions and holds
Settings → Storage shows the connection: repository, branch, status, the last check, the last verification and the latest events (who connected, verified, restored, moved or disconnected, and when). An owner can:
- Verify now reads every version back, checks that its scene matches its record’s content hash, and compares its image and chain hashes with the index. Zindex also checks every connected workspace regularly and verifies a sample of its versions the same way.
- Restore writes the last known-good files back over a change made outside Zindex and lifts the hold.
- Move back copies every version into Zindex’s own storage, checking each against the index’s hashes, and leaves the repository as it is. It works on every plan, whether the connection is healthy, on hold or disconnected. While the App is uninstalled or suspended, its credentials are refused or the repository is gone, Zindex refuses a move back and says what to fix first.
- Disconnect keeps the diagrams readable while GitHub lets the App read the repository, and refuses saves (
STORAGE_HOLDwithreason: "disconnected") until the same repository is reconnected or the diagrams are moved back. Zindex writes nothing to a disconnected repository. Reconnecting checks what changed in the repository meanwhile, from the last commit Zindex wrote: a change made outside Zindex under.zindex/puts the workspace on hold, as it would while connected.
A hold is a connection that needs an owner. Zindex sets one when:
- the App is uninstalled or suspended
- the repository or branch is gone, or refuses the App’s push
- the repository was made public
- something other than Zindex changed
.zindex/on the branch, such as a commit by someone else or a rewound or force-pushed branch
While a workspace is on hold, saves answer STORAGE_HOLD with the reason (Errors). Reads go on from the last commit Zindex wrote, only while GitHub lets the App read the repository. Settings names the reason and what to do.
A hold for a missing installation, repository or branch lifts by itself within about ten minutes of its return. That includes installing the App again, and transferring the repository to an account that has the App. A hold for a public repository lifts by itself once the repository is private or internal. A change made outside Zindex holds the workspace until an owner restores or disconnects.
While a connection is on hold or disconnected, or a move runs, the diagrams list and each diagram’s page say so to everyone in the workspace. Owners get a link to Settings → Storage, and members and viewers are told that an owner can fix it. Zindex also emails the workspace’s owners when a move finishes or stops and when the connection goes on hold. The email gives the repository’s name, the counts and what to do, never a diagram.
Limits, deletion and plan changes
- A connected repository takes about 80 saves a minute and 500 an hour, GitHub’s limits for the App’s content-generating requests. A save takes a few seconds and a read under a second. Past the repository’s limits, Zindex answers
STORAGE_UNAVAILABLEwith the seconds to wait, never a plan-limit error. A read that GitHub drops or answers with a server error is sent again, up to three times in all, before Zindex answersSTORAGE_UNAVAILABLE; a save is sent once. The workspace’s plan limits are unchanged: every save counts toward its monthly updates as on Zindex’s own storage. - Deleting a diagram works as on every workspace: it can be restored for 24 hours. After that, Zindex commits the removal of the diagram’s folder and its manifest entry from the branch, then removes its index rows. The repository’s history keeps the files, as any Git history does, under your control; rewriting that history is your own operation. Deleting a team workspace, or closing your account, removes the connection and the index and leaves the repository untouched; uninstall the App when you wish.
- A workspace that moves from Pro or Team to Free keeps its connection working within Free’s limits. Nothing is moved for a downgrade, and nothing is copied back to Zindex without an owner’s move. Connecting, reconnecting and moving into a repository need Pro or Team; moving back never does.
- Sharing works the same: a published diagram’s page, a share link and a signed image link read the version from the repository through Zindex.
Leaving, deleting and exporting
- Leaving. When you leave, or an owner removes you, your keys and connected apps for that workspace are revoked. The diagrams you made stay. The last owner can’t leave, be removed or be made a member or a viewer, so make someone else an owner first.
- Transfer. An owner makes someone else an owner and becomes a member or a viewer, or leaves.
- Deleting a team workspace. An owner types its name, then confirms from an email. Its diagrams with every version, its keys, connected apps, invitations and share links are deleted at once. A connected repository is left untouched. Its subscription, if it has one, is canceled with no refund for the rest of the period, and everyone in it gets an email.
- Closing your account is refused while you are the last owner of a team workspace with other people in it. It deletes your personal workspace and any team workspace you are alone in, and cancels their subscriptions the same way. A connected repository is left untouched. In the team workspaces you leave, the diagrams you made stay, and their history shows
"former member". - Invoices. A deleted workspace’s invoices can’t be opened afterwards, and neither can a closed account’s, so download any you need from Billing first.
- Export.
GET /v1/workspace/exportdownloads every diagram in the workspace the request acts in (Export). In a team workspace only owners can, with a session or their own key (403OWNER_REQUIREDotherwise); everyone can download one diagram’s history.