Get sandbox logs
Call Create sandbox first and replace sbx_123 with its returned sandboxID.
GET
/sandbox/v1/sandboxes/{sandboxID}/logs● SupportedRequest parameters
sandboxIDstringrequiredpath: Sandbox ID.
cursorintegeroptionalquery: Starting timestamp in Unix milliseconds.
limitintegeroptionalquery: Maximum log entries to return.
directionstringoptionalquery: Read forward or backward in time.
levelstringoptionalquery: Minimum log level to return.
searchstringoptionalquery: Case-sensitive substring filter on log messages.
Returns
200
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/sandboxes/sbx_123/logs \
-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/sandboxes/sbx_123/logs",
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/sandboxes/sbx_123/logs`, {
headers: { "X-API-Key": apiKey },
});
console.log(resp.status, await resp.text());Response 200
{
"logs": [
{
"timestamp": "2026-10-04T16:10:49.509781499Z",
"level": "debug",
"message": "Started creating sandbox",
"fields": {
"pid": "1"
}
}
]
}Response
HTTP 200
Successfully returned the sandbox logs
application/json
| Name | Type | Description |
|---|---|---|
| logs | array<object> | Sandbox logs structured |
| logs[].timestamp | string | Timestamp of the log entry |
| logs[].message | string | Log message content |
| logs[].level | string | State of the sandbox |
| logs[].fields | object | Structured key/value fields attached to the log line. |