---
title: "Park the run's sandbox without ending the run"
description: "Stops the live microVM and settles the lease + target to stopped WITHOUT ending the run: the explicit-stop receipt is recorded (minting the automatic..."
api_method: POST
api_path: "/v1/agent-runs/{runId}/sandbox/stop"
canonical_url: https://wiblo.app/docs/developers/api/agent-runs/stop-agent-sandbox
last_updated: 2026-07-28T17:31:44+02:00
md_url: https://wiblo.app/docs/developers/api/agent-runs/stop-agent-sandbox.md
---

# Park the run's sandbox without ending the run

`POST /v1/agent-runs/{runId}/sandbox/stop`

Stops the live microVM and settles the lease + target to `stopped` WITHOUT ending the run: the explicit-stop receipt is recorded (minting the automatic snapshot that makes the park resumable) and the next message reprovisions, snapshot-first. Unlike end, the model credential survives and no terminal run status is written. Idempotent — parking an already-stopped session reports its state. Per-user rate-limited at 15/60s.

## Path parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | `string` | Yes |  |

## Request

**curl**

```bash
curl https://api.wiblo.app/v1/agent-runs/{runId}/sandbox/stop \
  -X POST \
  -H "Authorization: Bearer $WIBLO_TOKEN"
```

**TypeScript**

```ts
import { createSdk, stopAgentSandbox } from "@workspace/sdk"

const sdk = createSdk({ baseUrl: "https://api.wiblo.app" })

const { data, error } = await stopAgentSandbox({
  client: sdk,
  path: { runId: "..." },
})
```

## Responses

**`200`** — The sandbox was parked (or already stopped). Returns `StopAgentSandboxResponse`.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `runId` | `string` | Yes |  |
| `status` | `"provisioning" \| "active" \| "disconnected" \| "hibernating" \| "hibernated" \| "failed" \| ...` | Yes |  |
| `needsReprovision` | `boolean` | Yes |  |
| `snapshot` | `AgentRunSnapshotStatus` | Yes |  |

**`401`** — No valid session cookie or `wbl_*` bearer was present. Returns `ApiErrorEnvelope`.

**`404`** — No run visible to the caller with this id (`AGENT_RUN_NOT_FOUND`). Returns `ApiErrorEnvelope`.

**`422`** — Path param failed UUID validation (`INVALID_PARAMS`). Returns `ApiErrorEnvelope`.

**`429`** — Rate limit exceeded. The body's `error.code` is `RATE_LIMITED` and `error.details.retry_after` is the same number of seconds as the `Retry-After` header. Returns `ApiErrorEnvelope`.

### The AgentRunSnapshotStatus object

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `available` | `boolean` | Yes |  |
| `expiresAt` | `string \| null` | No | Defaults to `null`. |
