Account

Effective plan ceilings and advisory remaining quota.

Base URL https://app.mandala.computer/api/v1. Every request carries an API key, and failures take the shape under Errors.

GET/account

Read account quotaviewer+

Read the effective plan, account pool ceilings, per-computer maxima and current consumption before choosing a create or resize. Viewer or stronger; workspace-scoped keys receive whole-account aggregates without resource, workspace, member or billing identities. An authorized holder may read a suspended account to understand its quota. Suspended holders and revoked credentials remain refused.

READ complete BEFORE USING NUMBERS. An incomplete computer or snapshot collection returns 200 with every usage and remaining field for that group null. The other group and verified caps remain usable. Complete empty inventories are real zero; zero ceilings on a no-plan account do not erase retained usage. Overages remain visible in usage even though remaining is clamped to zero.

The disk pool is shared by computers’ configured disks and the template builds the account keeps: usage.kept_build_gb reports the builds separately (null while their history is unread), and configured_disk_gb in usage and remaining leaves them out.

Snapshot headroom is against indexed stored bytes, including pending/deleting entries; a snapshot held by two hosts during a handover counts once. Capture placeholders have zero indexed bytes; private in-flight capture reservations are not exposed. This is not an available reservation for a new capture.

Advisory and uncached: concurrent changes can make the observation stale immediately, and observed_at is no consistency token. Creates count the effective template or snapshot disk floor. Resizes replace configured CPU/disk and allow reductions or unchanged overages after downgrade. A stopped resize consumes no running RAM; later start checks active or reserved count, CPU and RAM separately. Host fit and move consent remain separate. Existing mutation admission and 402 messages are unchanged. This read never stops, starts or resizes a computer.

Admission counts two things this read leaves out: creates and clones whose outcome was never heard, and the reservations held for seeds your own templates boot. See advisory on the response.

Set MANDALA_API_KEY to your bearer key. MANDALA_BASE_URL, when set, is the full API base including /api/v1. Replace the illustrative resource IDs with yours. These pinned 0.27.0 SDK and direct HTTP examples do not read saved device-login credentials.

curl

base_url="${MANDALA_BASE_URL:-}"
if [ -z "$base_url" ]; then base_url='https://app.mandala.computer/api/v1'; fi
curl --fail-with-body "${base_url%/}"'/account' \
  -H "Authorization: Bearer $MANDALA_API_KEY"

Python — Mandala SDK 0.27.0

# Python 3.10+: pip install mandala-computer==0.27.0
import os
from mandala_computer import Client

with Client(api_key=os.environ["MANDALA_API_KEY"], base_url=os.environ.get("MANDALA_BASE_URL") or "https://app.mandala.computer/api/v1") as client:
    result = client.account.read()
    print(result)

TypeScript — Mandala SDK 0.27.0

// Node.js 22+: npm install mandala-computer@0.27.0
import { Client } from "mandala-computer";

const apiKey = process.env.MANDALA_API_KEY;
if (!apiKey) throw new Error("Set MANDALA_API_KEY");
const client = new Client({apiKey, baseUrl: process.env.MANDALA_BASE_URL || "https://app.mandala.computer/api/v1"});
const result = await client.account.read();
console.log(JSON.stringify(result, null, 2));

200 Illustrative successful response.

HTTP 200
Content-Type: application/json
X-Request-ID: 3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17

{
  "scope": "account",
  "advisory": true,
  "observed_at": "2026-09-16T12:00:00.000Z",
  "plan": {
    "id": "solo",
    "label": "Solo"
  },
  "limits": {
    "max_computers": 4,
    "vcpu_pool": 4,
    "ram_pool_mb": 8192,
    "disk_pool_gb": 80,
    "snapshot_storage_bytes": 171798691840
  },
  "per_computer": {
    "max_vcpu": 4,
    "max_ram_mb": 8192,
    "max_disk_gb": 40
  },
  "capabilities": {
    "windows": false,
    "macos": false
  },
  "complete": {
    "computers": true,
    "snapshots": true
  },
  "usage": {
    "kept_computers": 1,
    "configured_vcpu": 2,
    "configured_disk_gb": 20,
    "running_or_reserved_computers": 1,
    "running_or_reserved_vcpu": 2,
    "running_or_reserved_ram_mb": 2048,
    "snapshot_storage_bytes": 0,
    "kept_build_gb": 20
  },
  "remaining": {
    "kept_computers": 3,
    "configured_vcpu": 2,
    "configured_disk_gb": 60,
    "running_or_reserved_ram_mb": 6144,
    "snapshot_storage_bytes": 171798691840
  }
}

200 Successful quota observation with unavailable computer totals.

HTTP 200
Content-Type: application/json
X-Request-ID: 3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17

{
  "scope": "account",
  "advisory": true,
  "observed_at": "2026-09-16T12:00:00.000Z",
  "plan": {
    "id": "solo",
    "label": "Solo"
  },
  "limits": {
    "max_computers": 4,
    "vcpu_pool": 4,
    "ram_pool_mb": 8192,
    "disk_pool_gb": 80,
    "snapshot_storage_bytes": 171798691840
  },
  "per_computer": {
    "max_vcpu": 4,
    "max_ram_mb": 8192,
    "max_disk_gb": 40
  },
  "capabilities": {
    "windows": false,
    "macos": false
  },
  "complete": {
    "computers": false,
    "snapshots": true
  },
  "usage": {
    "kept_computers": null,
    "configured_vcpu": null,
    "configured_disk_gb": null,
    "running_or_reserved_computers": null,
    "running_or_reserved_vcpu": null,
    "running_or_reserved_ram_mb": null,
    "snapshot_storage_bytes": 0,
    "kept_build_gb": null
  },
  "remaining": {
    "kept_computers": null,
    "configured_vcpu": null,
    "configured_disk_gb": null,
    "running_or_reserved_ram_mb": null,
    "snapshot_storage_bytes": 171798691840
  }
}

401 Platform bearer credential missing.

HTTP 401
Content-Type: application/json
X-Request-ID: 3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17
WWW-Authenticate: Bearer

{
  "error": "Authentication required",
  "reason": "missing",
  "request_id": "3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17"
}

401 Platform bearer credential invalid.

HTTP 401
Content-Type: application/json
X-Request-ID: 3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17
WWW-Authenticate: Bearer error="invalid_token"

{
  "error": "invalid API key",
  "reason": "invalid",
  "request_id": "3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17"
}

401 Platform bearer credential revoked.

HTTP 401
Content-Type: application/json
X-Request-ID: 3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17
WWW-Authenticate: Bearer error="invalid_token"

{
  "error": "API key revoked",
  "reason": "revoked",
  "request_id": "3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17"
}

405 Unsupported method on this public path; HEAD returns these headers without a body.

HTTP 405
Content-Type: application/json
X-Request-ID: 3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17
Allow: GET, HEAD, OPTIONS

{
  "error": "method not allowed",
  "request_id": "3f2c9a1e-7b4d-4e8a-9c61-0d5f2b8e4a17"
}

Response

Verified plan ceilings and independently complete or unknown quota totals.

Response fields

scopealways"account"

Whole-account aggregates, including for workspace-scoped viewers.

advisoryalwaystrue

An observation, never an admission guarantee or reservation. Admission — of a create or clone, a start, restart, restore or resume, a resize, a move, a never-suspend pin or a template build — also counts two things left out here: a create or clone that reached a host whose answer was lost, or was a 5xx that cannot rule out a computer was built (see POST /computers), and a reservation of running vCPU and RAM for each seed one of your own templates boots for fast launches. The seed has 30 seconds to start, but its reservation stays charged until the platform confirms both that the seed is gone and that its permission to start has run out. While its host cannot be asked — unreachable, halted, removed or registered again — it stays charged. Either can make a 402 name more than these numbers show.

observed_atalwaysstring

UTC collection completion time; not a consistency token.

planalwaysobject
plan.idalwaysstring

Effective plan catalogue identifier.

plan.labelalwaysstring

Effective plan label.

limitsalwaysobject
limits.max_computersalwaysinteger

Maximum kept computers; existing starts also check active or reserved count.

limits.vcpu_poolalwaysinteger

Account vCPU pool ceiling.

limits.ram_pool_mbalwaysinteger

Running or reserved guest RAM ceiling, MB.

limits.disk_pool_gbalwaysinteger

Configured disk pool ceiling, GB. Shared by computers’ configured disks and the template builds the account keeps.

limits.snapshot_storage_bytesalwaysinteger

Snapshot storage ceiling, exact bytes (plan GB multiplied by 1024 cubed).

per_computeralwaysobject
per_computer.max_vcpualwaysinteger

Per-computer vCPU maximum.

per_computer.max_ram_mbalwaysinteger

Per-computer RAM maximum, MB.

per_computer.max_disk_gbalwaysinteger

Per-computer disk maximum, GB.

capabilitiesalwaysobject
capabilities.windowsalwaysboolean

Whether this account may create Windows computers: currently only by an administrator’s grant to the account; no plan includes it.

capabilities.macosalwaysboolean

Whether this account may launch macOS computers. Granted per account on request, never by a plan.

completealwaysobject
complete.computersalwaysboolean

Every relevant computer inventory answered with valid numbers.

complete.snapshotsalwaysboolean

Every relevant snapshot inventory answered with valid indexed byte sizes.

usagealwaysobject
usage.kept_computersalwaysinteger or null

All kept computers, including stopped, suspended, building and deletion states still in inventory. Null when computers are incomplete.

usage.configured_vcpualwaysinteger or null

Sum of configured vCPU over all kept computers, regardless of power state. Null when computers are incomplete.

usage.configured_disk_gbalwaysinteger or null

Sum of configured disk GB; not filesystem occupancy. Null when computers are incomplete.

usage.running_or_reserved_computersalwaysinteger or null

Computers with positive running or reserved RAM, including pending starts. Null when computers are incomplete.

usage.running_or_reserved_vcpualwaysinteger or null

Configured vCPU of computers with positive running or reserved RAM; starts check this separately from configured vCPU. Null when computers are incomplete.

usage.running_or_reserved_ram_mbalwaysinteger or null

Guest RAM in use or reserved for a pending start, MB. Explicit zero overrides power state; legacy unknown state conservatively counts configured RAM. Null when computers are incomplete.

usage.snapshot_storage_bytesalwaysinteger or null

Indexed stored bytes, including pending/deleting snapshots. A snapshot held by two hosts during a handover counts once. Capture placeholders contribute explicit zero indexed bytes; private in-flight capture reservations are not exposed. Null when snapshots are incomplete.

usage.kept_build_gbalwaysinteger or null

Nominal GB of the template builds the account keeps (each at its template’s disk_gb), including builds still running. They share the disk pool with configured_disk_gb, which leaves them out: a create or a disk resize is checked against configured_disk_gb + kept_build_gb. Null while the account’s build history could not be read from every hypervisor, when a create or disk growth can be refused with 503 until it is. Independent of complete.

remainingalwaysobject
remaining.kept_computersalwaysinteger or null

Maximum minus kept count, clamped at zero. Null when computers are incomplete.

remaining.configured_vcpualwaysinteger or null

vCPU ceiling minus configured vCPU, clamped at zero. Not a start allowance after downgrade. Null when computers are incomplete.

remaining.configured_disk_gbalwaysinteger or null

Disk ceiling minus configured disk, GB, clamped at zero. Kept template builds share the pool and are not subtracted here; subtract usage.kept_build_gb too for the room a create or disk resize has. Null when computers are incomplete.

remaining.running_or_reserved_ram_mbalwaysinteger or null

RAM ceiling minus running or reserved RAM, MB, clamped at zero. Null when computers are incomplete.

remaining.snapshot_storage_bytesalwaysinteger or null

Headroom against indexed stored bytes, clamped at zero; not an available capture reservation. Null when snapshots are incomplete.

Failures

403

A suspended account may still make this read: a 403 here is about the credential or the person holding it, never the account’s suspension.