latestOpenAPI 3.1.02026-08-149289225.1 KB

664536fccd0e

SandboxSnapshots

Start capturing a snapshot from a running sandbox

Validates the request, records a snapshot in the capturing state, and runs the (slow) Daytona capture in the background. Returns 202 immediately; poll the listing for the row to reach active/failed.

post/api/v0beta1/sandbox-snapshots

Request body

sandbox_idstring

Source sandbox, by id.

sandbox_namestring

Source sandbox, by name.

sandbox_refstring

Source sandbox, by id or name; rejected if both match.

namestring required
descriptionstring
mode'scrub_and_delete' | 'full'

scrub_and_delete (default): remove Amika-injected secrets (credential files + injected env vars) from the sandbox, capture the snapshot from the clean filesystem, then delete the source sandbox. full: capture everything as-is — including secrets — and keep the sandbox running.

Response

Snapshot capture started.

idstring required
snapshotstring required
providerstring required
descriptionstring nullable required
source_sandbox_idstring nullable required
source_sandbox_namestring nullable required
repository_idstring nullable required
repository_urlstring nullable required
base_snapshotstring nullable required
sandbox_presetstring nullable required
sandbox_sizestring nullable required
capture_modestring nullable required
statestring required
error_messagestring nullable required