Skip to content
中文

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-Key header; 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.com with the access token returned when the sandbox was created — so besides api_url the SDK also needs domain set to sandbox.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

MethodPathDescriptionSupport
POST/v3/templatesRequest a template build● Supported
POST/v2/templates/{templateID}/builds/{buildID}Start a reserved template build◐ Partial
GET/templates/{templateID}/builds/{buildID}/statusRead 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/tagsAssign tags to a ready build● Supported
DELETE/templates/tagsRemove template tags● Supported
GET/templates/{templateID}/tagsList template build tags● Supported
GET/templates/aliases/{alias}Resolve a template name● Supported
POST/sandboxesCreate a sandbox● Supported
GET/sandboxesList running sandboxes● Supported
GET/sandboxes/{sandboxID}Get a sandbox● Supported
GET/sandboxes/{sandboxID}/metricsGet sandbox metrics● Supported
POST/sandboxes/{sandboxID}/timeoutSet sandbox timeout● Supported
POST/sandboxes/{sandboxID}/pausePause a sandbox● Supported
POST/sandboxes/{sandboxID}/connectConnect to a sandbox● Supported
DELETE/sandboxes/{sandboxID}Kill a sandbox● Supported
POST/v2/sandboxesCreate a sandbox (v2)● Supported
GET/v2/sandboxesList sandboxes (v2)● Supported
POST/v2/sandboxes/{sandboxID}/connectConnect to a sandbox (v2)● Supported
GET/templatesList templates● Supported
GET/v2/templatesList templates (v2)● Supported
POST/volumesCreate team volume● Supported
GET/volumesList team volumes● Supported
GET/volumes/{volumeID}Team volume● Supported
DELETE/volumes/{volumeID}Delete team volume● Supported
POST/sandboxes/{sandboxID}/forkFork a sandbox● Supported
POST/sandboxes/{sandboxID}/snapshotsCreate a snapshot● Supported
GET/snapshotsList snapshots● Supported
DELETE/templates/{templateID}Delete a snapshot● Supported
PUT/sandboxes/{sandboxID}/networkUpdate sandbox network● Supported
GET/v2/sandboxes/{sandboxID}/logsGet 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.