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
| Parameter | Required | Type | Description |
|---|---|---|---|
sandboxID | Yes | string | Unique instance ID. |
Request example
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.