---
title: "Get a cache disk."
method: GET
path: "/v1/cache-disks/{id}"
tags: ["cache-disks"]
---

# Get a cache disk.

`GET /v1/cache-disks/{id}`

## Request

- Base URL: `https://api.smolmachines.com`
- URL: `https://api.smolmachines.com/v1/cache-disks/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/smolmachines/apis/smolfleet-api/docs/v1/cache-disks/:id/get.ts> (a function with typed inputs; its response is checked against the schema)

One cache disk by id or name, with its versions newest first. Requires the `machine:read` scope.

## Path parameters

- `id` string, required

## Response `200`

Cache disk

- CacheDiskInfo: A cache disk: a disk image many machines start from, each through its own copy-on-write layer, published in immutable versions.
  - `createdAt` string, required
  - `id` string, required
  - `latestVersion` integer, required
  - `mountPath` string, required
  - `name` string, required
  - `sizeGb` integer, required
  - `versions` CacheDiskVersionInfo[], required: Newest first.
    - `createdAt` string, required
    - `sha256` string, required: SHA-256 (hex) of the version's disk image.
    - `sizeBytes` integer, required
    - `sourceMachineId` string, nullable: The machine whose cache this version was published from; `null` for v0.
    - `version` integer, required: 0 is the empty filesystem a cache disk starts as; each publish adds one.

## Other responses

- `401`: Missing or invalid API key
- `403`: Key lacks the required scope
- `404`: Not found
- `429`: Rate limited; retry after the Retry-After header
- `500`: Internal error

## Changes

- **2026-10-16** `bc31fc04a568`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/smolmachines/apis/smolfleet-api/changes/v1/cache-disks/:id/get.md)

---

[API](https://skmtc.dev/smolmachines/apis/smolfleet-api.md) - [All operations](https://skmtc.dev/smolmachines/apis/smolfleet-api/llms.txt) - [OpenAPI document](https://skmtc.dev/smolmachines/apis/smolfleet-api/revisions/bc31fc04a568?raw)
