Sandbox
Pause a sandbox
Pause a running sandbox, keeping its files and memory.
Call Create sandbox first and replace sbx_123 with its returned sandboxID.
POST
/sandbox/v1/sandboxes/{sandboxID}/pause● SupportedRequest parameters
sandboxIDstring必填path: Sandbox ID.
memoryboolean可选Whether to capture a full memory snapshot. When false, only the filesystem is persisted and resuming the sandbox cold-boots (reboots) it from disk, losing in-memory state, running processes, and open connections. Resume it with an explicit request (connect or resume); auto-resume, which can be triggered by arbitrary traffic, refuses such a sandbox. Defaults to true.
Returns
204
Errors follow the E2B format — see error codes
Response
HTTP 204
The sandbox was paused successfully and can be resumed
No response body is declared.