Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Maintenance May 12, 8–9 PM PDT (May 13, 03:00–04:00 UTC). ~1 min disruption to sandbox management may occur. Already running sandboxes will not be affected. Questions? Contact us
Get a sandbox by id
curl --request GET \
--url https://api.e2b.app/sandboxes/{sandboxID} \
--header 'X-API-Key: <api-key>'{
"templateID": "<string>",
"sandboxID": "<string>",
"clientID": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"endAt": "2023-11-07T05:31:56Z",
"envdVersion": "<string>",
"cpuCount": 2,
"memoryMB": 129,
"diskSizeMB": 1,
"state": "running",
"alias": "<string>",
"envdAccessToken": "<string>",
"allowInternetAccess": true,
"domain": "<string>",
"metadata": {},
"network": {
"allowPublicTraffic": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
],
"maskRequestHost": "<string>"
},
"lifecycle": {
"autoResume": true,
"onTimeout": "kill"
},
"volumeMounts": [
{
"name": "<string>",
"path": "<string>"
}
]
}Documentation Index
Fetch the complete documentation index at: https://e2b-banner-hover-tooltip.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Successfully returned the sandbox
Identifier of the template from which is the sandbox created
Identifier of the sandbox
Identifier of the client
Time when the sandbox was started
Time when the sandbox will expire
Version of the envd running in the sandbox
CPU cores for the sandbox
x >= 1Memory for the sandbox in MiB
x >= 128Disk size for the sandbox in MiB
x >= 0State of the sandbox
running, paused Alias of the template
Access token for authenticating envd requests to this sandbox. Only returned when the sandbox is created with secure: true. Null for non-secure sandboxes (envd endpoints work without auth).
Whether internet access was explicitly enabled or disabled for the sandbox. Null means it was not explicitly set.
Deprecated: always null. Construct sandbox URLs as https://{port}-{sandboxID}.e2b.app.
Show child attributes
Show child attributes
Sandbox lifecycle policy returned by sandbox info.
Show child attributes
Show child attributes
Was this page helpful?
curl --request GET \
--url https://api.e2b.app/sandboxes/{sandboxID} \
--header 'X-API-Key: <api-key>'{
"templateID": "<string>",
"sandboxID": "<string>",
"clientID": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"endAt": "2023-11-07T05:31:56Z",
"envdVersion": "<string>",
"cpuCount": 2,
"memoryMB": 129,
"diskSizeMB": 1,
"state": "running",
"alias": "<string>",
"envdAccessToken": "<string>",
"allowInternetAccess": true,
"domain": "<string>",
"metadata": {},
"network": {
"allowPublicTraffic": true,
"allowOut": [
"<string>"
],
"denyOut": [
"<string>"
],
"maskRequestHost": "<string>"
},
"lifecycle": {
"autoResume": true,
"onTimeout": "kill"
},
"volumeMounts": [
{
"name": "<string>",
"path": "<string>"
}
]
}