---
title: "Get a file by ID"
method: GET
path: "/files/{id}"
tags: ["files"]
---

# Get a file by ID

`GET /files/{id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/files/{id}`
- Auth: none required

## Path parameters

- `id` integer, required

## Response `200`

File details

- FileRecord
  - `id` integer, required
  - `filename` string, required
  - `originalName` string, required
  - `mimeType` string, required
  - `size` integer, required
  - `category` string
  - `createdAt` string, date-time

## Other responses

- `404`: File not found

## Changes

- **2026-03-25** `e10ca0cbf01a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/changes/files/:id/get.md)

---

[API](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api.md) - [All operations](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/llms.txt) - [OpenAPI document](https://skmtc.dev/szl-holdings/apis/szl-holdings-dreamstack-api/revisions/6ad730b13e59?raw)
