---
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

---

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