IsoDrawDocs

AI and automation

API tokens

Tokens for the CLI, scripts, CI and AI apps. Each one acts as you, in one workspace.

An API token lets something other than your browser work with your diagrams: the CLI, a CI job, or an AI app. Open the account menu (your initials, top right) and choose API tokens.

The API tokens page

Creating a token

Give it a name you'll recognize later, such as "GitHub Actions" or "Laptop", then choose:

  • Workspace: the one workspace it can use.
  • Access: Read only to list and read diagrams and docs, or Read and write to create and change them too. Workspace viewers can create read-only tokens only.
  • Expiry: 30 days, 90 days, a year, or never.

Click Create and copy the token. It's shown only once, because IsoDraw stores just a hash of it.

On your own machine you don't need to create one by hand: isodraw login makes a token through the browser and saves it for you.

Using a token

export ISODRAW_TOKEN=isd_…
isodraw describe "Payments"

Or send it to the API, and to the MCP server for clients without OAuth, as a bearer token:

Authorization: Bearer isd_…

Connections from AI apps

When you connect an AI app through the MCP server, IsoDraw creates a token for it with the workspace, access and expiry you approved. These connections appear in Your tokens too.

Revoking

Revoke a token from Your tokens when it's no longer needed or may have leaked. Whatever was using it stops working straight away. isodraw logout revokes the token on that machine.