# Create a snapshot

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

Capture a sandbox runtime state for reuse.

POST /public/sandboxes/:sandboxId/snapshots
Permission: MACHINE_UPDATE.
Create snapshots from a live runtime and wait for the snapshot to become ready before using it.
Request body: {"displayName":"dependencies-v4"}
Response: The new snapshot with its status and ID.

Example:

```
curl -X POST https://api.zei.sh/api/v1/public/sandboxes/:sandboxId/snapshots \
  -H "X-API-Key: $ZEISH_API_KEY"
  -H "Content-Type: application/json" \
  -d '{"displayName":"dependencies-v4"}'
```
