Skip to main content
POST
/
sandboxes
/
{sandbox_id}
/
snapshot
Snapshot a sandbox
curl --request POST \
  --url https://api.tensorlake.ai/sandboxes/{sandbox_id}/snapshot \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "snapshot_content_mode": "full"
}
'
{
  "snapshot_id": "<string>",
  "status": "<string>"
}
Create a snapshot of a running sandbox so you can restore the same filesystem and memory state later.

Endpoint

POST /sandboxes/{sandbox_id}/snapshot

Example Request

curl -X POST https://api.tensorlake.ai/sandboxes/<sandbox-id>/snapshot \
  -H "Authorization: Bearer $TENSORLAKE_API_KEY"
Use the created snapshot with Restore Sandbox when you want to boot a new sandbox from that saved state. For the broader snapshot lifecycle, including listing and deleting snapshots, see Snapshots.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

sandbox_id
string
required

The ID of the sandbox.

Body

application/json
snapshot_content_mode
enum<string>

Snapshot content policy. full captures the complete snapshot. filesystem_only is reserved for filesystem-only snapshots.

Available options:
full,
filesystem_only

Response

Snapshot creation initiated

snapshot_id
string
required
status
string
required