HTTP API
Sandboxes
14 routes your API key can call. Each says who may call it; every example assumes KEY is your API key. What only the dashboard does (signing in, making API keys, connecting accounts) isn't listed here: it's in the full OpenAPI spec.
/v1/workspaces/{wid}/sandboxesOne page of the workspace's sandboxes, newest first
People and API keys
Running sandboxes on the page are read at their provider first (2 s at most), so one its provider ended shows stopped or lost; a check that takes longer shows on the next read.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
status? | Inquery | Type"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost" | Aboutlost: ended by its provider, not by Annex |
page? | Inquery | Typeinteger | AboutA missing or invalid page is 1 |
perPage? | Inquery | Typeinteger | AboutHeld between 1 and 100 |
Answer · 200
sandboxesSandbox[]requiredidstringtaskstringThe task it works on (
tsk_…); a resumed sandbox shares its checkpoint'sproviderstringconnectionstring | nullThe connected account it runs on (
con_…); null for a demo providerregionstringroutestringvcpuintegerAs asked for
memory_gibintegerAs asked for
machineobject | nullWhat it really runs on. A provider with fixed sizes rounds a request up to its smallest that fits: 1 vCPU / 1 GiB on Agent 37 runs on 2 vCPU / 4 GiB, and is priced so (SuperHQ and Sprites bill by use, so they are priced for the size asked). null on sandboxes from before it was recorded.
pause_resumebooleanAlways true: this sandbox can pause and resume with the same identity, account and files
pause_mode"" | "suspended" | "frozen" | "access_hold"Empty while not paused; suspended releases compute, frozen stops a server workload but holds its allocation,
access_holdfences Annex access while the provider workload continuespause_billing_continuesbooleanWhile paused, whether provider allocation/cost, Annex lifetime and the running slot continue
paused_msintegerNon-billable suspended milliseconds excluded from cost estimates and lifetime; frozen and access-hold time are not included
status"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"lost: its provider ended it while Annex was using it, without Annex stopping it
created_atstringstopped_atstring | nullFor a lost sandbox, when Annex noticed: its cost is an upper bound
startup_msintegerrate_per_hour_microsintegerMicro-dollars an hour, fixed when it started: 165600 is $0.1656
cost_microsintegerrate × whole milliseconds from
created_attostopped_at(or now), rounded once to the micro-dollarcurrency"USD"failed_overstring[]Providers tried and found unavailable first
secret_namesstring[]Names of the secret variables it started with; never values
secret_groupsSecretRef[]The groups they came from
secret_overriddenstring[]Names a later group set again
oom_killsintegerProcesses the out-of-memory killer ended in it, as Annex last measured
auto_checkpoint_minutesinteger0 is off
auto_resumebooleanlifetime_minutesintegerAnnex stops it this long after it started; 0 on sandboxes from before 2026-11-18 (none)
idle_minutesintegerAnnex stops it after this long unused; 0 is off
replaced_bystring | nullLost only: the sandbox that carried its task on
replacement_resumestring | nullLost only: the resume starting that sandbox
server_offline_sincestring | nullRunning on one of your own servers that has stopped answering: since when. Null otherwise.
server_decides_atstring | nullWith
server_offline_since: when Annex marks it lost (and carries it on from its newest checkpoint) or stopped, if nobody was using it, should the server not be back.
metaMetarequiredpageintegertotalintegerItems matching, across all pages
pageCountintegerceil(total / perPage)
perPageinteger
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxesStart a sandbox on the best connected provider for the route
People and API keys
Starting a sandbox spends money on the user's provider account, so send an Idempotency-Key and retry with the same one. Within 24 hours, the same key with the same body returns the first sandbox with 200 and Idempotent-Replayed: true, and starts nothing. The same key with a different body is 409, as is a retry while the first request is still starting it. Keys are per workspace. A request that fails frees its key. A provider that refuses the request in a way it would refuse again is 422 provider_refused, naming the provider and its own error code; nothing fails over. A refusal that is the account's own (its plan, its key, a size it can't choose) fails over, and is 503 provider_unavailable, with the reason, only when no provider is left. A machine a provider started that Annex couldn't stop again is also 503 provider_unavailable, naming the provider so you can stop it there; nothing fails over then. A start past the workspace's or the API key's limit on sandboxes running at once, its monthly spend limit, its per-sandbox CPU or memory ceiling, or its operating hours is 409 limit_reached, naming the policy and where to change it; 503 unavailable when Annex can't check its limits (it starts nothing then). An account at its own limit (the one you set on the connection, or the provider's) is skipped like an unavailable provider.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
Idempotency-Key? | Inheader | Typestring | AboutAny unique string, e.g. a UUID |
Annex-Use-Credit? | Inheader | Type"credit" | "byok" | "true" | "false" | AboutHow it is paid for, as the body's use_credit: credit, Annex credit only; byok, your own connected accounts only |
Body
routestringLeft out: the workspace's
default_route(422 pointing at Settings when there is none; 422 when the workspace locked its route and this names another). "cheapest", "fastest" (the account and region that start a sandbox quickest, by the start-up times Annex measured on your accounts over 7 days once it saw 10 starts, else those it measured for that provider across Annex, else the provider's own figure; start-ups within 15% of each other count as a tie, which the cheaper one wins; with no region given, the sandbox starts in a region Annex measured quicker, else where the provider chooses. Start-up is measured from Annex's servers in Europe, so a provider far from Europe can look a little slower than it would be near it), or a provider nameregionstringOne of
us-east,us-west,eu-west,eu-central,ap-southeast,ap-northeast,sa-east,us-california,us-chicago,us-dallas,ca-toronto,eu-london,eu-paris,eu-amsterdam,eu-stockholm,eu-helsinki,eu-milan,eu-madrid,me-dubai,af-johannesburg,ap-mumbai,ap-hongkong,ap-seoul,ap-sydney, or auto (Cloudflare's: it places the container itself) (422validation_errorotherwise); left out for anywhere. A region nothing on the route serves is 422no_provider, saying sovcpuintegerVirtual CPUs; 2 if left out
memory_gibintegerMemory in GiB; 4 if left out
recipeRecipeHow to rebuild the environment on resume; checkpoints keep the sandbox's unless given their own
imagestring | nullKept, not yet used: no provider starts from an image through Annex yet
setupstring[]Run in order on resume before the files come back, e.g. "apt-get install -y ffmpeg"
startstring | nullStarted after the files are back and left running, e.g. "npm run dev"
taskstringA task of this workspace to join, so its sandboxes share queues and a key-value store (404 for any other); a new task if left out
spotbooleanAsk for spare capacity the provider may take back at two minutes' notice. Only AWS has it, and falls back to a normal machine when there is none; other providers ignore it. The rate shown is the normal price, an upper bound
secret_groupsstring[]Secret groups (names or ids) whose variables go into the sandbox's environment at start; if two set one name, the later group wins (listed in
secret_overridden). An API key may name only groups it was granted (422 otherwise, the same as an unknown group). Left out when joining a task, the task's groups are used; a new task remembers the groups it started with.auto_checkpoint_minutesAutoCheckpointMinutesSave a checkpoint automatically this many minutes after something changed: 0 is off, else 5 to 60 (1 to 4 are 422). Default 30 for a new task, 0 when joining one. The first comes about 5 minutes after the first change (later when Annex is busy), so a short-lived sandbox has one to carry on from. Each uses some of the sandbox's time and sends only new files out; the newest 3 are kept.
auto_resumeAutoResumeIf its provider ends the sandbox while it is in use, start a new one from its newest checkpoint on another account (the same provider for a named route). Default true for a new task, false when joining one. The new sandbox is billed like any other; running programs and work since the last checkpoint are never recovered.
lifetime_minutesLifetimeMinutesAnnex stops it (an ordinary stop, with a journal line) after this many billable minutes: 1 to 10080 (7 days); 1440 if left out at create. Suspended pauses are excluded; frozen and access-hold pauses count.
idle_minutesIdleMinutesAnnex stops it after this many minutes with no command running and no use through Annex: 0 is off, up to 1440; 60 if left out at create
regionsAllowRegionsOnly these regions (Annex region codes, or areas: us,
americas, eu, europe,apac, me, af, each any region in it, including ones added later), within the workspace'sallowed_regions(422validation_errornaming the workspace's list otherwise). An account serving several is asked for the first listed; an account that says nowhere where it runs is left out. A region given too must be one of them. Left out: whatever the workspace allows. Nothing connected left: 422no_providernaming the lists. A resume left without them keeps the checkpointed sandbox's, and carrying a lost sandbox on keeps its own.providersAllowProvidersOnly these providers (such as selfhost, daytona), within the workspace's
allowed_providers. Left out, whatever the workspace allows.ignoreIgnoreProviders never to use for this one, added to the workspace's
denied_providers(never removed from it). It wins over route, order and providers.orderOrderProviders to try first, in this order; the rest follow as the route ranks them. Left out, the workspace's
default_order. 422 while the workspace's route is locked.fallbacksbooleanfalse: try only the first account that fits, with no failover (the error says the others weren't tried); true or left out: move on when one can't start it. 422 while the workspace's route is locked
annex_accounts"after" | "first" | "only" | "off"after (the default): Annex's own provider accounts, paid from Annex credit, are tried behind the workspace's own accounts; first: before them; only: none of the workspace's own; off: never. Left out: the workspace's choice. A request can't turn them on where the workspace turned them off, or while Annex credit isn't turned on for the workspace (422)
use_creditbooleanHow the sandbox is paid for: true, Annex credit only (Annex's own provider accounts); false, the workspace's own connected accounts only (bring your own keys). Left out: false, so credit is spent only when a start asks for it. Also taken as the Annex-Use-Credit header (credit or byok); the two, or this and a different
annex_accounts, must agree (422). Annex credit is off for every workspace until EVERSONDER turns it on: true is a 422 until thenisolation"container" | "gvisor" | "vm"[]How each sandbox may be walled off from its machine; providers whose isolation Annex doesn't know are left out. Left out for any.
requires"amd64" | "arm64" | "long_lifetime" | "pause_resume"[]What the provider must offer: its processor (amd64, arm64), or
long_lifetime(no cap of its own shorter thanlifetime_minutes).pause_resumeis accepted for compatibility and every provider meets it. A provider Annex has no fact for is left out. Unknown names are 422.
Answer · 200
sandboxSandboxrequiredidstringtaskstringThe task it works on (
tsk_…); a resumed sandbox shares its checkpoint'sproviderstringconnectionstring | nullThe connected account it runs on (
con_…); null for a demo providerregionstringroutestringvcpuintegerAs asked for
memory_gibintegerAs asked for
machineobject | nullWhat it really runs on. A provider with fixed sizes rounds a request up to its smallest that fits: 1 vCPU / 1 GiB on Agent 37 runs on 2 vCPU / 4 GiB, and is priced so (SuperHQ and Sprites bill by use, so they are priced for the size asked). null on sandboxes from before it was recorded.
pause_resumebooleanAlways true: this sandbox can pause and resume with the same identity, account and files
pause_mode"" | "suspended" | "frozen" | "access_hold"Empty while not paused; suspended releases compute, frozen stops a server workload but holds its allocation,
access_holdfences Annex access while the provider workload continuespause_billing_continuesbooleanWhile paused, whether provider allocation/cost, Annex lifetime and the running slot continue
paused_msintegerNon-billable suspended milliseconds excluded from cost estimates and lifetime; frozen and access-hold time are not included
status"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"lost: its provider ended it while Annex was using it, without Annex stopping it
created_atstringstopped_atstring | nullFor a lost sandbox, when Annex noticed: its cost is an upper bound
startup_msintegerrate_per_hour_microsintegerMicro-dollars an hour, fixed when it started: 165600 is $0.1656
cost_microsintegerrate × whole milliseconds from
created_attostopped_at(or now), rounded once to the micro-dollarcurrency"USD"failed_overstring[]Providers tried and found unavailable first
secret_namesstring[]Names of the secret variables it started with; never values
secret_groupsSecretRef[]The groups they came from
secret_overriddenstring[]Names a later group set again
oom_killsintegerProcesses the out-of-memory killer ended in it, as Annex last measured
auto_checkpoint_minutesinteger0 is off
auto_resumebooleanlifetime_minutesintegerAnnex stops it this long after it started; 0 on sandboxes from before 2026-11-18 (none)
idle_minutesintegerAnnex stops it after this long unused; 0 is off
replaced_bystring | nullLost only: the sandbox that carried its task on
replacement_resumestring | nullLost only: the resume starting that sandbox
server_offline_sincestring | nullRunning on one of your own servers that has stopped answering: since when. Null otherwise.
server_decides_atstring | nullWith
server_offline_since: when Annex marks it lost (and carries it on from its newest checkpoint) or stopped, if nobody was using it, should the server not be back.
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes' \
-H 'Authorization: Bearer anx_live_…' \
-H 'Content-Type: application/json' \
-d '{"route":"…","region":"…"}'/v1/workspaces/{wid}/sandboxes/{id}People and API keys
A running sandbox is read at its provider first when its last read is over 10 s old (2 s at most); when the provider says it ended, Annex reads it again 2 s later before answering, so this can take about 6 s (a little more when it starts carrying the sandbox on).
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Answer · 200
sandboxobjectrequiredidstringtaskstringThe task it works on (
tsk_…); a resumed sandbox shares its checkpoint'sproviderstringconnectionstring | nullThe connected account it runs on (
con_…); null for a demo providerregionstringroutestringvcpuintegerAs asked for
memory_gibintegerAs asked for
machineobject | nullWhat it really runs on. A provider with fixed sizes rounds a request up to its smallest that fits: 1 vCPU / 1 GiB on Agent 37 runs on 2 vCPU / 4 GiB, and is priced so (SuperHQ and Sprites bill by use, so they are priced for the size asked). null on sandboxes from before it was recorded.
pause_resumebooleanAlways true: this sandbox can pause and resume with the same identity, account and files
pause_mode"" | "suspended" | "frozen" | "access_hold"Empty while not paused; suspended releases compute, frozen stops a server workload but holds its allocation,
access_holdfences Annex access while the provider workload continuespause_billing_continuesbooleanWhile paused, whether provider allocation/cost, Annex lifetime and the running slot continue
paused_msintegerNon-billable suspended milliseconds excluded from cost estimates and lifetime; frozen and access-hold time are not included
status"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"lost: its provider ended it while Annex was using it, without Annex stopping it
created_atstringstopped_atstring | nullFor a lost sandbox, when Annex noticed: its cost is an upper bound
startup_msintegerrate_per_hour_microsintegerMicro-dollars an hour, fixed when it started: 165600 is $0.1656
cost_microsintegerrate × whole milliseconds from
created_attostopped_at(or now), rounded once to the micro-dollarcurrency"USD"failed_overstring[]Providers tried and found unavailable first
secret_namesstring[]Names of the secret variables it started with; never values
secret_groupsSecretRef[]The groups they came from
secret_overriddenstring[]Names a later group set again
oom_killsintegerProcesses the out-of-memory killer ended in it, as Annex last measured
auto_checkpoint_minutesinteger0 is off
auto_resumebooleanlifetime_minutesintegerAnnex stops it this long after it started; 0 on sandboxes from before 2026-11-18 (none)
idle_minutesintegerAnnex stops it after this long unused; 0 is off
replaced_bystring | nullLost only: the sandbox that carried its task on
replacement_resumestring | nullLost only: the resume starting that sandbox
server_offline_sincestring | nullRunning on one of your own servers that has stopped answering: since when. Null otherwise.
server_decides_atstring | nullWith
server_offline_since: when Annex marks it lost (and carries it on from its newest checkpoint) or stopped, if nobody was using it, should the server not be back.attemptsobject[]In the order tried; the last one started it
secrets_changedbooleanA group it started with changed or was deleted since; it keeps the old values until restarted or resumed
runaway"out_of_memory" | "restarted" | "cpu" | "memory" | nullWhy it is running away now: killing processes for lack of memory, or CPU or memory at 95% or more for 15 minutes. Annex never stops it for this. null when it isn't, or wasn't measured in the last 3 minutes
oom_counter"" | "cgroup" | "cgroup_v1" | "machine" | "unavailable"Where its out-of-memory kills are counted; unavailable: it exposes none, so
oom_kills0 means unknown. Empty before any readingrestarted_atstring | nullWhen Annex last saw it restart
measured_atstring | nullIts newest reading; runaway null with an old
measured_atmeans not measured, not finemeasure_failedMeasureFailedAnnex's last try at measuring the sandbox, when it failed; null when the last try worked or before any
livenessobject | nullWhat Annex knows of whether it still runs at its provider; null unless running
routingRoutingWhy a sandbox started where it did; null on sandboxes from before.
isolationstring[]The isolation kinds it was asked to start with; empty for any
requiresstring[]The capabilities it was asked to require
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}Change a running or paused sandbox's automatic checkpoints, carrying on if lost, lifetime and idle limit
People and API keys
Members and API keys; a task token gets 403. A setting left out is kept. 409 when the sandbox isn't running or paused (sandbox_lost for a lost one), 422 for a bad value.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Body
auto_checkpoint_minutesAutoCheckpointMinutesSave a checkpoint automatically this many minutes after something changed: 0 is off, else 5 to 60 (1 to 4 are 422). Default 30 for a new task, 0 when joining one. The first comes about 5 minutes after the first change (later when Annex is busy), so a short-lived sandbox has one to carry on from. Each uses some of the sandbox's time and sends only new files out; the newest 3 are kept.
auto_resumeAutoResumeIf its provider ends the sandbox while it is in use, start a new one from its newest checkpoint on another account (the same provider for a named route). Default true for a new task, false when joining one. The new sandbox is billed like any other; running programs and work since the last checkpoint are never recovered.
lifetime_minutesLifetimeMinutesAnnex stops it (an ordinary stop, with a journal line) after this many billable minutes: 1 to 10080 (7 days); 1440 if left out at create. Suspended pauses are excluded; frozen and access-hold pauses count.
idle_minutesIdleMinutesAnnex stops it after this many minutes with no command running and no use through Annex: 0 is off, up to 1440; 60 if left out at create
Answer · 200
sandboxSandboxrequiredidstringtaskstringThe task it works on (
tsk_…); a resumed sandbox shares its checkpoint'sproviderstringconnectionstring | nullThe connected account it runs on (
con_…); null for a demo providerregionstringroutestringvcpuintegerAs asked for
memory_gibintegerAs asked for
machineobject | nullWhat it really runs on. A provider with fixed sizes rounds a request up to its smallest that fits: 1 vCPU / 1 GiB on Agent 37 runs on 2 vCPU / 4 GiB, and is priced so (SuperHQ and Sprites bill by use, so they are priced for the size asked). null on sandboxes from before it was recorded.
pause_resumebooleanAlways true: this sandbox can pause and resume with the same identity, account and files
pause_mode"" | "suspended" | "frozen" | "access_hold"Empty while not paused; suspended releases compute, frozen stops a server workload but holds its allocation,
access_holdfences Annex access while the provider workload continuespause_billing_continuesbooleanWhile paused, whether provider allocation/cost, Annex lifetime and the running slot continue
paused_msintegerNon-billable suspended milliseconds excluded from cost estimates and lifetime; frozen and access-hold time are not included
status"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"lost: its provider ended it while Annex was using it, without Annex stopping it
created_atstringstopped_atstring | nullFor a lost sandbox, when Annex noticed: its cost is an upper bound
startup_msintegerrate_per_hour_microsintegerMicro-dollars an hour, fixed when it started: 165600 is $0.1656
cost_microsintegerrate × whole milliseconds from
created_attostopped_at(or now), rounded once to the micro-dollarcurrency"USD"failed_overstring[]Providers tried and found unavailable first
secret_namesstring[]Names of the secret variables it started with; never values
secret_groupsSecretRef[]The groups they came from
secret_overriddenstring[]Names a later group set again
oom_killsintegerProcesses the out-of-memory killer ended in it, as Annex last measured
auto_checkpoint_minutesinteger0 is off
auto_resumebooleanlifetime_minutesintegerAnnex stops it this long after it started; 0 on sandboxes from before 2026-11-18 (none)
idle_minutesintegerAnnex stops it after this long unused; 0 is off
replaced_bystring | nullLost only: the sandbox that carried its task on
replacement_resumestring | nullLost only: the resume starting that sandbox
server_offline_sincestring | nullRunning on one of your own servers that has stopped answering: since when. Null otherwise.
server_decides_atstring | nullWith
server_offline_since: when Annex marks it lost (and carries it on from its newest checkpoint) or stopped, if nobody was using it, should the server not be back.
curl -X PATCH 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id' \
-H 'Authorization: Bearer anx_live_…' \
-H 'Content-Type: application/json' \
-d '{"auto_checkpoint_minutes":0,"auto_resume":true}'/v1/workspaces/{wid}/sandboxes/{id}/pausePause the same sandbox and preserve its files
People and API keys
Available for every sandbox. Keeps the sandbox ID, provider handle, account, files and original secrets. No replacement or failover. Commands/files while paused return 409 sandbox_paused. Repeating an already completed operation returns 200 without another provider call. Close output streams before pausing. Unconfirmed calls leave pausing/resuming: retry the same operation, or explicitly pause/resume/stop. pause_mode reports suspended (compute released), frozen (a server workload frozen but its allocation held), or access_hold (no native suspension, so Annex fences access). pause_billing_continues says whether provider billing, Annex's lifetime and running limits continue. Resume checks workspace/key limits again only after a non-billable suspension. Stop deletes the retained sandbox. Provider deletion outside Annex cannot be undone. Existing task tokens still expire after 24 hours without refreshing.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Answer · 200
sandboxSandboxrequiredidstringtaskstringThe task it works on (
tsk_…); a resumed sandbox shares its checkpoint'sproviderstringconnectionstring | nullThe connected account it runs on (
con_…); null for a demo providerregionstringroutestringvcpuintegerAs asked for
memory_gibintegerAs asked for
machineobject | nullWhat it really runs on. A provider with fixed sizes rounds a request up to its smallest that fits: 1 vCPU / 1 GiB on Agent 37 runs on 2 vCPU / 4 GiB, and is priced so (SuperHQ and Sprites bill by use, so they are priced for the size asked). null on sandboxes from before it was recorded.
pause_resumebooleanAlways true: this sandbox can pause and resume with the same identity, account and files
pause_mode"" | "suspended" | "frozen" | "access_hold"Empty while not paused; suspended releases compute, frozen stops a server workload but holds its allocation,
access_holdfences Annex access while the provider workload continuespause_billing_continuesbooleanWhile paused, whether provider allocation/cost, Annex lifetime and the running slot continue
paused_msintegerNon-billable suspended milliseconds excluded from cost estimates and lifetime; frozen and access-hold time are not included
status"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"lost: its provider ended it while Annex was using it, without Annex stopping it
created_atstringstopped_atstring | nullFor a lost sandbox, when Annex noticed: its cost is an upper bound
startup_msintegerrate_per_hour_microsintegerMicro-dollars an hour, fixed when it started: 165600 is $0.1656
cost_microsintegerrate × whole milliseconds from
created_attostopped_at(or now), rounded once to the micro-dollarcurrency"USD"failed_overstring[]Providers tried and found unavailable first
secret_namesstring[]Names of the secret variables it started with; never values
secret_groupsSecretRef[]The groups they came from
secret_overriddenstring[]Names a later group set again
oom_killsintegerProcesses the out-of-memory killer ended in it, as Annex last measured
auto_checkpoint_minutesinteger0 is off
auto_resumebooleanlifetime_minutesintegerAnnex stops it this long after it started; 0 on sandboxes from before 2026-11-18 (none)
idle_minutesintegerAnnex stops it after this long unused; 0 is off
replaced_bystring | nullLost only: the sandbox that carried its task on
replacement_resumestring | nullLost only: the resume starting that sandbox
server_offline_sincestring | nullRunning on one of your own servers that has stopped answering: since when. Null otherwise.
server_decides_atstring | nullWith
server_offline_since: when Annex marks it lost (and carries it on from its newest checkpoint) or stopped, if nobody was using it, should the server not be back.
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/pause' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/resumeResume the same sandbox on its original provider account
People and API keys
Available for every sandbox. Keeps the sandbox ID, provider handle, account, files and original secrets. No replacement or failover. Commands/files while paused return 409 sandbox_paused. Repeating an already completed operation returns 200 without another provider call. Close output streams before pausing. Unconfirmed calls leave pausing/resuming: retry the same operation, or explicitly pause/resume/stop. pause_mode reports suspended (compute released), frozen (a server workload frozen but its allocation held), or access_hold (no native suspension, so Annex fences access). pause_billing_continues says whether provider billing, Annex's lifetime and running limits continue. Resume checks workspace/key limits again only after a non-billable suspension. Stop deletes the retained sandbox. Provider deletion outside Annex cannot be undone. Existing task tokens still expire after 24 hours without refreshing.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Answer · 200
sandboxSandboxrequiredidstringtaskstringThe task it works on (
tsk_…); a resumed sandbox shares its checkpoint'sproviderstringconnectionstring | nullThe connected account it runs on (
con_…); null for a demo providerregionstringroutestringvcpuintegerAs asked for
memory_gibintegerAs asked for
machineobject | nullWhat it really runs on. A provider with fixed sizes rounds a request up to its smallest that fits: 1 vCPU / 1 GiB on Agent 37 runs on 2 vCPU / 4 GiB, and is priced so (SuperHQ and Sprites bill by use, so they are priced for the size asked). null on sandboxes from before it was recorded.
pause_resumebooleanAlways true: this sandbox can pause and resume with the same identity, account and files
pause_mode"" | "suspended" | "frozen" | "access_hold"Empty while not paused; suspended releases compute, frozen stops a server workload but holds its allocation,
access_holdfences Annex access while the provider workload continuespause_billing_continuesbooleanWhile paused, whether provider allocation/cost, Annex lifetime and the running slot continue
paused_msintegerNon-billable suspended milliseconds excluded from cost estimates and lifetime; frozen and access-hold time are not included
status"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"lost: its provider ended it while Annex was using it, without Annex stopping it
created_atstringstopped_atstring | nullFor a lost sandbox, when Annex noticed: its cost is an upper bound
startup_msintegerrate_per_hour_microsintegerMicro-dollars an hour, fixed when it started: 165600 is $0.1656
cost_microsintegerrate × whole milliseconds from
created_attostopped_at(or now), rounded once to the micro-dollarcurrency"USD"failed_overstring[]Providers tried and found unavailable first
secret_namesstring[]Names of the secret variables it started with; never values
secret_groupsSecretRef[]The groups they came from
secret_overriddenstring[]Names a later group set again
oom_killsintegerProcesses the out-of-memory killer ended in it, as Annex last measured
auto_checkpoint_minutesinteger0 is off
auto_resumebooleanlifetime_minutesintegerAnnex stops it this long after it started; 0 on sandboxes from before 2026-11-18 (none)
idle_minutesintegerAnnex stops it after this long unused; 0 is off
replaced_bystring | nullLost only: the sandbox that carried its task on
replacement_resumestring | nullLost only: the resume starting that sandbox
server_offline_sincestring | nullRunning on one of your own servers that has stopped answering: since when. Null otherwise.
server_decides_atstring | nullWith
server_offline_since: when Annex marks it lost (and carries it on from its newest checkpoint) or stopped, if nobody was using it, should the server not be back.
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/resume' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/stopPeople and API keys
A lost sandbox answers 409 sandbox_lost; Annex never stops or deletes one at its provider. 503 stop_unconfirmed: the stop is recorded but the provider didn't confirm it; Annex asks again every few minutes and the sandbox may bill until then. The stop is in the task's journal with who asked.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Answer · 200
sandboxSandboxrequiredidstringtaskstringThe task it works on (
tsk_…); a resumed sandbox shares its checkpoint'sproviderstringconnectionstring | nullThe connected account it runs on (
con_…); null for a demo providerregionstringroutestringvcpuintegerAs asked for
memory_gibintegerAs asked for
machineobject | nullWhat it really runs on. A provider with fixed sizes rounds a request up to its smallest that fits: 1 vCPU / 1 GiB on Agent 37 runs on 2 vCPU / 4 GiB, and is priced so (SuperHQ and Sprites bill by use, so they are priced for the size asked). null on sandboxes from before it was recorded.
pause_resumebooleanAlways true: this sandbox can pause and resume with the same identity, account and files
pause_mode"" | "suspended" | "frozen" | "access_hold"Empty while not paused; suspended releases compute, frozen stops a server workload but holds its allocation,
access_holdfences Annex access while the provider workload continuespause_billing_continuesbooleanWhile paused, whether provider allocation/cost, Annex lifetime and the running slot continue
paused_msintegerNon-billable suspended milliseconds excluded from cost estimates and lifetime; frozen and access-hold time are not included
status"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"lost: its provider ended it while Annex was using it, without Annex stopping it
created_atstringstopped_atstring | nullFor a lost sandbox, when Annex noticed: its cost is an upper bound
startup_msintegerrate_per_hour_microsintegerMicro-dollars an hour, fixed when it started: 165600 is $0.1656
cost_microsintegerrate × whole milliseconds from
created_attostopped_at(or now), rounded once to the micro-dollarcurrency"USD"failed_overstring[]Providers tried and found unavailable first
secret_namesstring[]Names of the secret variables it started with; never values
secret_groupsSecretRef[]The groups they came from
secret_overriddenstring[]Names a later group set again
oom_killsintegerProcesses the out-of-memory killer ended in it, as Annex last measured
auto_checkpoint_minutesinteger0 is off
auto_resumebooleanlifetime_minutesintegerAnnex stops it this long after it started; 0 on sandboxes from before 2026-11-18 (none)
idle_minutesintegerAnnex stops it after this long unused; 0 is off
replaced_bystring | nullLost only: the sandbox that carried its task on
replacement_resumestring | nullLost only: the resume starting that sandbox
server_offline_sincestring | nullRunning on one of your own servers that has stopped answering: since when. Null otherwise.
server_decides_atstring | nullWith
server_offline_since: when Annex marks it lost (and carries it on from its newest checkpoint) or stopped, if nobody was using it, should the server not be back.
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/stop' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/templateA template drafted from a sandbox
People and API keys
Its size and route, and the commands that were run in it, oldest first (at most 30, each once, without a terminal's own bookkeeping). Nothing is saved: prune the commands to the ones that set it up, give it a name and POST it to …/templates.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Answer · 200
templateTemplateInputnamestringrequiredLower-case letters, digits and dashes, such as node-dev; not "none"
descriptionstringroutestring"cheapest", "fastest" or a provider name; empty leaves it to each start
regionstringA region code; empty for anywhere
vcpuinteger0 leaves it to each start
memory_gibinteger0 leaves it to each start
setupstring[]Shell commands run in order in a new sandbox; the first that fails stops the rest. After the first run Annex saves the files they changed and puts them back in later sandboxes of the same kind instead of running them again, unless
always_runis truesecret_groupsstring[]Secret groups added to each sandbox's environment
defaultbooleanEvery start in the workspace uses it unless the request names another template, or "none"
always_runbooleanRun the set-up commands in every sandbox and never reuse their saved result. For a set-up that starts a program: a saved result holds files, not running programs
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/template' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/terminalA terminal in a running sandbox, over a WebSocket
People and API keys
A WebSocket upgrade, answered 101 at once when the sandbox can take a terminal. Annex then starts a shell on a terminal in the sandbox (a few seconds; longer the first time in a sandbox) and says how it is going in text messages, which are JSON: {"status":"…"} when a step will take a while, then {"ready":true}, or {"error":"…"} and the socket closes (the sandbox didn't call Annex back within 30 seconds, as it must be able to reach Annex's address, or it has no terminal devices). Send nothing before ready. After it a binary message is terminal bytes: the keys pressed one way, what the terminal shows the other, with the sandbox's secret values hidden as in command output. A text message is {"resize":{"cols":80,"rows":24}} from the caller when its window changes, and from the sandbox, as its last word before the socket closes, {"exit":0} with the shell's exit code or {"error":"…"}. What is typed is not kept: the task's journal gets one line saying a terminal was opened. The socket closes when the shell exits, when the sandbox is paused or stopped, or after 12 hours. Errors before the upgrade are ordinary JSON: 409 as for a command (paused, stopped, setting up), 429 too_many_requests past 8 terminals a sandbox or the caller's open streams, 501 terminal_unavailable when this Annex has no terminal helper. A browser must be on Annex's own origin.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
cols? | Inquery | Typeinteger | About |
rows? | Inquery | Typeinteger | About |
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/terminal' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/tunnelA TCP connection to a port inside a running sandbox, over a WebSocket
People and API keys
A WebSocket upgrade, answered 101 at once when the sandbox can take a tunnel, with the same text messages as the terminal while it starts: {"status":"…"}, then {"ready":true}, or {"error":"…"} and the socket closes (nothing answered on the port, or the sandbox didn't call Annex back within 30 seconds). After ready a binary message is the bytes of one TCP connection to 127.0.0.1:port inside the sandbox, either way, as they are: unlike a terminal they are not scrubbed of secret values. Text from the caller is ignored. The socket closes when either side ends the connection, when the sandbox is paused or stopped, or after 12 hours. The task's journal gets one line saying a tunnel to the port was opened. Errors before the upgrade are ordinary JSON: 422 validation_error for a port outside 1 to 65535, 409 as for a command, 429 too_many_requests past 32 tunnels a sandbox (apart from its terminals) or the caller's open streams, 501 terminal_unavailable.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
port | Inquery | Typeinteger | About |
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/tunnel' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/journalAdd a note to the journal of the sandbox's task
People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Body
textstringrequired
Answer · 201
journal_entryJournalEntryrequiredidstringjnl_…for a note, checkpoint or resume;cmd_…for a commandkind"command" | "note" | "checkpoint" | "resume" | "alert" | "webhook"alert: something Annex noticed, such as "Out of memory: 1 process killed.", a restart, a pause, a killed or failed command or a failed checkpoint; webhook: a webhook command's end, with how it ended and the end of its stdout and stderr
textstringsandboxstringatstring
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/journal' \
-H 'Authorization: Bearer anx_live_…' \
-H 'Content-Type: application/json' \
-d '{"text":"…"}'/v1/workspaces/{wid}/sandboxes/{id}/logsA sandbox's log, on any provider (its journal, its commands' output and, on your own server, its container's)
People and API keys
One log per sandbox, running or ended, merged in time order, each line tagged with its source: journal (what Annex wrote about it: commands started, notes, checkpoints, resumes and alerts such as lost, stopped, out of memory, runaway and lifetime or idle stops), command (what its newest 5 commands run through Annex printed, stdout or stderr, with the command's id) and container (on your own server, what its main process printed). Bounded so a read stays cheap on every provider: the newest 1,000 journal lines (older ones: the task's journal, GET …/tasks/{tid}); of each command the last 32 KiB Annex has read, read on through the provider's own output path at most 4 pages a command a request, from where Annex left it (a command read to its end is never asked again; read a whole one with …/commands/{cid}/output); and of the container the newest 1,000 lines. Command output read by page carries the command's start time (providers keep no time per line); output Annex saw live carries the time it saw it. An ended sandbox answers from its journal and what this Annex still holds of its commands, asking no provider. Secret values are hidden. Pages newest first: page 1 holds the newest limit lines, oldest first within the page.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
since? | Inquery | Typestring | AboutRFC 3339; all of it if left out |
source? | Inquery | Type"journal" | "command" | "container" | AboutOnly this source (422 otherwise) |
stream? | Inquery | Type"stdout" | "stderr" | AboutOnly output on this stream; leaves journal lines out (422 otherwise) |
limit? | Inquery | Typeinteger | AboutLines a page (422 otherwise) |
page? | Inquery | Typeinteger | AboutA missing or invalid page is 1 |
Answer · 200
logsSandboxLogrequiredsandboxstringlinesSandboxLogLine[]Oldest first within the page
aboutstringWhat the log holds
metaMetarequiredpageintegertotalintegerItems matching, across all pages
pageCountintegerceil(total / perPage)
perPageinteger
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/logs' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/logs/streamA sandbox's log as it happens, on any provider, as Server-Sent Events
People and API keys
One "log" event per line (data is a SandboxLogLine), filtered like …/logs: journal lines the moment Annex writes them, and while anyone watches the sandbox, the output of its newest commands still running and of each command started through Annex from then on, followed through the provider's own output path at its own pace (nothing is followed for a sandbox nobody watches); on your own server, its container's output too, with "state" events when the server stops or starts answering. Journal lines carry an SSE id: reconnect with Last-Event-ID to get the journal lines after it (up to 500); command and container output has no resume, so read …/logs again and merge by the line's id. A comment every 15 s keeps the stream open; a stream ends after 30 minutes (reconnect to keep following). When the sandbox ends, one "gone" event whose data is the Error says so and the stream closes: don't reconnect. A sandbox that ended is 409. The same limits as the server's live log (429). API keys may follow it; MCP has no stream (sandbox_list with logs reads the same by page).
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
source? | Inquery | Type"journal" | "command" | "container" | AboutAs …/logs (422 otherwise) |
stream? | Inquery | Type"stdout" | "stderr" | AboutAs …/logs (422 otherwise) |
Last-Event-ID? | Inheader | Typestring | About |
Answer · 200
id: … (journal lines), event: log, data: {SandboxLogLine} … or event: state, data: {"live": false} … or event: gone, data: {Error}
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/logs/stream' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/metricsA sandbox's CPU, memory and disk over time, from Annex's own probe and the provider's own numbers
People and API keys
Annex measures a running sandbox right after each command, and every minute for 10 minutes after one or while watched; it never wakes a sandbox to measure it. Points are kept 7 days. series has one entry per source: self (Annex's probe in the sandbox, on every provider), daytona (GET /sandboxes/{id}/usage) and cloudwatch (AWS CPUUtilization, once the account opted in); the provider's are read only while watched.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
since? | Inquery | Typestring | AboutRFC 3339, within the last 7 days (422 otherwise); the last hour if left out |
resolution? | Inquery | Type"raw" | "1m" | "5m" | "1h" | Aboutraw, or the last point in each step (422 otherwise) |
watch? | Inquery | Typeboolean | Abouttrue keeps a running sandbox measured every minute for the next 2 minutes; the dashboard sends it while the page is open |
Answer · 200
metricsMetricsrequiredsandboxstringstatus"running" | "paused" | "pausing" | "resuming" | "stopped" | "lost"sincestringresolution"raw" | "1m" | "5m" | "1h"latestobjectBy source: self, daytona, cloudwatch
seriesobject[]oom_killsintegeroom_counter"" | "cgroup" | "cgroup_v1" | "machine" | "unavailable"Where out-of-memory kills are counted in it. unavailable: it exposes no count, so
oom_killscan't rise and a restart is the signrestarted_atstring | nullWhen Annex last saw it restart (its uptime went back, or PID 1 started again)
measured_atstring | nullIts newest reading
measure_failedMeasureFailedAnnex's last try at measuring the sandbox, when it failed; null when the last try worked or before any
samplingstringWhen Annex measures
runaway"out_of_memory" | "restarted" | "cpu" | "memory" | nullAs on the sandbox: why it is running away now; null when it isn't
processesobject | nullWhat ran at the latest reading (within the hour), the 20 busiest: CPU, then memory. Null when it isn't running, wasn't measured, or is viewed as someone.
networkobject | nullWhere it was seen connected and what it listens on, from the sockets open each time Annex measured it (one opened and closed between readings is not seen). Null only when they could not be read.
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/metrics' \
-H 'Authorization: Bearer anx_live_…'