---
title: "Create a snapshot"
method: POST
path: "/v2/sandboxes/snapshots"
tags: ["sandboxes"]
---

# Create a snapshot

`POST /v2/sandboxes/snapshots`

Create a snapshot from a Docker image (async build).

## Request body

- SandboxesCreateSnapshotPayload
  - `docker_image` string, required
  - `fs_capacity_bytes` integer, required
  - `name` string, required
  - `registry_id` string

## Response `201`

Created

- SandboxesSnapshotResponse
  - `created_at` string
  - `created_by` string
  - `docker_image` string
  - `fs_capacity_bytes` integer
  - `fs_used_bytes` integer
  - `id` string
  - `image_digest` string
  - `memory_snapshot_size_bytes` integer — MemorySnapshotSizeBytes is non-nil iff the snapshot was captured with VM memory state. A non-nil value is the canonical signal that this snapshot can warm-restore from memory; nil means rootfs only.
  - `name` string
  - `registry_id` string
  - `source_sandbox_id` string
  - `status` string
  - `status_message` string
  - `updated_at` string

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `500` — Internal Server Error

## Changes

- **2026-05-27** `a0acb3a6a101` — 4 info
  - added the optional property `detail/error_id` to the response with the `400` status
  - added the optional property `detail/error_id` to the response with the `403` status
  - added the optional property `detail/error_id` to the response with the `500` status
  - added the optional property `memory_snapshot_size_bytes` to the response with the `201` status
- **2026-04-30** `99490d1e837e` — 3 warning
  - removed the request property `registry_password`
  - removed the request property `registry_url`
  - removed the request property `registry_username`
- **2026-04-13** `e86be67718ee` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/langchain-ai/apis/langsmith/changes/v2/sandboxes/snapshots/post.md)

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
