Skip to content

API changelog

Last updated: 6 December 2026 · API v1 (beta)

Every change to the API and to the webhook payload is written here with its date, including changes that are not breaking. Deprecation notices are on this page too. The Link (rel="deprecation") in the response headers points to the matching entry.

Every entry has a type: added, changed, deprecated, removed or security. For breaking changes and notice periods, see the policy on the API page. v1 is published with the beta label right now: breaking changes are announced at least 30 days in advance. When the beta ends, a "v1 stable" entry is added to this page.

2026-12-06 Snapshot fan-out and agent comparison endpoints

Type: added · Contract version: 1.0.0

  • New endpoint POST /v1/snapshots/{id}/fanout (201, machines:create scope): opens 1–10 machines from one snapshot. The body has count, namePrefix, size and allOrNothing (default true); the answer has created, failed, requested and estimate. The machine limit, the balance and the spend budget are checked first; if not all fit and allOrNothing is on, none opens. See Persistent disk and snapshots.
  • New endpoints: POST /v1/agent-run-groups (start a comparison with 2–4 agents, 202), GET /v1/agent-run-groups, GET /v1/agent-run-groups/{id} and POST /v1/agent-run-groups/{id}/cancel. They use the existing agent_runs:read and agent_runs:write scopes; there is no new scope. See Agent runs.
  • New error code: AGENT_RUN_GROUP_NOT_FOUND (404). A refused fan-out or comparison answers 402 with PLAN_LIMIT_MACHINES, CREDIT_INSUFFICIENT or BUDGET_EXCEEDED and carries details.requested and details.remaining.

2026-12-06 Agent run endpoints

Type: added · Contract version: 1.0.0

  • New endpoints: POST /v1/agent-runs (run an agent, 202), GET /v1/agent-runs, GET /v1/agent-runs/{id}, POST /v1/agent-runs/{id}/cancel and GET /v1/agent-runs/{id}/output (Server-Sent Events). See Agent runs.
  • New API key scopes: agent_runs:read (read) and agent_runs:write (start and cancel). Existing keys do not get them on their own.
  • New webhook events: agent.run.completed and agent.run.failed (Webhooks).
  • New error codes: AGENT_RUNS_DISABLED (404), AGENT_RUN_NOT_FOUND (404), REPO_URL_INVALID (400), AGENT_RUN_SECRET_NOT_FOUND (400), AGENT_RUN_NOT_CANCELLABLE (409) and AGENT_RUN_LIMIT (409).
  • The number of subscribable events is now 19.

2026-12-05 Scheduled jobs

Type: added · Contract version: 1.0.0

  • New endpoints: GET and POST /v1/sandboxes/{id}/schedules, GET, PATCH and DELETE /v1/schedules/{id}, GET /v1/schedules/{id}/runs, POST /v1/schedules/{id}/run and POST /v1/schedules/{id}/trigger-token. The read endpoints need machines:read, the write endpoints the new schedules:write scope; writing also requires an organization owner or admin. Details: Scheduled jobs.
  • A new public endpoint POST /v1/triggers/{id}: it runs the job with the job's trigger token (Authorization: Bearer) or the HMAC signature of the body (X-Hadronbox-Signature). It takes no API key and is not in the OpenAPI document.
  • New error codes: SCHEDULE_NOT_FOUND, SCHEDULE_LIMIT, SCHEDULE_NEW_ORGANIZATION, SCHEDULE_CRON_INVALID, SCHEDULE_DISABLED, TRIGGER_UNAUTHORIZED and TRIGGER_PAYLOAD_TOO_LARGE.
  • New webhook events: schedule.run.completed and schedule.run.failed (Webhooks). The number of subscribable events is now 17.

2026-11-30 Taking snapshots and starting a machine from a snapshot is open

Type: changed · Contract version: 1.0.0

  • POST /v1/snapshots no longer returns SNAPSHOTS_UNAVAILABLE (503); the snapshot is taken, and the snapshot.created event arrives when it is ready.
  • With snapshotId in the body of POST /v1/sandboxes, the machine is started from the snapshot. The /workspace of this machine is temporary (Persistent disk and snapshots).

2026-11-29 Credit balance endpoints

Type: added · Contract version: 1.0.0

  • New endpoints: GET /v1/credits (balance, state, spend rate, estimated remaining time, lots that expire soon), GET /v1/credits/ledger (the ledger, paged with a cursor), GET /v1/credits/usage (spend per day or per machine) and GET /v1/credits/packages. All four need the existing account:read scope; there is no new scope. Amounts are integers in kuruş.
  • A credit field was added to the GET /v1/me response: { balanceKurus, state, enforced }; null if the organization has no credit account.

2026-11-29 The template catalogue is simpler, taking snapshots is temporarily off

Type: changed · Contract version: 1.0.0

  • The basic template was merged into standard (an alias; no client change is needed): templateCode: "basic", or imageTag: "basic" with goldenImage: "ai-sandbox/golden", now creates the machine from the standard template and the templateCode in the response is standard. basic does not appear in the GET /templates list; existing basic machines keep running.

  • The minimal template was removed (it was never available): templateCode: "minimal" returns 404 TEMPLATE_NOT_FOUND.

  • The names and descriptions of the standard and omarchy templates were corrected to match the real images (code and ref are the same).

  • Taking snapshots is temporarily off: POST /snapshots returns 503 SNAPSHOTS_UNAVAILABLE (see below).

  • New error code SNAPSHOTS_UNAVAILABLE (503): while taking snapshots is not open in this environment yet, POST /snapshots returns this code and does not create a record (before, it returned 202 with a pending snapshot that never progressed). Trying again does not change the result; when it is open, it is announced on this page.

2026-11-28 A separate error code for an unreachable machine host

Type: added · Contract version: 1.0.0

  • New error codes HOST_CAPACITY_EXHAUSTED (503, with Retry-After and details.retryAfterSeconds: no host has free capacity for the machine) and MACHINE_IMAGE_UNAVAILABLE (503: the selected machine image is not available in this environment yet; waiting does not help, choose another image). Before, these responses had no code field.
  • A host that is taken into maintenance or drained now also returns SANDBOX_HOST_UNAVAILABLE (before, a 503 without a code); Retry-After is 60 seconds in this case. The response does not contain the host's name or address.
  • New error code SANDBOX_HOST_UNAVAILABLE (503): returned when the machine's host cannot be reached (a connection error, a timeout, the host's own 503 response). The Retry-After header and details.retryAfterSeconds give the wait time in seconds. Before, this response had no code field. See Error codes.

Migration notes:

  • Clients that catch a 503 response by its HTTP status need no change. Wait for the Retry-After time before trying again; because the result of the request may be unknown, resend only the calls that are safe to repeat.

2026-11-26 New account limits and the kind of an organization that is about to be deleted

Type: added · Contract version: 1.0.0

  • New error code NEW_ACCOUNT_LIMIT (403): a new account (its email is not verified, or it is younger than 7 days) can run only one machine at a time; a request to create or resume a second machine is rejected with this code (per machine for a bulk resume). details: resource, limit, used, until (null: it ends when the email is verified). See Error codes.
  • On new accounts, running commands (POST /v1/sandboxes/{id}/exec) is limited to 10 per minute; when it is exceeded, the existing 429 RATE_LIMITED + Retry-After is returned and the command does not start.
  • GET /v1/me → organization.deletionKind (standalone | account | null): if the organization is about to be deleted, it tells why (an owner deleted the organization alone, or chose to have it deleted together with their own account when they are its only owner). betaInvites.enabled: false when no invitation code is given during the open-registration period.

Migration notes:

  • Clients that catch 403 / 429 responses by their HTTP status need no change; to show an explanation, you can handle the NEW_ACCOUNT_LIMIT code and the details.until field. The new fields are additions; clients that ignore unknown fields are not affected.

2026-11-26 Scoped API keys and the CI template

Type: added · Contract version: 1.0.0

  • API keys can now be limited with scopes: machines:read, machines:create, machines:manage, machines:exec, machines:delete, snapshots:read, snapshots:write, account:read. The scope each endpoint needs is written in the x-hadronbox-scope field of the OpenAPI document and on the Endpoints page.
  • The CI template: a key that carries the scopes for creating, reading, running commands in and deleting machines and for reading account information, valid for at most 90 days. See Using hadronbox in CI.
  • New error code INSUFFICIENT_SCOPE (403): returned when a scoped key calls an endpoint that is not in its scopes. details: requiredScope. See Error codes.

Migration notes:

  • Keys without scopes (including all keys created before this date) can call all endpoints as before; no change is needed.
  • Clients that catch a 403 response by its HTTP status need no change; to show the user which scope is missing, you can handle the INSUFFICIENT_SCOPE code and the details.requiredScope field.

2026-11-26 An organization that is about to be deleted and a pooled machine quota

Type: added · Contract version: 1.0.0

  • New error code ORGANIZATION_DELETION_PENDING (409): if the only owner of an organization has sent a request to delete their account and chose to have this organization deleted as well, the organization is read-only for a 30-day period. In this time, every request that makes a change (with an API key too) is rejected with this code; read requests work. details: organizationId, deletionScheduledAt. If the owner withdraws the request, the organization opens again at once. See Error codes.
  • The organization.deletionScheduledAt field in the GET /v1/me response: the deletion time if the organization is about to be deleted, otherwise null.
  • The scope and organizationUsed fields were added to the quota object in the GET /v1/sandboxes and GET /v1/usage/summary responses. On the free plan, the machine quota is counted together across all free organizations of the owner: when scope: "owner", used is this shared count and organizationUsed is only the machines of this organization. On a paid plan, scope: "organization". In the limits list of the usage summary, the scope of the machine limit that is counted together is user.

Migration notes:

  • Clients that catch requests that make changes with 409 need no change; to show an explanation to the user, you can handle the ORGANIZATION_DELETION_PENDING code.
  • The new fields are additional fields; clients that ignore unknown fields need no change.

2026-11-26 Per-key rate limit, a coded 401 and the stream heartbeat

Type: changed · Contract version: 1.0.0

  • Rate limit: requests made with an API key are now counted per key instead of per source IP address. Clients behind the same NAT do not use up each other's allowance; the X-RateLimit-* headers show that key's bucket. Requests made with an invalid key or without a key are still counted per IP. There is also a shared ceiling for all keys of an organization (per endpoint, 5 times the per-key limit); a new or rotated key does not raise this ceiling. See Rate limits.
  • New error code UNAUTHENTICATED (401): returned when there is no Authorization header or the value is not an hb_live_ key or a valid session. Before, this response had no code field. A key that starts with hb_live_ and is not recognised stays INVALID_API_KEY. See Authentication.
  • While the command output stream is open, it sends a : ping comment line every 15 seconds (SSE heartbeat). SSE parsers ignore it; clients can use a short idle timeout. See Output streaming.

Migration notes:

  • Clients that catch a 401 response by its HTTP status need no change. If any code depends on the absence of the code field, handle the UNAUTHENTICATED code too.
  • If you wrote your own SSE parser, make sure it ignores the lines that start with : (a rule of the SSE standard).

2026-11-25 v1 first release

Type: added · Contract version: 1.0.0

API v1 was published for the first time under https://api.hadronbox.tr/v1.

  • 20 endpoints: account information (GET /v1/me), machines (list, create, get, update settings, pause, resume, stop, delete, bulk pause and resume), running commands and output streaming, reading and writing files, snapshots (list, create, delete), templates and the usage summary. Details: Endpoints.
  • Authentication with an API key (Authorization: Bearer hb_live_…).
  • Rate limit headers: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset and, on a 429 response, Retry-After.
  • The catalogue of public error codes: Error codes. The new code CLI_UPGRADE_REQUIRED (426).
  • The OpenAPI document: openapi.json (opens in a new tab).
  • The version: 1 field in the webhook payload and the X-Hadronbox-Webhook-Version: 1 header; the quota.warning event; redelivery of events from the panel. Details: Webhooks.

Migration notes:

  • The old paths without a prefix (/sandboxes, /me) keep working as aliases of the /v1 paths during the transition; removing them will be announced separately, at least 6 months in advance. New code should use /v1.
  • The headers with the -ip suffix in rate limit responses (for example X-RateLimit-Limit-ip) were removed; only the header set above remains. These headers were never documented.
API changelog · hadronbox docs