# Clone a sandbox

Collection: api
Human docs: https://zei.sh/docs/api

Create a new sandbox from an existing sandbox state.

POST /public/sandboxes/:sandboxId/clone
Permission: MACHINE_CREATE.
Use clones for parallel agent branches and repeatable evaluation runs.
Request body: {"name":"agent-run-copy"}
Response: The new sandbox record.

Example:

```
curl -X POST https://api.zei.sh/api/v1/public/sandboxes/:sandboxId/clone \
  -H "X-API-Key: $ZEISH_API_KEY"
  -H "Content-Type: application/json" \
  -d '{"name":"agent-run-copy"}'
```
