HTTP API
Checkpoints and resume
15 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}/sandboxes/{id}/checkpointsCheckpoint a running sandbox, so its task can resume on any provider
People and API keys
Answers 202 at once with the checkpoint queued; a worker then captures it. Follow it on …/events or poll GET …/checkpoints/{ckp} until status is stored or failed. It saves the files under root (by default /workspace, else the home folder) and leaves out folders that can be rebuilt (node_modules, .venv, venv, __pycache__, .pytest_cache, .mypy_cache, .tox, target, .gradle, .next, .cache, and .git/objects over 256 MiB) plus anything in exclude; what was left out is listed in excluded. Files are copied one after another, not at one instant, so pause writes while it runs; files still changing are listed in changed. Running programs, memory and secrets are never saved. After a workspace's first checkpoint only pieces of files it doesn't already hold are sent. One checkpoint or resume runs per sandbox at a time: another is 409. Idempotency-Key works as for creating a sandbox. Dependency folders that are left out but have a lockfile next to them (node_modules, .venv) are saved to the workspace's dependency cache, once per lockfile, path, platform and runtime; they are listed in cached.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Idempotency-Key? | Inheader | Typestring | About |
Body
rootstringAbsolute folder, not /; leave out for
/workspace, or the home folder when there is noneexcludestring[]More to leave out: a name ("data", "*.log") anywhere, or a path from root ("logs/old")
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"
notestringWhere the work stands; kept in the task's journal
Answer · 200
checkpointCheckpointrequiredidstringtaskstringsandboxstringstatus"queued" | "capturing" | "stored" | "failed"rootstring | nullThe folder saved
excludedstring[]Left out to rebuild, relative to root (at most 1000)
changedstring[]Files still changing while they were copied
recipeRecipeHow to rebuild the environment on resume; checkpoints keep the sandbox's unless given their own
notestring | nullfilesintegerbytes_totalintegerBytes in the files saved
bytes_newintegerBytes stored for this checkpoint; the rest was already stored
chunks_newintegercachedCacheHit[]Dependency folders saved to the cache (new) or found there already
created_atstringfinished_atstring | nullerrorstring | nullautobooleanTaken by Annex's automatic schedule (
auto_checkpoint_minutes), not asked for
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/checkpoints' \
-H 'Authorization: Bearer anx_live_…' \
-H 'Content-Type: application/json' \
-d '{"root":"…","exclude":["…"]}'/v1/workspaces/{wid}/sandboxes/{id}/checkpointsOne page of the sandbox's checkpoints, newest first
People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
page? | Inquery | Typeinteger | AboutA missing or invalid page is 1 |
perPage? | Inquery | Typeinteger | AboutHeld between 1 and 100 |
Answer · 200
checkpointsCheckpoint[]requiredidstringtaskstringsandboxstringstatus"queued" | "capturing" | "stored" | "failed"rootstring | nullThe folder saved
excludedstring[]Left out to rebuild, relative to root (at most 1000)
changedstring[]Files still changing while they were copied
recipeRecipeHow to rebuild the environment on resume; checkpoints keep the sandbox's unless given their own
notestring | nullfilesintegerbytes_totalintegerBytes in the files saved
bytes_newintegerBytes stored for this checkpoint; the rest was already stored
chunks_newintegercachedCacheHit[]Dependency folders saved to the cache (new) or found there already
created_atstringfinished_atstring | nullerrorstring | nullautobooleanTaken by Annex's automatic schedule (
auto_checkpoint_minutes), not asked for
metaMetarequiredpageintegertotalintegerItems matching, across all pages
pageCountintegerceil(total / perPage)
perPageinteger
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/checkpoints' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/checkpoints/{ckp}People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
ckp | Inpath | Typestring | AboutCheckpoint id |
Answer · 200
checkpointCheckpointrequiredidstringtaskstringsandboxstringstatus"queued" | "capturing" | "stored" | "failed"rootstring | nullThe folder saved
excludedstring[]Left out to rebuild, relative to root (at most 1000)
changedstring[]Files still changing while they were copied
recipeRecipeHow to rebuild the environment on resume; checkpoints keep the sandbox's unless given their own
notestring | nullfilesintegerbytes_totalintegerBytes in the files saved
bytes_newintegerBytes stored for this checkpoint; the rest was already stored
chunks_newintegercachedCacheHit[]Dependency folders saved to the cache (new) or found there already
created_atstringfinished_atstring | nullerrorstring | nullautobooleanTaken by Annex's automatic schedule (
auto_checkpoint_minutes), not asked for
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/checkpoints/ckp' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/checkpoints/{ckp}/eventsA checkpoint's progress as Server-Sent Events
People and API keys
"progress" events ({stage, files, bytes, chunks}; stages queued, capturing, scanning, storing), then one "done" or "failed" event whose data is the Checkpoint as it ended, and the stream closes. A finished checkpoint sends its last event at once. Lines starting with ":" are keep-alives. Reconnect with Last-Event-ID to resume after the last event you got.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
ckp | Inpath | Typestring | AboutCheckpoint id |
Last-Event-ID? | Inheader | Typestring | About |
Answer · 200
event: progress, data: {"stage":"capturing","files":0,"bytes":0,"chunks":0} … event: done, data: {Checkpoint}
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/checkpoints/ckp/events' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/checkpoints/{ckp}/resumeStart a stored checkpoint on a new sandbox, on any provider
People and API keys
Answers 202 at once with the resume queued; follow it on /v1/workspaces/{wid}/resumes/{rsm}/events or poll it. A worker starts a new sandbox routed like POST …/sandboxes (failover as usual), runs the recipe's setup commands, copies the files back and checks each piece against its hash, then runs the recipe's start command. The new sandbox joins the checkpoint's task. It costs money from when it starts until it is stopped; a resume that fails stops it. Send an Idempotency-Key: a retry with it never starts a second machine. 409 if the checkpoint isn't stored; 422 no_provider if no connected provider fits.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
ckp | Inpath | Typestring | AboutCheckpoint id |
Idempotency-Key? | Inheader | Typestring | About |
Body
routestring"cheapest", "fastest", or a provider name; left out, the workspace's
default_route(422 when there is none)regionstringOne 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 sovcpuintegerThe checkpointed sandbox's when left out
memory_gibintegerThe checkpointed sandbox's when left out
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
Answer · 200
resumeResumerequiredidstringcheckpointstringtaskstringsandboxstring | nullThe new sandbox
status"queued" | "restoring" | "ready" | "failed"routestringregionstring | nullvcpuintegermemory_gibintegerfilesintegerbytesintegerrestored_from_cacheCacheHit[]Dependency folders put back from the cache
cache_missesCacheMiss[]Dependency folders the cache had no exact match for: reinstall them
memoriesobject[]Up to 5 memories of the task and workspace, closest first, recalled when it was ready (searched with the checkpoint's note, else the task's newest notes). Empty without a memory connection, or if Supermemory failed or took over 5 s: memory never holds up a resume.
created_atstringfinished_atstring | nullerrorstring | null
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/checkpoints/ckp/resume' \
-H 'Authorization: Bearer anx_live_…' \
-H 'Content-Type: application/json' \
-d '{"route":"…","region":"…"}'/v1/workspaces/{wid}/checkpoints/{ckp}Delete a stored or failed checkpoint
People and API keys
Its stored pieces are deleted about an hour later, unless another checkpoint of the workspace holds them too. 409 while it is still being made.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
ckp | Inpath | Typestring | AboutCheckpoint id |
Answer · 204
Deleted
curl -X DELETE 'https://annex.eversonder.com/v1/workspaces/wsp_…/checkpoints/ckp' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/resumes/{rsm}People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
rsm | Inpath | Typestring | AboutResume id |
Answer · 200
resumeResumerequiredidstringcheckpointstringtaskstringsandboxstring | nullThe new sandbox
status"queued" | "restoring" | "ready" | "failed"routestringregionstring | nullvcpuintegermemory_gibintegerfilesintegerbytesintegerrestored_from_cacheCacheHit[]Dependency folders put back from the cache
cache_missesCacheMiss[]Dependency folders the cache had no exact match for: reinstall them
memoriesobject[]Up to 5 memories of the task and workspace, closest first, recalled when it was ready (searched with the checkpoint's note, else the task's newest notes). Empty without a memory connection, or if Supermemory failed or took over 5 s: memory never holds up a resume.
created_atstringfinished_atstring | nullerrorstring | null
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/resumes/rsm' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/resumes/{rsm}/eventsA resume's progress as Server-Sent Events
People and API keys
Like a checkpoint's events. Stages: queued, starting a sandbox, setup N of M, uploading, unpacking, "restoring <folder> from the cache"; then "done" or "failed" with the Resume.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
rsm | Inpath | Typestring | AboutResume id |
Last-Event-ID? | Inheader | Typestring | About |
Answer · 200
event: progress … event: done, data: {Resume}
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/resumes/rsm/events' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/tasks/{tid}/checkpointsOne page of a task's checkpoints, from all its sandboxes, newest first
People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
tid | Inpath | Typestring | AboutTask id |
page? | Inquery | Typeinteger | AboutA missing or invalid page is 1 |
perPage? | Inquery | Typeinteger | AboutHeld between 1 and 100 |
Answer · 200
checkpointsCheckpoint[]requiredidstringtaskstringsandboxstringstatus"queued" | "capturing" | "stored" | "failed"rootstring | nullThe folder saved
excludedstring[]Left out to rebuild, relative to root (at most 1000)
changedstring[]Files still changing while they were copied
recipeRecipeHow to rebuild the environment on resume; checkpoints keep the sandbox's unless given their own
notestring | nullfilesintegerbytes_totalintegerBytes in the files saved
bytes_newintegerBytes stored for this checkpoint; the rest was already stored
chunks_newintegercachedCacheHit[]Dependency folders saved to the cache (new) or found there already
created_atstringfinished_atstring | nullerrorstring | nullautobooleanTaken by Annex's automatic schedule (
auto_checkpoint_minutes), not asked for
metaMetarequiredpageintegertotalintegerItems matching, across all pages
pageCountintegerceil(total / perPage)
perPageinteger
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/tasks/tid/checkpoints' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/sandboxes/{id}/cache/saveSave a running sandbox's dependency folders to the workspace's cache
People and API keys
Answers 202 with a cache job; a worker then finds each lockfile under root (3 folders deep: package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lockb → node_modules; uv.lock, poetry.lock, Pipfile.lock, requirements*.txt → .venv or venv) and saves each built folder not cached yet. The key is a sha256 of the lockfile, the folder's absolute path, the platform (os/arch, and musl) and what node --version or python3 --version says in the sandbox, so a different runtime or machine is a miss, never a wrong restore. Entries are sealed per workspace like checkpoints and share their stored pieces. A checkpoint does this on its own. One checkpoint, resume or cache job runs per sandbox at a time (409).
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Body
rootstringWhere to look; leave out for
/workspace, or the home folder
Answer · 202
cache_jobCacheJobrequiredidstringsandboxstringkind"save" | "restore"status"queued" | "capturing" | "stored" | "restoring" | "ready" | "failed"save: queued, capturing, stored; restore: queued, restoring, ready; or failed
cachedCacheHit[]restored_from_cacheCacheHit[]cache_missesCacheMiss[]created_atstringfinished_atstring | nullerrorstring | null
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/cache/save' \
-H 'Authorization: Bearer anx_live_…' \
-H 'Content-Type: application/json' \
-d '{"root":"…"}'/v1/workspaces/{wid}/sandboxes/{id}/cache/restorePut cached dependency folders back into a running sandbox
People and API keys
Like save, the other way: each lockfile whose folder is missing and has an exact cache match gets it back, checked byte for byte. A resume does this on its own. The job lists restored_from_cache and cache_misses (reinstall those, then save).
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
id | Inpath | Typestring | About |
Body
rootstring
Answer · 202
cache_jobCacheJobrequiredidstringsandboxstringkind"save" | "restore"status"queued" | "capturing" | "stored" | "restoring" | "ready" | "failed"save: queued, capturing, stored; restore: queued, restoring, ready; or failed
cachedCacheHit[]restored_from_cacheCacheHit[]cache_missesCacheMiss[]created_atstringfinished_atstring | nullerrorstring | null
curl -X POST 'https://annex.eversonder.com/v1/workspaces/wsp_…/sandboxes/id/cache/restore' \
-H 'Authorization: Bearer anx_live_…' \
-H 'Content-Type: application/json' \
-d '{"root":"…"}'/v1/workspaces/{wid}/cache/jobs/{cid}People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
cid | Inpath | Typestring | AboutCache job id (cch_…) |
Answer · 200
cache_jobCacheJobrequiredidstringsandboxstringkind"save" | "restore"status"queued" | "capturing" | "stored" | "restoring" | "ready" | "failed"save: queued, capturing, stored; restore: queued, restoring, ready; or failed
cachedCacheHit[]restored_from_cacheCacheHit[]cache_missesCacheMiss[]created_atstringfinished_atstring | nullerrorstring | null
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/cache/jobs/cid' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/cache/jobs/{cid}/eventsA cache job's progress as Server-Sent Events, like a checkpoint's; ends with "done" or "failed" and the CacheJob
People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
cid | Inpath | Typestring | About |
Last-Event-ID? | Inheader | Typestring | About |
Answer · 200
event: progress … event: done, data: {CacheJob}
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/cache/jobs/cid/events' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/cacheOne page of the workspace's dependency cache, most recently used first
People and API keys
Each workspace keeps ANNEX_CACHE_MAX_BYTES of folders (10 GiB by default); past it the least recently used go first. Their stored pieces are deleted an hour later, and never one a checkpoint still needs.
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
page? | Inquery | Typeinteger | AboutA missing or invalid page is 1 |
perPage? | Inquery | Typeinteger | AboutHeld between 1 and 100 |
Answer · 200
cache_entriesCacheEntry[]requiredkeystringpathstringThe absolute folder
lockfilestringplatformstringruntimestring"" when the runtime was not installed
filesintegerbytesintegerFile bytes; counted against the workspace cap (
ANNEX_CACHE_MAX_BYTES, 10 GiB by default)hitsintegerRestores from it
created_atstringlast_used_atstringSaved, found or restored; the least recently used go first past the cap
metaMetarequiredpageintegertotalintegerItems matching, across all pages
pageCountintegerceil(total / perPage)
perPageinteger
curl -X GET 'https://annex.eversonder.com/v1/workspaces/wsp_…/cache' \
-H 'Authorization: Bearer anx_live_…'/v1/workspaces/{wid}/cache/{key}Drop one cache entry now; the next save makes it again
People and API keys
| Parameter | In | Type | About |
|---|---|---|---|
wid | Inpath | Typestring | AboutWorkspace id |
key | Inpath | Typestring | About |
Answer · 204
Deleted
curl -X DELETE 'https://annex.eversonder.com/v1/workspaces/wsp_…/cache/key' \
-H 'Authorization: Bearer anx_live_…'