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:createscope): opens 1–10 machines from one snapshot. The body hascount,namePrefix,sizeandallOrNothing(defaulttrue); the answer hascreated,failed,requestedandestimate. The machine limit, the balance and the spend budget are checked first; if not all fit andallOrNothingis 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}andPOST /v1/agent-run-groups/{id}/cancel. They use the existingagent_runs:readandagent_runs:writescopes; there is no new scope. See Agent runs. - New error code:
AGENT_RUN_GROUP_NOT_FOUND(404). A refused fan-out or comparison answers402withPLAN_LIMIT_MACHINES,CREDIT_INSUFFICIENTorBUDGET_EXCEEDEDand carriesdetails.requestedanddetails.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}/cancelandGET /v1/agent-runs/{id}/output(Server-Sent Events). See Agent runs. - New API key scopes:
agent_runs:read(read) andagent_runs:write(start and cancel). Existing keys do not get them on their own. - New webhook events:
agent.run.completedandagent.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) andAGENT_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:
GETandPOST /v1/sandboxes/{id}/schedules,GET,PATCHandDELETE /v1/schedules/{id},GET /v1/schedules/{id}/runs,POST /v1/schedules/{id}/runandPOST /v1/schedules/{id}/trigger-token. The read endpoints needmachines:read, the write endpoints the newschedules:writescope; 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_UNAUTHORIZEDandTRIGGER_PAYLOAD_TOO_LARGE. - New webhook events:
schedule.run.completedandschedule.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/snapshotsno longer returnsSNAPSHOTS_UNAVAILABLE(503); the snapshot is taken, and thesnapshot.createdevent arrives when it is ready.- With
snapshotIdin the body ofPOST /v1/sandboxes, the machine is started from the snapshot. The/workspaceof 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) andGET /v1/credits/packages. All four need the existingaccount:readscope; there is no new scope. Amounts are integers in kuruş. - A
creditfield was added to theGET /v1/meresponse:{ balanceKurus, state, enforced };nullif 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
basictemplate was merged intostandard(an alias; no client change is needed):templateCode: "basic", orimageTag: "basic"withgoldenImage: "ai-sandbox/golden", now creates the machine from thestandardtemplate and thetemplateCodein the response isstandard.basicdoes not appear in theGET /templateslist; existingbasicmachines keep running. -
The
minimaltemplate was removed (it was never available):templateCode: "minimal"returns404TEMPLATE_NOT_FOUND. -
The names and descriptions of the
standardandomarchytemplates were corrected to match the real images (codeandrefare the same). -
Taking snapshots is temporarily off:
POST /snapshotsreturns503SNAPSHOTS_UNAVAILABLE(see below). -
New error code
SNAPSHOTS_UNAVAILABLE(503): while taking snapshots is not open in this environment yet,POST /snapshotsreturns this code and does not create a record (before, it returned202with apendingsnapshot 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, withRetry-Afteranddetails.retryAfterSeconds: no host has free capacity for the machine) andMACHINE_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 nocodefield. - A host that is taken into maintenance or drained now also returns
SANDBOX_HOST_UNAVAILABLE(before, a503without a code);Retry-Afteris 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 own503response). TheRetry-Afterheader anddetails.retryAfterSecondsgive the wait time in seconds. Before, this response had nocodefield. See Error codes.
Migration notes:
- Clients that catch a
503response by its HTTP status need no change. Wait for theRetry-Aftertime 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 existing429 RATE_LIMITED+Retry-Afteris 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:falsewhen no invitation code is given during the open-registration period.
Migration notes:
- Clients that catch
403/429responses by their HTTP status need no change; to show an explanation, you can handle theNEW_ACCOUNT_LIMITcode and thedetails.untilfield. 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 thex-hadronbox-scopefield 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
403response by its HTTP status need no change; to show the user which scope is missing, you can handle theINSUFFICIENT_SCOPEcode and thedetails.requiredScopefield.
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.deletionScheduledAtfield in theGET /v1/meresponse: the deletion time if the organization is about to be deleted, otherwisenull. - The
scopeandorganizationUsedfields were added to thequotaobject in theGET /v1/sandboxesandGET /v1/usage/summaryresponses. On the free plan, the machine quota is counted together across all free organizations of the owner: whenscope: "owner",usedis this shared count andorganizationUsedis only the machines of this organization. On a paid plan,scope: "organization". In thelimitslist of the usage summary, thescopeof the machine limit that is counted together isuser.
Migration notes:
- Clients that catch requests that make changes with
409need no change; to show an explanation to the user, you can handle theORGANIZATION_DELETION_PENDINGcode. - 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 noAuthorizationheader or the value is not anhb_live_key or a valid session. Before, this response had nocodefield. A key that starts withhb_live_and is not recognised staysINVALID_API_KEY. See Authentication. - While the command output stream is open, it sends a
: pingcomment 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
401response by its HTTP status need no change. If any code depends on the absence of thecodefield, handle theUNAUTHENTICATEDcode 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-Resetand, on a429response,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: 1field in the webhook payload and theX-Hadronbox-Webhook-Version: 1header; thequota.warningevent; redelivery of events from the panel. Details: Webhooks.
Migration notes:
- The old paths without a prefix (
/sandboxes,/me) keep working as aliases of the/v1paths during the transition; removing them will be announced separately, at least 6 months in advance. New code should use/v1. - The headers with the
-ipsuffix in rate limit responses (for exampleX-RateLimit-Limit-ip) were removed; only the header set above remains. These headers were never documented.