---
title: "Fetch a public snapshot"
method: GET
path: "/files/{userName}/{fileName}/{version}"
tags: ["files"]
---

# Fetch a public snapshot

`GET /files/{userName}/{fileName}/{version}`

## Path parameters

- `userName` string, required
- `fileName` string, required
- `version` integer, required

## Response `200`

Snapshot

- Snapshot
  - `meta` SnapshotMeta, required
    - `id` string, required
    - `owner` string, required
    - `fileName` string, required
    - `version` integer, required
    - `license` string — SPDX license identifier
    - `registered` boolean
    - `createdAt` string, date-time, required
  - `content` string, required

## Other responses

- `404` — Snapshot not found

## Changes

- **2026-07-17** `4ff151025f7c` — 2 warning, 2 info
  - changed the pattern of the `path` request parameter `fileName` from `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` to `/^[a-z\d](?:[a-z\d]|[-_](?=[a-z\d])){0,38}$/i`
  - changed the pattern of the `path` request parameter `userName` from `/^[a-z\d](?:[a-z\d]|-_(?=[a-z\d])){0,38}$/i` to `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i`
  - the `meta/fileName` response's property pattern was changed from `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` to `/^[a-z\d](?:[a-z\d]|[-_](?=[a-z\d])){0,38}$/i` for the status `200`
  - the `meta/owner` response's property pattern was changed from `/^[a-z\d](?:[a-z\d]|-_(?=[a-z\d])){0,38}$/i` to `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` for the status `200`
- **2025-02-09** `11f1b67626ff` — 1 warning, 1 info
  - changed the pattern of the `path` request parameter `userName` from `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` to `/^[a-z\d](?:[a-z\d]|-_(?=[a-z\d])){0,38}$/i`
  - the `meta/owner` response's property pattern was changed from `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` to `/^[a-z\d](?:[a-z\d]|-_(?=[a-z\d])){0,38}$/i` for the status `200`
- **2025-02-06** `4b32864c1d82` — 1 info
  - added the optional property `meta/license` to the response with the `200` status
- …earlier changes not shown

[Full history](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api/changes/files/:userName/:fileName/:version/get.md)

---

[API](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api.md) · [All operations](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lapisla-prover/lapisla-prover-api/revisions/4ff151025f7c/schema)
