---
title: "`POST /v1/sandboxes/{id}/snapshots`"
method: POST
path: "/v1/sandboxes/{id}/snapshots"
tags: ["Snapshots"]
---

# \`POST /v1/sandboxes/{id}/snapshots\`

`POST /v1/sandboxes/{id}/snapshots`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/sandboxes/{id}/snapshots`
- Auth: HTTP bearer

Initiates a snapshot of the sandbox. The response is **202 Accepted**
with the snapshot row in `creating` status. The caller should poll
`GET /v1/sandbox-snapshots/{snap_id}` until `status` is `ready` or
`failed`.

The sandbox is stopped for the duration of the snapshot and restarted
automatically when it completes (unless it was already stopped).

## Path parameters

- `id` string, required

## Request body

- CreateSnapshotBody: Request body for `POST /v1/sandboxes/{id}/snapshots`.
  - `label` string, nullable: Optional human-readable label for the snapshot.

## Response `202`

Snapshot initiated

- SnapshotResponse: Single snapshot as returned by the API.
  - `backend` string, required
  - `content_digest` string, required
  - `created_at` string, required
  - `id` string, required
  - `image_ref` string, nullable
  - `label` string, nullable
  - `project_id` integer, nullable
  - `size_bytes` integer, required
  - `status` string, required
  - `updated_at` string, required

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Sandbox not found
- `422`: Quota exceeded or invalid state
- `500`: Internal error
- `501`: Snapshots not supported by backend

## Changes

- **2026-09-07** `c1d47c42df7c`: 1 info
  - endpoint added
- **2026-09-07** `f7404eb7ac98`: 1 breaking
  - api path removed without deprecation
- **2026-08-12** `f3e63914c5c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/v1/sandboxes/:id/snapshots/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
