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

# Fetch a public file

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

## Path parameters

- `user_name` string, required
- `file_name` string, required

## Response `200`

File

- PublicFileMeta — Metadata shown to the public
  - `owner` string, required
  - `file_name` string, required
  - `registered_versions` Version[], required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `404` — File not found

## Changes

- **2025-01-20** `93e312846ab3` — 5 breaking, 5 info
  - removed the required property `createdAt` from the response with the `200` status
  - removed the required property `fileName` from the response with the `200` status
  - removed the required property `owner` from the response with the `200` status
  - removed the required property `registeredVersions` from the response with the `200` status
  - …6 more

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