---
title: "GET /files/{file_path}"
method: GET
path: "/files/{file_path}"
tags: ["Files"]
---

# GET /files/{file_path}

`GET /files/{file_path}`

## Request

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

## Path parameters

- `file_path` string, required

## Response `200`

File content retrieved successfully

## Other responses

- `401`: Authentication required
- `403`: Access denied - path outside static directory or insufficient permissions
- `404`: File not found
- `500`: Internal server error

## Changes

- **2026-07-27** `1b060c0a4ba3`: 2 info
  - the endpoint scheme security `bearer_auth` was added to the API
  - added the non-success response with the status `401`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/files/:file_path/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
