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

# Fetch a public file

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

## Path parameters

- `userName` string, required
- `fileName` string, required

## Response `200`

File

- PublicFileMeta — Metadata shown to the public
  - `owner` string, required
  - `fileName` string, required
  - `registeredVersions` Version[], required
  - `createdAt` string, date-time, required
  - `updatedAt` string, date-time, required

## Other responses

- `404` — File 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 `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 `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 `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-01-23** `65605c05e7f7` — 6 breaking, 2 warning, 4 info
  - added the new path request parameter `fileName`
  - added the new path request parameter `userName`
  - removed the required property `created_at` from the response with the `200` status
  - removed the required property `file_name` from the response with the `200` status
  - …8 more
- …earlier changes not shown

[Full history](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api/changes/files/:userName/:fileName/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)
