quiet robotBook a call

Sandboxes

Snapshots

Save a copy of a sandbox's files and start new sandboxes from it.

View as Markdown

Sandboxes is in early access. It is free to try, some parts are still in testing, and details may change. Sign up free

Not live yet

Snapshots are built and work in our tests. They are still in testing and not in the product yet.

A snapshot is a saved copy of a sandbox's files: everything in the home folder, /home/sandbox, including packages installed there (for example a Python virtual environment or node_modules). Use it to set something up once and start many sandboxes from it.

A snapshot holds files only. Memory and running processes aren't saved; for those, use pause and resume.

Save one

Terminal
curl -s -X POST "$QR_BASE_URL/api/v1/sandboxes/$SBX/snapshots" \
  -H "Authorization: Bearer $QR_API_KEY" -H "Content-Type: application/json" \
  -d '{"name":"python-deps"}'

The sandbox keeps running. The call returns when the snapshot is ready:

JSON
{ "id": "snp_4c1e7a9b2d3f5e", "name": "python-deps", "status": "ready", "sizeBytes": 48211337, "sourceSandboxId": "sbx_7f3a9c2e1b4d6a", "createdAt": "…" }

Start from one

Pass snapshotId when you create a sandbox. It starts with those files in its home folder. Everything else (size, region, network rule, timeout) is set as usual.

TypeScript
const snap = await sbx.snapshot("python-deps");
const worker = await qr.create({ snapshotId: snap.id, timeoutSec: 600 });

The new sandbox's fromSnapshotId says where it came from.

List and delete

CallNotes
GET /api/v1/snapshotsEvery snapshot in your organization, newest first.
GET /api/v1/sandboxes/{id}/snapshotsSnapshots taken from one sandbox.
GET /api/v1/snapshots/{id}One snapshot.
DELETE /api/v1/snapshots/{id}Delete it.

Snapshots are kept until you delete them, even after the sandbox they came from is gone.

Limits

PlanSnapshots keptLargest snapshot (compressed)
Free31 GB
Team1005 GB
Enterprise1,00010 GB

Over the count you get 403 plan_limit; delete one first. Over the size you get 413 too_large.