---
title: "Stop the agent in a sandbox"
method: POST
path: "/sandboxes/{sandboxId}/stop"
tags: ["sandboxes"]
---

# Stop the agent in a sandbox

`POST /sandboxes/{sandboxId}/stop`

## Request

- Base URL: `https://api.letsship.ai/v1`
- URL: `https://api.letsship.ai/v1/sandboxes/{sandboxId}/stop`
- Auth: none declared

Ends the run before it finishes. Its work in progress is lost, and its status becomes `stopped`. The platform stops the sandbox a few seconds after this call, so read the sandbox again to see the new status. Only an org admin can stop a sandbox.

## Path parameters

- `sandboxId` string, required

## Response `200`

Stop requested

- StopSandboxResponse
  - `ok` boolean, required
  - `sandboxId` string, required

## Other responses

- `403`: Role insufficient
- `404`: Not found

---

[API](https://skmtc.dev/letsship/apis/ship-api.md) · [All operations](https://skmtc.dev/letsship/apis/ship-api/llms.txt) · [OpenAPI document](https://skmtc.dev/letsship/apis/ship-api/revisions/e6eac1bcadd4?raw)
