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

# Get file by ID

`GET /file/{id}`

Get file content by ID or download with file name.

-  PERMISSIONS (for private files): `api_file:read`

## Path parameters

- `id` string, required

## Response `200`

OK

## Other responses

- `404` — Not Found

## Changes

- **2025-12-14** `1c19dcf99fec` — 1 breaking, 2 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `404`
  - added the optional property `error` to the response with the `404` status
  - added the optional property `message` to the response with the `404` status
- **2025-12-12** `24b4a346840a` — 1 breaking, 2 warning
  - the response's body type/format changed from `object`/`` to ``/`` for status `404`
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `message` from the response with the `404` status
- **2025-11-26** `bb6f0434af12` — 1 breaking, 2 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `404`
  - added the optional property `error` to the response with the `404` status
  - added the optional property `message` to the response with the `404` status
- **2025-09-19** `10a1f7617754` — 1 breaking, 2 warning
  - the response's body type/format changed from `object`/`` to ``/`` for status `404`
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `message` from the response with the `404` status

[Change history](https://skmtc.dev/capensis/apis/canopsis-community-api/changes/file/:id/get.md)

---

[API](https://skmtc.dev/capensis/apis/canopsis-community-api.md) · [All operations](https://skmtc.dev/capensis/apis/canopsis-community-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/capensis/canopsis-community-api/revisions/1c19dcf99fec/schema)
