Check supported API routes
Each instance lists its current API routes at:Check an API key
Set the public API origin. Load the key intoWORKSPACES_API_KEY with a secret
manager or another method that does not save it in shell history. Then call
/v1/me:
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/jsontells 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.
