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
Set the timeout for the sandbox. The sandbox will expire x seconds from the time of the request. Calling this method multiple times overwrites the TTL, each time using the current timestamp as the starting point to measure the timeout duration.
curl --request POST \
--url https://api.e2b.app/sandboxes/{sandboxID}/timeout \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"timeout": 1
}'{
"code": 123,
"message": "<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.
Was this page helpful?
curl --request POST \
--url https://api.e2b.app/sandboxes/{sandboxID}/timeout \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"timeout": 1
}'{
"code": 123,
"message": "<string>"
}