---
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
    - `registered` boolean
    - `createdAt` string, date-time, required
  - `content` string, required

## Other responses

- `404` — Snapshot not found

## Changes

- **2025-01-22** `7a2b2f42a2f2` — 4 breaking, 2 warning, 2 info
  - added the new path request parameter `fileName`
  - added the new path request parameter `userName`
  - removed the required property `meta/created_at` from the response with the `200` status
  - removed the required property `meta/file_name` from the response with the `200` status
  - …4 more
- **2025-01-22** `d3210261c539` — 1 info
  - api operation id `getPublicSnapshot` was added
- **2025-01-20** `93e312846ab3` — 5 breaking, 1 warning, 6 info
  - the response property `content` became optional for the status `200`
  - the response property `meta` became optional for the status `200`
  - removed the required property `meta/createdAt` from the response with the `200` status
  - removed the required property `meta/fileName` from the response with the `200` status
  - …8 more

[Change 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/7a2b2f42a2f2/schema)
