E2B-compatible API
Base URL
https://api.deepraxis.com/e2b
Get started
curl
curl https://api.deepraxis.com/e2b/sandboxes \
-H "X-API-Key: $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"templateID":"node22","timeout":300,"autoPause":false}'Python
import os
from e2b import Sandbox
opts = dict(
api_key=os.environ["PRAXIS_API_KEY"],
api_url="https://api.deepraxis.com/e2b",
domain="sandbox.praxisusercontent.com",
)
sandbox = Sandbox.create(template="node22", timeout=300, **opts)
print(sandbox.sandbox_id)TypeScript
import { Sandbox } from "e2b";
const opts = {
apiKey: process.env.PRAXIS_API_KEY,
apiUrl: "https://api.deepraxis.com/e2b",
domain: "sandbox.praxisusercontent.com",
};
const sandbox = await Sandbox.create("node22", { ...opts, timeoutMs: 300_000 });
console.log(sandbox.sandboxId);Control plane and data plane
- Control plane: the endpoints listed on this page (create, list, pause, connect, kill …) live at the base URL above and authenticate with your API key (the
X-API-Keyheader; the official SDK sends it for you). - Data plane: running commands and reading files inside a sandbox goes straight to
<port>-<sandbox ID>.sandbox.praxisusercontent.comwith the access token returned when the sandbox was created — so besidesapi_urlthe SDK also needsdomainset tosandbox.praxisusercontent.com.
Or leave the code alone and set environment variables:
export E2B_API_KEY=$PRAXIS_API_KEY
export E2B_API_URL=https://api.deepraxis.com/e2b
export E2B_DOMAIN=sandbox.praxisusercontent.com
Endpoints
| Method | Path | Description | Support |
|---|---|---|---|
| POST | /v3/templates | Request a template build | ● Supported |
| POST | /v2/templates/{templateID}/builds/{buildID} | Start a reserved template build | ◐ Partial |
| GET | /templates/{templateID}/builds/{buildID}/status | Read build status and incremental logs | ● Supported |
| GET | /templates/{templateID}/files/{hash} | Check local build file support | ○ Unsupported |
| GET | /templates/{templateID} | Read a template and its builds | ● Supported |
| POST | /templates/tags | Assign tags to a ready build | ● Supported |
| DELETE | /templates/tags | Remove template tags | ● Supported |
| GET | /templates/{templateID}/tags | List template build tags | ● Supported |
| GET | /templates/aliases/{alias} | Resolve a template name | ● Supported |
| POST | /sandboxes | Create a sandbox | ● Supported |
| GET | /sandboxes | List running sandboxes | ● Supported |
| GET | /sandboxes/{sandboxID} | Get a sandbox | ● Supported |
| GET | /sandboxes/{sandboxID}/metrics | Get sandbox metrics | ● Supported |
| POST | /sandboxes/{sandboxID}/timeout | Set sandbox timeout | ● Supported |
| POST | /sandboxes/{sandboxID}/pause | Pause a sandbox | ● Supported |
| POST | /sandboxes/{sandboxID}/connect | Connect to a sandbox | ● Supported |
| DELETE | /sandboxes/{sandboxID} | Kill a sandbox | ● Supported |
| POST | /v2/sandboxes | Create a sandbox (v2) | ● Supported |
| GET | /v2/sandboxes | List sandboxes (v2) | ● Supported |
| POST | /v2/sandboxes/{sandboxID}/connect | Connect to a sandbox (v2) | ● Supported |
| GET | /templates | List templates | ● Supported |
| GET | /v2/templates | List templates (v2) | ● Supported |
| POST | /volumes | Create team volume | ● Supported |
| GET | /volumes | List team volumes | ● Supported |
| GET | /volumes/{volumeID} | Team volume | ● Supported |
| DELETE | /volumes/{volumeID} | Delete team volume | ● Supported |
| POST | /sandboxes/{sandboxID}/fork | Fork a sandbox | ● Supported |
| POST | /sandboxes/{sandboxID}/snapshots | Create a snapshot | ● Supported |
| GET | /snapshots | List snapshots | ● Supported |
| DELETE | /templates/{templateID} | Delete a snapshot | ● Supported |
| PUT | /sandboxes/{sandboxID}/network | Update sandbox network | ● Supported |
| GET | /v2/sandboxes/{sandboxID}/logs | Get sandbox logs | ● Supported |
Differences from E2B
- Start a reserved template build:differs from the official behaviour
- Check local build file support:differs from the official behaviour
- Create a sandbox:Deprecated: the latest official SDK uses v2. Like E2B, creating without a templateID uses the default base template; to use another, pick a templateID from List templates. Declare the lifecycle with autoPause: true is persistent (pauses, snapshots; for long-lived computers), false or absent is ephemeral (ends at its timeout and keeps nothing). Reaching a sandbox whose machine has ended returns SANDBOX_EXPIRED (410); create a new sandbox.
- List running sandboxes:Deprecated: the latest official SDK uses v2.
- Connect to a sandbox:Deprecated: the latest official SDK uses v2.
- List templates:Deprecated: the latest official SDK uses v2.
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.