Sandboxes
Audit log
Every create, command, file access, approval, blocked connection and destroy, with who did it and when.
Everything that happens to a sandbox is written to your organization's audit log. Each event records who did it (a person, or an API key by name), what they did, and when.
Read it
# Your whole organization, newest first
curl -s "$QR_BASE_URL/api/v1/audit?limit=100" -H "Authorization: Bearer $QR_API_KEY"
# One sandbox
curl -s "$QR_BASE_URL/api/v1/sandboxes/$SBX/audit" -H "Authorization: Bearer $QR_API_KEY"
# One kind of event
curl -s "$QR_BASE_URL/api/v1/audit?action=exec.run" -H "Authorization: Bearer $QR_API_KEY"Each event has an increasing seq. To page back, pass before=<the smallest seq you have>. The dashboard can export the log as JSON.
{
"seq": 1042,
"sandboxId": "sbx_7f3a9c2e1b4d6a",
"actorKind": "api_key",
"actorLabel": "key ci-agent (qr_live_3f…)",
"action": "exec.run",
"detail": { "executionId": "exe_…", "cmd": "python3 main.py", "exitCode": 0, "durationMs": 41, "status": "completed" },
"createdAt": "2026-11-29T17:41:12.311Z"
}Events
| Action | When |
|---|---|
sandbox.create | A sandbox started. Detail has the size, template, image, region and network rule. |
sandbox.destroy | Destroyed by a call, or stopped at its deadline. |
sandbox.timeout | The deadline was moved. |
sandbox.pause, sandbox.resume | Paused or resumed. |
sandbox.error | Failed to start or resume. |
exec.run | A command ran: the command, exit code, duration. |
exec.pending_approval | A command was held by a rule. |
exec.approved, exec.denied | A person decided. |
file.read, file.write, file.delete | A file was touched, with its path and size. |
egress.allowed, egress.blocked | An outbound connection, allowed or blocked, with the domain and bytes sent. |
snapshot.create, snapshot.restore, snapshot.delete | Snapshots. |
Environment variable values are never written to the log, only their names.
How long the log is kept depends on your plan: 7 days on Free, 90 on Team and a year on Enterprise.