---
title: "List snapshots, newest first."
method: GET
path: "/v1/snapshots"
tags: ["snapshots"]
---

# List snapshots, newest first.

`GET /v1/snapshots`

## Request

- Base URL: `https://api.withruntime.com`
- URL: `https://api.withruntime.com/v1/snapshots`
- Auth: HTTP bearer

## Query parameters

- `cursor` string: Resource identifier (UUID).
- `limit` integer: Page size, 1 to 100.
- `state` 'capturing' | 'ready' | 'failed' | 'deleting'
- `name` string: Your own handle for the resource. Letters, digits, dot, dash, underscore.
- `sandboxId` string: Resource identifier (UUID).

## Response `200`

Success

- object
  - `data` object[], required
    - `id` string, required
    - `kind` 'snapshot', required
    - `mode` 'memory' | 'disk'
    - `status` string, required
    - `state` 'capturing' | 'ready' | 'failed' | 'deleting' | 'deleted', required
    - `name` string, nullable
    - `sourceSandboxId` string, required
    - `placement` string, nullable: Opaque tag of the server it is kept on, as a sandbox's placement: its copies start there, or on a server holding a checked copy of it. Keep sources on separate servers with spreadFrom on create.
    - `shape` object, required
      - `vcpu` integer
      - `memoryMiB` integer
      - `diskMiB` integer
      - `memoryGuarantee` string
    - `retentionDays` integer, nullable: Days it is kept, or null: kept while your account has credit, up to a year from when it was taken.
    - `compressionPending` boolean: True while raw fork memory awaits verified compression. Ready snapshots remain startable on their current host. This workspace is unbilled and has no off-host copy until final publication; cross-host copies wait for compression.
    - `storedBytes` integer, nullable
    - `meteredBytes` integer, nullable: What storage is metered for: the final bytes this snapshot alone stores. Zero while compressionPending is true.
    - `backedUp` boolean: Whether its copy off the host is made and checked.
    - `durability` object
      - `state` 'none' | 'pending' | 'durable' | 'failed' | 'restoring': none: no off-host copy yet, including a temporary fork snapshot or pending memory compression. pending: being copied. durable: copied and checked. restoring: its host was lost and it is being restored onto another. failed: it could not be copied.
      - `durableAt` string, nullable
      - `storedBytes` integer, nullable: What the copy off the host stores, compressed and encrypted.
    - `error` string, nullable
    - `createdAt` string
    - `readyAt` string, nullable
    - `expiresAt` string, nullable, required: When it is deleted. Null while it is kept as long as your account has credit.
  - `nextCursor` string, nullable, required: Pass as cursor; null ends the list.

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/withruntime/apis/runtime-cloud-api.md) · [All operations](https://skmtc.dev/withruntime/apis/runtime-cloud-api/llms.txt) · [OpenAPI document](https://skmtc.dev/withruntime/apis/runtime-cloud-api/revisions/6f4012286988?raw)
