Skip to content
中文

Get sandbox events

Call Create sandbox first and replace sbx_123 with its returned sandboxID.

GET/sandbox/v1/events/sandboxes/{sandboxID}● Supported

Official E2B docs ↗

Request parameters

  • sandboxIDstringrequired

    path: Sandbox ID.

  • offsetintegeroptional
    default 0

    query: Number of the newest events to skip before collecting the page; omit to start at the first one. Use it with limit to walk pages: the next page is offset + limit.

  • limitintegeroptional
    default 10

    query: Page size from 1 to 100; defaults to 10. A larger value returns INVALID_PARAMS rather than being clipped.

  • orderAscbooleanoptional
    default false

    query: true returns the oldest event first, false or omitted returns the newest first. Only the literal spellings true and false are accepted.

  • typesarrayoptional

    query: Filter events to the provided event types

Returns

200

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.

Errors follow the E2B format — see error codes

Request

curl
# Call Create sandbox first and replace sbx_123 with its returned sandboxID.
curl https://api.deepraxis.com/sandbox/v1/events/sandboxes/sbx_123 \
  -H "X-API-Key: $PRAXIS_API_KEY"
Python
# Call Create sandbox first and replace sbx_123 with its returned sandboxID.
import requests

api_key = "$PRAXIS_API_KEY"

# Call /sandbox/v1 directly over HTTP.
resp = requests.get(
    "https://api.deepraxis.com/sandbox/v1/events/sandboxes/sbx_123",
    headers={"X-API-Key": api_key},
)
print(resp.status_code, resp.text)
TypeScript
// Call Create sandbox first and replace sbx_123 with its returned sandboxID.
const apiKey = "$PRAXIS_API_KEY";

// Call /sandbox/v1 directly over HTTP.
const resp = await fetch(`https://api.deepraxis.com/sandbox/v1/events/sandboxes/sbx_123`, {
  headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());

Response 200

[
  {
    "id": "f3cb8244-e8f2-4bc7-ab7b-705a11f64323",
    "version": "v1",
    "type": "sandbox.lifecycle.created",
    "eventData": null,
    "timestamp": "2026-11-07T23:53:48.086Z",
    "sandboxId": "sbi85f585bba9afeab3c04374cd",
    "sandboxExecutionId": "i1nz6xi2lcu8uy0mjlufs",
    "sandboxTemplateId": "base",
    "sandboxBuildId": "sbr_base-base_node22@8892a414498c920e4e5fc8ed54891651ffe25e7458384b4ec998ea44a1fd72a2",
    "sandboxTeamId": "org_p2kym2xej30tszztrfwbk718t"
  }
]

Response

HTTP 200

Successfully returned the sandbox events

application/json

Name Type Description
[].id string Event unique identifier
[].version string Event structure version
[].type string Event name
[].eventCategory string Category of the event (e.g., 'lifecycle', 'process', etc.)
[].eventLabel string Label for the specific event type (e.g., 'sandbox_started', 'process_oom', etc.)
[].eventData object Optional JSON data associated with the event
[].timestamp string Timestamp of the event
[].sandboxId string Unique identifier for the sandbox
[].sandboxExecutionId string Unique identifier for the sandbox execution
[].sandboxTemplateId string Unique identifier for the sandbox template
[].sandboxBuildId string Unique identifier for the sandbox build
[].sandboxTeamId string Team identifier associated with the sandbox