Extend a running sandbox without shortening its deadline
Call Create sandbox first and replace sbx_123 with its returned sandboxID.
POST
/sandbox/v1/sandboxes/{sandboxID}/extend● SupportedRequest parameters
sandboxIDstringrequiredpath: Sandbox ID.
timeoutnumberrequiredSeconds from now: 900, 1800, or 3600. Must extend the existing deadline.
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/extend \
-H "X-API-Key: $PRAXIS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"timeout":900}'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.post(
"https://api.deepraxis.com/sandbox/v1/sandboxes/sbx_123/extend",
headers={"X-API-Key": api_key},
json={"timeout": 900},
)
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/extend`, {
method: "POST",
headers: { "X-API-Key": apiKey, "Content-Type": "application/json" },
body: JSON.stringify({ timeout: 900 }),
});
console.log(resp.status, await resp.text());Response 200
{
"endAt": "2026-10-23T01:52:43.591Z"
}Response
HTTP 200
Authoritative extended deadline
application/json
| Name | Type | Description |
|---|---|---|
| endAt | string | New expiry time of the sandbox, UTC. |