Sandbox API
Sandbox runs isolated environments for commands, files and HTTP services through /sandbox/v1, with an SDK-compatible face at /e2b. Concepts and behavior follow E2B (templates, builds, tags, sandboxes, files, commands and pause/resume), so E2B experience applies. Unlike E2B, the own face uses one v1 prefix; template builds reject local COPY/ADD, accept only official names in fromTemplate, and reject plaintext registry credentials. The own face accepts a Dockerfile and vault credential references for private images. network.httpsPorts is rejected; omit it. Sandbox also serves android phones: create one with templateID “android”. A phone is a real mobile device with a screen, not a terminal: it has no terminal, process or file API, so file reads and writes answer 501, and its commands do not take the E2B path. Drive the screen with praxis.sandbox.sandboxes.act and run shell commands with praxis.sandbox.sandboxes.commands.run. Start with praxis.sandbox.templates.build to build a template and wait for readiness.
Base URL
https://api.deepraxis.com/sandbox/v1
Get started
curl
curl https://api.deepraxis.com/sandbox/v1/sandboxes \
-H "X-API-Key: $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateID":"node22","timeout":300,"ephemeral":false}'Python
import os
import requests
api_key = os.environ["PRAXIS_API_KEY"]
# Call /sandbox/v1 directly over HTTP.
resp = requests.post(
"https://api.deepraxis.com/sandbox/v1/sandboxes",
headers={"X-API-Key": api_key},
json={"templateID": "node22", "timeout": 300, "ephemeral": False},
)
print(resp.status_code, resp.text)TypeScript
const apiKey = process.env.PRAXIS_API_KEY;
// Call /sandbox/v1 directly over HTTP.
const resp = await fetch(`https://api.deepraxis.com/sandbox/v1/sandboxes`, {
method: "POST",
headers: { "X-API-Key": apiKey, "Content-Type": "application/json" },
body: JSON.stringify({ templateID: "node22", timeout: 300, ephemeral: false }),
});
console.log(resp.status, await resp.text());HTTP and SDK access
Call /sandbox/v1 directly over HTTP with the X-API-Key header. Use the E2B-compatible API with the official E2B SDK. Changing its API URL alone cannot make it call these endpoints.
HTTP base URL: https://api.deepraxis.com/sandbox/v1.
Endpoints
| Method | Path | Description | Support |
|---|---|---|---|
| POST | /v1/templates | Request a template build | ● Supported |
| POST | /v1/templates/{templateID}/builds/{buildID} | Start a reserved template build | ◐ Partial |
| GET | /v1/templates/{templateID}/builds/{buildID}/status | Read build status and incremental logs | ● Supported |
| GET | /v1/templates/{templateID}/files/{hash} | Check local build file support | ○ Unsupported |
| GET | /v1/templates/{templateID} | Read a template and its builds | ● Supported |
| POST | /v1/templates/tags | Assign tags to a ready build | ● Supported |
| DELETE | /v1/templates/tags | Remove template tags | ● Supported |
| GET | /v1/templates/{templateID}/tags | List template build tags | ● Supported |
| GET | /v1/templates/aliases/{alias} | Resolve a template name | ● Supported |
| DELETE | /v1/templates/{templateID} | Delete a user template | ● Supported |
| POST | /v1/sandboxes | Create a sandbox | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/upgrade | Upgrade to a full sandbox | ● Supported |
| GET | /v1/sandboxes | List running sandboxes | ● Supported |
| GET | /v1/sandboxes/{sandboxID} | Get a sandbox | ● Supported |
| PATCH | /v1/sandboxes/{sandboxID} | Rename a sandbox | ● Supported |
| GET | /v1/sandboxes/{sandboxID}/metrics | Get sandbox metrics | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/timeout | Set sandbox timeout | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/pause | Pause a sandbox | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/connect | Connect to a sandbox | ● Supported |
| DELETE | /v1/sandboxes/{sandboxID} | Kill a sandbox | ● Supported |
| GET | /v1/templates | List templates | ● Supported |
| POST | /v1/volumes | Create team volume | ● Supported |
| GET | /v1/volumes | List team volumes | ● Supported |
| GET | /v1/volumes/{volumeID} | Team volume | ● Supported |
| DELETE | /v1/volumes/{volumeID} | Delete team volume | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/fork | Fork a sandbox | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/snapshots | Create a snapshot | ● Supported |
| GET | /v1/snapshots | List snapshots | ● Supported |
| DELETE | /v1/snapshots/{snapshotID} | Delete a snapshot | ● Supported |
| PUT | /v1/sandboxes/{sandboxID}/network | Update sandbox network | ● Supported |
| GET | /v1/sandboxes/{sandboxID}/logs | Get sandbox logs | ● Supported |
| GET | /v1/events/sandboxes/{sandboxID} | Get sandbox events | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/extend | Extend a running sandbox without shortening its deadline | ● Supported |
| GET | /v1/sandboxes/{sandboxID}/processes | List live processes and retained observations | ● Supported |
| GET | /v1/sandboxes/{sandboxID}/processes/{processID}/output | Read bounded observed process output | ● Supported |
| GET | /v1/sandboxes/{sandbox_id}/files:list | List files in a sandbox directory | ● Supported |
| GET | /v1/sandboxes/{sandbox_id}/files | Read a file in the sandbox | ● Supported |
| PUT | /v1/sandboxes/{sandbox_id}/files | Write a file in the sandbox | ● Supported |
| POST | /v1/sandboxes/{sandbox_id}/files:makeDir | Create a directory in the sandbox | ● Supported |
| DELETE | /v1/sandboxes/{sandbox_id}/files | Remove a file or directory in the sandbox | ● Supported |
| POST | /v1/sandboxes/{sandbox_id}/commands | Run a command in the sandbox | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/act | Act on a phone sandbox’s screen | ● Supported |
| POST | /v1/sandboxes/{sandboxID}/tasks | Start a task whose output is pushed off the machine while it runs | ● Supported |
| GET | /v1/sandboxes/{sandboxID}/tasks/{taskID}/log | Read a range of a task’s pushed output | ● Supported |
Differences from E2B
- Snapshots use platform IDs beginning with snap_, accepted as templateID when creating a sandbox. Retired vendor handles are rejected. Resume a paused sandbox by connecting to it.
- Only endpoints declared on this page are offered. Unadopted endpoints such as webhooks return 404.
- Start a reserved template build:differs from the official behaviour
- Check local build file support:differs from the official behaviour
- Create a sandbox:Like E2B, creating without a templateID uses the default base template; to use another, pick a templateID from List templates. Every sandbox declares its lifecycle at creation. On the own face (X-Praxis-Face: own-v1) send ephemeral: true for an ephemeral sandbox (never pauses, deleted when it ends; for jobs) or ephemeral: false for a persistent one (pauses, snapshots, mounts volumes; for long-lived computers); leaving it out returns INVALID_PARAMS. The E2B-compatible face declares with autoPause: true is persistent, false or absent is ephemeral. Persistent-only fields (autoPause: true, onExpire: pause, autoPauseMemory, autoResume, idleTimeout, retention, volumes) need ephemeral: false. Choose persistent only for long-lived computers. Reaching a sandbox whose machine has ended returns SANDBOX_EXPIRED (410): its files are gone, create a new sandbox. To keep results, declare outputs: [{ path }] on the own face (up to eight absolute paths): on any ending except provider loss or a failed start each is stored in File as .tar.gz, and the killed event lists each fileId or why it was not kept; the E2B face refuses outputs. Responses echo ephemeral.
- Get sandbox events:Reads one sandbox’s lifecycle events in ledger order, newest first by default. Unlike every other read it answers after the sandbox has ENDED (killed or failed) — the machine is gone but its cause of death is still readable. The killed event’s eventData.terminationReason is the platform’s own reason (requested, lease_expired, max_running, provider_lost, start_failed, retention, admin, unknown) and kill_reason is the E2B-shaped bucket (request, timeout, admin, orphaned, unknown); the updated event carries expiresAt. Page with offset, limit (1–100, default 10), orderAsc and repeatable types. A sandbox judged not to be coming back answers SANDBOX_EXPIRED (410) with terminationReason on its files and commands.
For authoritative parameter definitions, see the official E2B documentation.
Errors follow the E2B format, see errors; quotas and response headers are covered in rate limits.