How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

E2B Sandboxes API

The sandboxes API from E2B — 13 operation(s) for sandboxes.

E2B Sandboxes API is one of 15 APIs that E2B publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

This API exposes 2 JSON Schema definitions.

Tagged areas include Sandbox. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, a JSON-LD context, and 2 JSON Schemas.

This API exposes 15 operations across 13 paths, and defines 30 schemas. It is described by OpenAPI 3.2.0, at version 0.1.0.

Requests are made against a single base URL, https://api.e2b.app.

15 operations 13 paths 30 schemas 1 DELETE7 GET7 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.1.0
Base URL
https://api.e2b.app
Authentication
API Key, HTTP Bearer, API Key, API Key, API Key
Resource Areas
1

Authentication & Security 5

E2B Sandboxes API declares 5 security schemes for authenticating requests. An API key is passed in the header as X-API-Key (ApiKeyAuth). It accepts HTTP bearer tokens (access_token) (AccessTokenAuth). An API key is passed in the header as X-Supabase-Token (Supabase1TokenAuth). An API key is passed in the header as X-Supabase-Team (Supabase2TeamAuth). An API key is passed in the header as X-Admin-Token (AdminTokenAuth).

Paths & Operations 15

Across 13 paths, the API surfaces 15 operations — 1 DELETE, 7 GET, 7 POST. Each is listed below with its method, path, parameters, and response codes.

Sandboxes 15
GET
/sandboxes
Get sandboxes
getSandboxes 1 param → 200401400500
POST
/sandboxes
Create sandboxes
postSandboxes body → 201401400500
GET
/v2/sandboxes
Get sandboxes
getV2Sandboxes 4 params → 200401400500
GET
/sandboxes/metrics
Get sandboxes metrics
getSandboxesMetrics 1 param → 200401400500
GET
/sandboxes/{sandboxID}/logsdeprecated
Get sandboxes by sandbox id logs
getSandboxesBySandboxIDLogs 3 params → 200404401500
GET
/v2/sandboxes/{sandboxID}/logs
Get sandboxes by sandbox id logs
getV2SandboxesBySandboxIDLogs 6 params → 200401404500
GET
/sandboxes/{sandboxID}
Get sandboxes by sandbox id
getSandboxesBySandboxID 1 param → 200404401500
DELETE
/sandboxes/{sandboxID}
Delete sandboxes by sandbox id
deleteSandboxesBySandboxID 1 param → 204404401500
GET
/sandboxes/{sandboxID}/metrics
Get sandboxes by sandbox id metrics
getSandboxesBySandboxIDMetrics 3 params → 200400401404500
POST
/sandboxes/{sandboxID}/pause
Create sandboxes by sandbox id pause
postSandboxesBySandboxIDPause 1 param → 204409404401500
POST
/sandboxes/{sandboxID}/resumedeprecated
Create sandboxes by sandbox id resume
postSandboxesBySandboxIDResume 1 param body → 201409404401500
POST
/sandboxes/{sandboxID}/connect
Create sandboxes by sandbox id connect
postSandboxesBySandboxIDConnect 1 param body → 200201400401404500
POST
/sandboxes/{sandboxID}/timeout
Create sandboxes by sandbox id timeout
postSandboxesBySandboxIDTimeout 1 param body → 204401404500
POST
/sandboxes/{sandboxID}/refreshes
Create sandboxes by sandbox id refreshes
postSandboxesBySandboxIDRefreshes 1 param body → 204401404
POST
/sandboxes/{sandboxID}/snapshots
Create sandboxes by sandbox id snapshots
postSandboxesBySandboxIDSnapshots 1 param body → 201400401404500

Schemas 30

The contract defines 30 schemas that model the data the API accepts and returns. The most detailed are SandboxDetail (18 properties), ListedSandbox (13 properties), NewSandbox (11 properties), SandboxMetric (8 properties). Each schema is shown below with its type and property counts.

SandboxOnTimeout
string
Action taken when the sandbox times out.
EnvdVersion
string
Version of the envd running in the sandbox
NewSandbox
object
11 properties 1 required
DiskSizeMB
integer
Disk size for the sandbox in MiB
LogLevel
string
State of the sandbox
ListedSandbox
object
13 properties 10 required
Sandbox
object
8 properties 4 required
SandboxesWithMetrics
object
1 property 1 required
SandboxAutoResumeConfig
object
Auto-resume configuration for paused sandboxes.
1 property 1 required
SandboxLogsV2Response
object
1 property 1 required
SandboxNetworkConfig
object
4 properties
SandboxLogs
object
2 properties 2 required
ConnectSandbox
object
1 property 1 required
MemoryMB
integer
Memory for the sandbox in MiB
ResumedSandbox
object
2 properties
SandboxLog
object
Log entry with timestamp and line
2 properties 2 required
CPUCount
integer
CPU cores for the sandbox
LogsDirection
string
Direction of the logs that should be returned
Mcp
objectnull
MCP configuration for the sandbox
SandboxLogEntry
object
4 properties 4 required
EnvVars
SandboxVolumeMount
object
2 properties 2 required
SandboxAutoResumeEnabled
boolean
Auto-resume enabled flag for paused sandboxes. Default false.
SandboxMetadata
SandboxState
string
State of the sandbox
SandboxMetric
object
Metric entry with timestamp and line
8 properties 8 required
SandboxLifecycle
object
Sandbox lifecycle policy returned by sandbox info.
2 properties 2 required
SandboxDetail
object
18 properties 10 required
SnapshotInfo
object
2 properties 2 required
Error
object
2 properties 2 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

e2b-dev-sandboxes-api-openapi.yml Raw ↑

Other APIs E2B publishes across the network.

E2B Code Interpreter SDK
E2B Desktop Sandbox SDK
E2B Access Tokens API
E2B Admin API
E2B API Keys API
E2B Auth API
E2B Events API
E2B Health API
E2B Snapshots API
E2B Tags API
E2B Templates API
E2B Volumes API
Where this information came from

This is an independent, third-party profile of E2B Sandboxes API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.