Skip to main content

Pause sandbox

Pause a specific instance while preserving its file system and memory state. The instance resumes automatically the next time you connect to it. Compatible with the E2B pause protocol and corresponds to pause() in the SDK.

Prerequisites

Configure the endpoint and authentication first. See API overview and authentication.

Endpoint

POST /sandboxes/{sandboxID}/pause Pause a specific instance while preserving its file system and memory state. The instance resumes automatically the next time you connect to it. Compatible with the E2B pause protocol and corresponds to pause() in the SDK.

Path parameters

ParameterRequiredTypeDescription
sandboxIDYesstringUnique instance ID.

Request example

curl -X POST "$BASE_URL/sandboxes/sbx-xxx/pause" \
  -H "Authorization: Bearer $BAILIAN_API_KEY"
BASE_URL is https://{workspace_id}.cn-beijing.maas.aliyuncs.com/api/v1/agentstudio/sandbox, and BAILIAN_API_KEY is your Alibaba Cloud Model Studio API key.

Response

Returns 204 with no response body on success.
Managed Agent API
Flow Agent API
RAG API
Long-term Memory
ParseX API
Security API
Framework Integration