kosa8 docs Dashboard
esc
↑ ↓ move↵ openRuns in your browser; nothing you type is sent anywhere.

HTTP API / Sandboxes

Sandboxes

26 endpoints at https://api.kosa8.com, sent with Authorization: Bearer $KOSA8_API_KEY. Generated from the API's own OpenAPI description, which a test holds to the router.

List sandboxes, newest first, a page at a time#

GET/v1/sandboxesscope sandboxes:read

When next_cursor is not null there are more: call again with cursor set to it.

Parameters
allquery · "1"
1 includes deleted ones
limitquery · integer
Sandboxes per page (default and most: 500)
cursorquery · string
next_cursor from the previous page
namequery · string
only sandboxes with this name
Responses
200400401403
curl -s -X GET https://api.kosa8.com/v1/sandboxes \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Create a sandbox#

POST/v1/sandboxesscope sandboxes:write

201: it is running. 202: a sized or image create booting cold (state creating); poll GET /v1/sandboxes/{id} until running. 404: the snapshot or a named secret is not the org's. 409: a Store item's price changed (price_changed).

Parameters
Idempotency-Keyheader · string
Send the same key to retry safely: for 24 hours the first answer is returned again (Idempotent-Replayed: true) instead of making more sandboxes. The same key with another body is 422 idempotency_mismatch; while the first is still running, a repeat waits for it (409 idempotency_in_progress after 25 s)
JSON body
templatestring
Template key from GET /v1/templates (default the org's default, base), or a kosa8 Store item: creator/name or creator/name@1.2.3
accept_pricenumber
A paid Store item only: its current price in USD, which the person agreed to. Missing: 402 price_not_accepted; different: 409 price_changed (both carry the price)
regionstring
us-ash1 (Ashburn, VA, US East; the only region today), or the area alone (us). Default: the org's default_region, else us-ash1
sleep_after_sinteger
Idle seconds before it sleeps; 0 never; default 300 Min 0. Max 604800.
ttl_sinteger
Delete it this many seconds from now Min 60. Max 7776000.
lease_sinteger
A lease: deleted lease_s from now unless POST /v1/sandboxes/heartbeat extends it, so a crashed client leaks nothing. Not with ttl_s or delete_after Min 60. Max 86400.
delete_afterinteger | string
Or: delete it at this time, Unix ms or ISO 8601 (60 s to 90 days from now)
persistentboolean
Run every exec, streamed or not, in one long-lived container: packages, $HOME, /var/lib and anything outside /workspace persist, and a process started with nohup cmd & keeps running after the exec returns, until the sandbox is deleted (it also keeps the sandbox from sleeping). Default false: commands in the template's image share the sandbox's exec container while it lasts, but one that cannot be had (or another image) runs in a fresh container that shares only /workspace. When true, an exec takes no image
dockerboolean
Let the sandbox run its own Docker engine: start it with dockerd > /var/log/dockerd.log 2>&1 &, then docker run, docker build and compose work, pulling over the sandbox's egress. Needs a size or image (a sized create) and makes the sandbox persistent. The container gets the privileges dockerd needs inside the sandbox's own microVM, which stays the isolation boundary
kvmboolean
Preview: give the sandbox's container /dev/kvm, served by its own guest kernel, so an emulator runs at hardware speed (docs/guides/cloud-android.html). Default true for the ghcr.io/azmxai/kosa8-android image, false otherwise. Needs a size or image, implies persistent and docker, and the sandbox never sleeps. Placed only on hosts that report nested_kvm; 501 not_available while none does
size"0.25x0.5" | "0.5x1" | "1x2" | "2x4" | "4x8" | "8x16" | "16x32"
vCPU x GiB. 0.25x0.5, 0.5x1 and 1x2 are small sizes for fleets of mostly idle sandboxes: that much vCPU reserved and billed, bursting above it (to 1, 1 and 2 vCPU) while the host has idle CPU; on hosts that run them (GET /v1/templates lists them, with how many are warm), else 501. A small size whose image a host keeps warm at that size starts at once (201 running). With size, cpus+mem_mb, image or disk_gb the sandbox is booted cold at that size (202, state creating, until it is up; poll GET). When a template's pool already holds VMs of exactly that size and image with the default disk (base-2x4 is base, alpine, at 2x4) and nothing is set at boot (no docker, dedicated cpu, egress or secrets), the create takes a started VM from that pool instead and answers 201 running, its template that pool's (e.g. base-2x4). Needs a payment method
cpusnumber
Or: cpus and mem_mb of one of the sizes (4 and 8192 for 4x8, 0.25 and 512 for 0.25x0.5)
mem_mbinteger
—
imagestring
An OCI image to run, e.g. ghcr.io/starslingdev/sandbox-benchmarks-toolchain:v8 (default size 2x4)
disk_gbinteger
The data disk, which holds / and /workspace; default 32. At most 200 GB, or the plan's sandbox disk when more (Team 256, Scale 500); GET /v1/templates max_disk_gb is yours Min 8. Max 500.
namestring
Your label for it; GET /v1/sandboxes?name= finds it
cpu"shared" | "dedicated"
dedicated (with a size): each vCPU is a whole physical core of its own, its SMT sibling idle, RAM on hugepages; never sleeps, cannot be checkpointed or forked. 503 no_capacity when no host has the free cores. Default shared
envobject
Environment variables for the sandbox: every command it runs gets them (through /exec, a direct exec_url, streamed or not, background or not, in a persistent container or a fresh one), the exec's own env winning per name. Kept with the sandbox on its host and carried to forks and to sandboxes made from its snapshots. Names: letters, digits and _, not starting with a digit. At most 64, each value at most 8 KiB, 64 KiB in all. Values are never logged or returned; the audit log holds names only
snapshotstring
Make the sandbox from a snapshot of the org's (POST /v1/sandboxes/{id}/snapshots): it starts as the source was when the snapshot was taken, files, packages and running processes included, on the host that keeps the snapshot. Its template, size, image and disk are the snapshot's: give no template, size, cpus, mem_mb, image, disk_gb, docker, persistent, cpu or region. env (yours over the source's), name, ttl_s / delete_after and sleep_after_s are its own. Answers 201 running
Responses
201202400401402403404409429501502503
curl -s -X POST https://api.kosa8.com/v1/sandboxes \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Get a sandbox#

GET/v1/sandboxes/{id}scope sandboxes:read
Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Responses
200401403404
curl -s -X GET https://api.kosa8.com/v1/sandboxes/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Change its lifetime or sleep timer#

PATCH/v1/sandboxes/{id}scope sandboxes:write
Parameters
idrequiredpath · string
Sandbox id (sbx_…)
JSON body
ttl_sinteger | null
—
delete_afterinteger | null
—
sleep_after_sinteger
—
Responses
200400401403404
curl -s -X PATCH https://api.kosa8.com/v1/sandboxes/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Delete a sandbox#

DELETE/v1/sandboxes/{id}scope sandboxes:write
Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Responses
200401403404502
curl -s -X DELETE https://api.kosa8.com/v1/sandboxes/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Run a command, or start one that keeps running (background: true); a sleeping sandbox wakes first#

POST/v1/sandboxes/{id}/execscope sandboxes:write

A buffered exec runs at most 90 s: past that the command is stopped and the answer is 504 exec_timeout. For longer commands send stream: true, which is not held to it, or background: true. Commands run in the sandbox's own long-lived container, whose filesystem lasts between commands; one naming another image runs in a fresh container that shares only /workspace. With background: true the answer is 202 at once and the command keeps running after the call (detached, its output to a workspace file): GET /v1/sandboxes/{id}/exec/{exec_id} reports it. Without it, a process the command leaves behind is not guaranteed to outlive it unless the sandbox is persistent. The sandbox's env from create is given to every command, the exec's own env winning per name.

Parameters
idrequiredpath · string
Sandbox id (sbx_…)
JSON body
cmdrequiredarray of string
—
imagestring
Run in this image instead of the template's
envarray of string
NAME=value
streamboolean
Answer as NDJSON (application/x-ndjson) while the command prints: {stream: stdout|stderr, data: base64} frames, then {done: true, exit} or {done: true, error}. While the command prints nothing, an empty stdout frame with heartbeat: true comes every 15 s; ignore it. Not held to the 90 s limit of a buffered exec. 501 not_available on a host without the data plane
backgroundboolean
Detached: start the command and answer 202 {exec: {id, pid, state: running, output_path, exit_path}} at once. The command keeps running after the call returns, in the sandbox's own long-lived container (persistent or not), so files it writes anywhere (/tmp, /workspace, …) are there for later commands. Its stdout and stderr go to output_path (/workspace/.kosa8-bg/<id>.out) and its exit code to exit_path once it exits; GET /v1/sandboxes/{id}/exec/{exec_id} reports state, exit and output. Not with stream or another image. 501 not_available on a host without it
timeout_sinteger
Stop the command after this many seconds: 504 exec_timeout (with limit_s and the output so far) when buffered, at most 90 there; a last frame {done: true, error, code: exec_timeout} when streamed; with background, the host ends it then and GET …/exec/{exec_id} says timed_out (501 not_available on a host without it) Min 1. Max 86400.
Responses
200202400401402403404409429501502504
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/exec \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

A background command: running or exited, its exit code and its output so far#

GET/v1/sandboxes/{id}/exec/{exec_id}scope sandboxes:read

Reads its output file (the first MiB) and its exit file; a sleeping sandbox wakes first.

Parameters
idrequiredpath · string
Sandbox id (sbx_…)
exec_idrequiredpath · string
The id POST …/exec {background: true} answered (bg_…)
Responses
200401402403404409501502
curl -s -X GET https://api.kosa8.com/v1/sandboxes/$SBX/exec/$EXEC_ID \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Stop a background command and what it started (SIGTERM, then SIGKILL after 5 s)#

POST/v1/sandboxes/{id}/exec/{exec_id}/stopscope sandboxes:write

exited: it had already ended. Its exit code (143 or 137 when stopped) and stopped: true come from GET …/exec/{exec_id}. 409 no_pid: started by an older host, end it with kill.

Parameters
idrequiredpath · string
Sandbox id (sbx_…)
exec_idrequiredpath · string
The background command's id (bg_…)
Responses
200401402403404409501502
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/exec/$EXEC_ID/stop \
  -H "Authorization: Bearer $KOSA8_API_KEY"

A token to send this sandbox's commands to its host directly#

POST/v1/sandboxes/{id}/directscope sandboxes:write

Create answers with the same direct object. POST its exec_url with the body of /exec and Authorization: Bearer <token>: the command runs on the sandbox's host without passing through this API, and the answer is /exec's. The token works for exec on this sandbox only, until expires_at (5 minutes); ask here for a fresh one. A sleeping sandbox answers 409 use_api: send that command through /exec, which wakes it. Each command is still in the org's audit log, within seconds.

Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Responses
200401403404409501
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/direct \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Snapshot it and free its RAM#

POST/v1/sandboxes/{id}/sleepscope sandboxes:write
Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Responses
200401403404409502
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/sleep \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Restore a sleeping sandbox now#

POST/v1/sandboxes/{id}/wakescope sandboxes:write
Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Responses
200401402403404409429503
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/wake \
  -H "Authorization: Bearer $KOSA8_API_KEY"

n copies of the sandbox as it is now, on its host and, when that is full, on others; the rules of a create#

POST/v1/sandboxes/{id}/forkscope sandboxes:write

Copies land on the parent's host first (a copy-on-write restore of its memory and disk). Up to 1,000 copies a call, made 100 at a time. With partial_ok (the default whenever n is over 100 or a newer field is given), when the parent's host has no room for more, the rest are restored on other hosts (same region first) from a snapshot of the parent copied there: the same state, labels, run_id, lease_s, parent_id and name numbering, priced as a create in that host's region; hosts counts them. That takes longer than a fork on one host (the parent's memory and disk are copied first). Where no other host can take them, the fork stops cleanly: the copies made are returned and the rest are listed in failed with failure_class quota or infra (retryable). The plan's running limit counts copies on every host. partial_ok: false, and a plain {n} of at most 100, are all or nothing and stay on the parent's host. Nothing made is an error answer (with requested, created and failed). A sandbox with secrets cannot be forked (409 secrets): copies never inherit secrets. Progress: send Accept: application/x-ndjson (or ?progress=1) and the answer is 200 NDJSON, one object a line: {"event":"progress","requested","created","failed"} when the copies start and after each host call (up to 100 copies each: a host makes a chunk in one call, so the count moves 100 at a time), then {"event":"result","status", ...} with the fork's own answer and status. A refusal before any copy starts is the plain JSON error. Without it the answer is unchanged.

Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Idempotency-Keyheader · string
Send the same key to retry safely: for 24 hours the first answer is returned again (Idempotent-Replayed: true) instead of making more sandboxes. The same key with another body is 422 idempotency_mismatch; while the first is still running, a repeat waits for it (409 idempotency_in_progress after 25 s)
JSON body
ninteger
How many copies (default 1). Past 100 they are made 100 at a time Min 1. Max 1000.
labelsobject
Labels for every sandbox made (at most 16, kosa8.run included)
run_idstring
Adds the label kosa8.run=<run_id>, which heartbeat and drain select by
lease_sinteger
A lease: each is deleted lease_s from now unless POST /v1/sandboxes/heartbeat extends it Min 60. Max 86400.
prefixstring
Names them <prefix>-0001, <prefix>-0002, …
partial_okboolean
true: make what fits and list the rest in failed; false: all or nothing
inherit_secretsboolean
Copies never inherit secrets (they live only in the parent's host memory, at its egress broker). true is refused with 409 secrets rather than ignored
Responses
201400401402403404409422429501502503
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/fork \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Create up to 1,000 sandboxes at once, paced by kosa8#

POST/v1/sandboxes/batchscope sandboxes:write

Each sandbox is a POST /v1/sandboxes run inside kosa8 (any of its fields apply to every one): the same plan, payment, spending-cap, running-limit and egress rules, and its own audit record. At most 16 are created at a time. Past the plan's running limit a batch makes what fits and lists the rest as failed (code running_limit, failure_class quota); a refusal every later create would meet too (a bad field, a limit, no room on any host) ends it, and the rest are listed as not tried. partial_ok: false is all or nothing: the ones made are deleted and the first refusal is the answer. Nothing made is always an error answer.

Parameters
Idempotency-Keyheader · string
Send the same key to retry safely: for 24 hours the first answer is returned again (Idempotent-Replayed: true) instead of making more sandboxes. The same key with another body is 422 idempotency_mismatch; while the first is still running, a repeat waits for it (409 idempotency_in_progress after 25 s)
JSON body
countrequiredinteger
Min 1. Max 1000.
templatestring
—
imagestring
—
sizestring
—
cpusinteger
—
mem_mbinteger
—
regionstring
—
ttl_sinteger
Each sandbox's TTL (not with lease_s) Min 60. Max 7776000.
labelsobject
Labels for every sandbox made (at most 16, kosa8.run included)
run_idstring
Adds the label kosa8.run=<run_id>, which heartbeat and drain select by
lease_sinteger
A lease: each is deleted lease_s from now unless POST /v1/sandboxes/heartbeat extends it Min 60. Max 86400.
prefixstring
Names them <prefix>-0001, <prefix>-0002, …
partial_okboolean
true: make what fits and list the rest in failed; false: all or nothing
Responses
200400401402403409422429501502503
curl -s -X POST https://api.kosa8.com/v1/sandboxes/batch \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Extend the leases of a run's sandboxes#

POST/v1/sandboxes/heartbeatscope sandboxes:write

Each matching sandbox with a lease that has not lapsed gets delete_after = now + (extend_s or its lease_s). A lapsed one is not brought back: the minute tick deletes it. Send it every lease_s / 3 or so; a trainer that crashes stops heartbeating and its sandboxes go within lease_s plus about a minute.

JSON body
run_idstring
Sandboxes labelled kosa8.run=<run_id>
labelsobject
Sandboxes with all of these labels
idsarray of string
These sandboxes. At least one of run_id, labels or ids; given together, all must match
extend_sinteger
Extend to now + extend_s instead of each sandbox's lease_s Min 60. Max 86400.
Responses
200400401403
curl -s -X POST https://api.kosa8.com/v1/sandboxes/heartbeat \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Delete every sandbox of a run (or with labels, or by id)#

POST/v1/sandboxes/drainscope sandboxes:write

Deletes as DELETE /v1/sandboxes/{id} does, 16 at a time, up to 1,000 a call. Allowed while the organization is frozen.

JSON body
run_idstring
Sandboxes labelled kosa8.run=<run_id>
labelsobject
Sandboxes with all of these labels
idsarray of string
These sandboxes. At least one of run_id, labels or ids; given together, all must match
Responses
200400401403
curl -s -X POST https://api.kosa8.com/v1/sandboxes/drain \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Grade a solved sandbox in a sealed copy: hidden files, no network, a reward#

POST/v1/sandboxes/{id}/gradescope sandboxes:write

Forks one copy of the sandbox, takes all network away from it (egress deny), writes the hidden files there, runs cmd, reads the reward and deletes the copy. The sandbox graded never sees the files. Each step is held to its own route's rules. A command that does not finish (timeout, a host failing) answers 200 with reward null and its failure_class, so a trainer masks it rather than scoring it 0. 501: the host cannot take the copy's network away, so nothing was run.

Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Idempotency-Keyheader · string
Send the same key to retry safely: for 24 hours the first answer is returned again (Idempotent-Replayed: true) instead of making more sandboxes. The same key with another body is 422 idempotency_mismatch; while the first is still running, a repeat waits for it (409 idempotency_in_progress after 25 s)
JSON body
cmdrequiredarray of string
The grader, e.g. ["pytest", "-q", "/grader/test_hidden.py"]
filesobject
Hidden files, {"/absolute/path": "<base64>"}: at most 64, 8 MiB in all. Written only in the copy
timeout_sinteger
Min 1. Max 90.
envarray of string
NAME=value
keepboolean
Keep the copy (with a 1 h lease) to look at; default false deletes it
run_idstring
Record the result as a rollout of this RL run
rolloutobject
—
rollout.stepinteger
—
rollout.groupstring
—
rollout.indexinteger
—
rollout.metaobject
—
Responses
200400401402403404409413422429501502503
curl -s -X POST https://api.kosa8.com/v1/sandboxes/$SBX/grade \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

TCP ports listening in its running containers#

GET/v1/sandboxes/{id}/portsscope sandboxes:read
Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Responses
200401403404409501502
curl -s -X GET https://api.kosa8.com/v1/sandboxes/$SBX/ports \
  -H "Authorization: Bearer $KOSA8_API_KEY"

The Templates gallery: one-click starter sandboxes, each with its size, network, secrets, setup and first win (public, cacheable)#

GET/v1/gallerypublic
Responses
200
curl -s -X GET https://api.kosa8.com/v1/gallery

One gallery template (public)#

GET/v1/gallery/{id}public
Parameters
idrequiredpath · string
Gallery template id, e.g. claude-code
Responses
200404
curl -s -X GET https://api.kosa8.com/v1/gallery/$SBX

Launch a gallery template: create its sandbox with every setting it names and start its setup, detached#

POST/v1/gallery/{id}/launchscope sandboxes:write

409 secret_required names the secrets to store first with PUT /v1/secrets/{name}; a launch never carries a secret's value.

Parameters
idrequiredpath · string
Gallery template id, e.g. claude-code
JSON body
namestring
—
size"2x4" | "4x8" | "8x16" | "16x32"
—
regionstring
—
ttl_sinteger
—
Responses
202400401402403404409429503
curl -s -X POST https://api.kosa8.com/v1/gallery/$SBX/launch \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Where a gallery launch is (booting, setting_up, ready or failed); starts its setup once the sandbox is up#

POST/v1/gallery/launches/{id}scope sandboxes:write
Parameters
idrequiredpath · string
Sandbox id (sbx_…)
Responses
200401403404
curl -s -X POST https://api.kosa8.com/v1/gallery/launches/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Templates the org can create from now: kosa8's, and the org's own (org_templates)#

GET/v1/templatesscope sandboxes:read
Responses
200401403
curl -s -X GET https://api.kosa8.com/v1/templates \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Build an org template from an image (tag or @sha256 digest) or a Dockerfile, kept as a snapshot new sandboxes restore from#

POST/v1/templatesscope sandboxes:write

Poll GET /v1/templates/{id} until ready, then POST /v1/sandboxes {"template": name}: a restore of its snapshot on the host that built it, not a cold pull. The build runs in a sandbox of the template's size, billed as one; the snapshot is billed as storage and counts toward the plan's snapshots. At most TEMPLATE_BUILDS_PER_ORG (2) build at once; the rest wait queued.

JSON body
namerequiredstring
—
imagestring
An OCI reference; give image or dockerfile
dockerfilestring
The Dockerfile's text. There is no build context: COPY/ADD only --from= a stage or a URL Max length 65536.
build_argsobject
—
setup_cmdarray of string | string
Run once in the booted template before it is saved (a string runs under sh -c)
size"2x4" | "4x8" | "8x16" | "16x32"
—
cpusinteger
—
mem_mbinteger
—
regionstring
—
Responses
202400401402403409429501
curl -s -X POST https://api.kosa8.com/v1/templates \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

Queue many image templates at once, such as RL task images by digest#

POST/v1/templates/importscope sandboxes:write

Each image becomes one template and one snapshot: the plan's snapshots limit bounds how many an org keeps (402 plan_limit past it, or failed entries with partial_ok).

JSON body
imagesrequiredarray of object
—
size"2x4" | "4x8" | "8x16" | "16x32"
—
cpusinteger
—
mem_mbinteger
—
setup_cmdarray of string | string
—
regionstring
—
partial_okboolean
Queue what can be queued and list the rest in failed, instead of refusing the call
Responses
202400401402403409429501
curl -s -X POST https://api.kosa8.com/v1/templates/import \
  -H "Authorization: Bearer $KOSA8_API_KEY" \
  -H 'Content-Type: application/json' -d @body.json

An org template, with its build log#

GET/v1/templates/{id}scope sandboxes:read
Parameters
idrequiredpath · string
Template id (tpl_…) or name
Responses
200401403404
curl -s -X GET https://api.kosa8.com/v1/templates/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"

Delete an org template: a build in flight stops and its snapshot is deleted; sandboxes made from it are not touched#

DELETE/v1/templates/{id}scope sandboxes:write
Parameters
idrequiredpath · string
Template id (tpl_…) or name
Responses
200401403404502
curl -s -X DELETE https://api.kosa8.com/v1/templates/$SBX \
  -H "Authorization: Bearer $KOSA8_API_KEY"

The kosa8 weekly

Agent security news, one industry deep-dive and a hands-on challenge, every Monday. Unsubscribe in one click.

© 2026 kosa8 · kosa8.com · AI Agent Sandbox: Secure and Sovereign for Enterprise · Local models served by llamay · Agent gateway: MAQPNA