Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: Mandala Computer Usage API
version: 1.0.0
description: 'Full cloud computers your agents can see, control, and operate. The REST resource operations documented here carry an API key as a bearer token; OPTIONS is public path metadata. Keys are created in Settings, through explicit browser approval (device login), or with `POST /api-keys` by a key its holder allowed to manage keys (Settings → Credentials → API keys → the key’s menu → Allow managing keys) and whose holder is a member or owner, and are shown once. Human device login uses separate authentication bootstrap endpoints outside this bearer resource API: see https://app.mandala.computer/docs/device-login for the JSON protocol. ```
curl -H "Authorization: Bearer com_..." https://app.mandala.computer/api/v1/computers
```
A key acts as one account. A key issued against a workspace is confined to it and sees only the computers in that workspace, which is what makes a leaked CI key a bounded problem. A key may also expire, and may be limited to specific computers: a computer outside the limit answers `404`, and a route the limit rules out answers `403`. The access tokens the hosted MCP server at `https://app.mandala.computer/mcp` signs in with are not API keys: sent here directly, one is refused with `401` (`reason: "invalid"`). Use an API key. HTTP conventions: every public GET route also accepts HEAD with no response body. HEAD retains the GET role and scope checks. Ordinary finite reads compute GET metadata; file and legacy exec-PID HEAD use native metadata checks, never resume a guest or consume output. Build-event HEAD opens no stream or held stream slot. Artifact/output HEAD verifies retained metadata and file safety without reading chunks. Body-derived headers or failures detectable only by reading content may be unavailable. Range is ignored on HEAD. OPTIONS is public, bodyless path metadata. It returns only that public path’s Allow methods, including HEAD for GET; unknown, unsafe and daemon-only paths remain 404. An authenticated unsupported method on a known public path returns 405 with the same path-specific Allow, after authority and rate checks. For /computers: GET, HEAD, POST, OPTIONS. Listings: there is no single paging scheme, and most listings have none: they answer everything in one response and take no page parameters. GET /agent/threads and GET /agent/runs take limit and before and answer has_more; while has_more is true, pass the last item’s id as before for the next page. GET /operations and GET /computers/{id}/activities take an opaque cursor and answer next_cursor; GET /credits takes an integer before and answers next_before. Send next_cursor or next_before back until it is null. The activities changes_cursor is not a page cursor and is never null: it is a feed position, read on from with changes=1. GET /computers/{id}/signals is a feed rather than a listing: send the cursor it answered as since. GET /webhooks/{id}/deliveries takes limit and before too but answers a plain array with no has_more: a page shorter than limit is the last. GET /computers/{id}/files/list is capped rather than paged, and marks a cut-short directory truncated: true. Application responses carry a server-generated X-Request-ID. Finite HTTP error objects and application SSE error frames also carry request_id; OpenAI errors retain their nested error object and streaming [DONE] terminator. Caller X-Request-ID is not accepted as the correlation identity. Successful binary/SSE content is unchanged. HEAD errors carry correlation only in the header. Non-JSON, malformed, aborted, oversized (over 1 MiB), or stalled (over 2 seconds of error-body reading) upstream errors use a small correlated envelope with the original status. Infrastructure failures outside the application may have a different shape. The desktop, terminal and browser WebSocket handshakes are an exception: a refusal from the platform’s edge, before the handshake reaches the computer’s host, carries no X-Request-ID and no request_id.'
servers:
- url: https://app.mandala.computer/api/v1
security:
- bearerAuth: []
tags:
# --- truncated at 32 KB (97 KB total) ---
# Full source: https://artifacts.apis.io/mandala-computer/openapi/mandala-computer-usage-api-openapi.yml