---
title: "Get metadata of all public files owned by the user"
method: GET
path: "/files/{user_name}"
tags: ["files"]
---

# Get metadata of all public files owned by the user

`GET /files/{user_name}`

## Path parameters

- `user_name` string, required

## Response `200`

File metadata retrieved successfully

- PublicFileMeta[]
  - `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` — User not found

## Changes

- **2025-01-20** `20e8e755a09e` — 1 breaking, 2 info
  - added the pattern `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` to the `path` request parameter `user_name`
  - the `items/file_name` response's property pattern `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` was added for the status `200`
  - the `items/owner` response's property pattern `/^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i` was added for the status `200`

[Change history](https://skmtc.dev/lapisla-prover/apis/lapisla-prover-api/changes/files/:user_name/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.dev/lapisla-prover/apis/lapisla-prover-api/revisions/211195a7bd6a?raw)
