Sandbox

Extend a running sandbox without shortening its deadline

Extend a running sandbox only when it needs a later expiry; this never resumes a paused sandbox. Timeout is seconds from now, not added to the prior deadline, and must be 900, 1800 or 3600. Returns 409 for paused, expired, or non-extending requests.

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

POST /sandbox/v1/sandboxes/{sandboxID}/extend● Supported

Request parameters

  • sandboxIDstring必填

    path: Sandbox ID.

  • timeoutnumber必填

    Seconds from now: 900, 1800, or 3600. Must extend the existing deadline.

Returns

200

Errors follow the E2B format — see error codes

Response

HTTP 200

Authoritative extended deadline

application/json

NameTypeDescription
endAtstringNew expiry time of the sandbox, UTC.