Skip to main content
Send a Workspaces API key as a Bearer token for agent and automation requests. Check the served OpenAPI file before you call a route. Send requests to the instance’s public API origin. Hosted Workspaces and the default container setup use the app origin. A Cloudflare self-hosted deployment uses its separate public API origin, not the Access-protected app origin.

Check supported API routes

Each instance lists its current API routes at:
Use only the routes in that file. Product plans and design files may list routes that the instance does not support.

Check an API key

Set the public API origin. Load the key into WORKSPACES_API_KEY with a secret manager or another method that does not save it in shell history. Then call /v1/me:
A valid key returns the owner’s user ID, auth_type: api_key, and current organization memberships. The owner name, email, and provider are null for an API-key request. A missing, malformed, or revoked key returns 401. Do not put a real key in shell history, a ticket, a log, or a document.

Send a request

Follow the method, request body, headers, and response schema in /v1/openapi.yaml. Include these headers when the operation requires them:
  • Authorization: Bearer <key> authenticates the request.
  • Content-Type: application/json tells Workspaces that the request body is JSON.
  • If-Match: <version> prevents a body change, restore, or delete when the document has a newer body version. It does not protect title-only or path-only changes.

Handle common errors

Create an API key

Create a separate key for each script or agent and revoke it when the tool no longer needs access.
Reviewed July 21, 2026. Maintained by the Plannotator documentation team.
Last modified on July 24, 2026