Excalidraw+ API

Authentication

API key creation and usage

API Key

API Keys in playground

The API playground stores your API keys in your browser's local storage for convenience.

Important: Use the playground only for testing. Do not use production keys, and remember to expire any test keys after use to keep your account secure.

Creating new key

You can generate API keys in Excalidraw Plus under the workspace settings.

Full key will be visible only once, so make sure to copy it and store it.

Each key can have different permissions based on the operation (read, full) or access to specific routes. Keys also have specific expiration, after which it will no longer be valid.

Excalidraw+ supports personal/user API keys and workspace API keys. Personal keys act as a specific workspace member and can access that member's virtual private collection using the collection ID private. Workspace keys act as the workspace and cannot list or access any member's private collection.

The private collection is built in. It cannot be created, renamed, or deleted, and POST /collections always creates a regular shared collection. See Personal vs Workspace MCP/API Keys for the full behavior comparison.

Each key is associated with a workspace for which it is created and does not have access to data from other workspaces.

Collection keys

When you create a workspace key, you choose what it can reach:

  • Full access, Read only or Chosen routes: the whole workspace, with full, read-only or route-by-route access.
  • Chosen collections: a collection key, which reads and writes scenes only in the collections you tick.

A collection key, over the REST API and MCP alike:

  • can use every /scenes route (including content and sharing links) and GET /collections, GET /collections/:collectionId, PATCH /collections/:collectionId, GET /collections/:collectionId/scenes and POST /collections/:collectionId/scenes
  • answers 403 for every other route: creating or deleting collections, the workspace, its members, invites and activity logs
  • lists only its collections and the scenes in them
  • answers 404 for any other scene or collection, the same as for one that does not exist, and when creating a scene in, or moving one into, a collection outside its scope

Access follows each scene's current collection: move a scene out of the key's collections and the key loses it at once; move it back and it is visible again. Deleting one of the key's collections leaves the key with the rest. A key's type cannot be changed after it is created.

Using the key

The API uses an API key sent in the Authorization header as Bearer <API_KEY> in all requests.

const body = JSON.stringify({
  name: "New scene",
});

fetch("https://api.excalidraw.com/api/v1/scenes", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Bearer sk-...7qd", // <-- Your API key
  },
  body,
});

The Excalidraw CLI uses the same keys: run excalidraw login and paste your key once, and later commands use it.

Last updated on

On this page