---
title: "Serve file content without authentication"
method: GET
path: "/api/cdn/files/{file_id}"
tags: ["Files"]
---

# Serve file content without authentication

`GET /api/cdn/files/{file_id}`

This endpoint is designed to be used to get file content without authentication.
It returns the file content with proper cache headers for public access.
The file content is streamed directly from S3 to minimize memory usage for large files.

# Errors
Returns an error if file not found or S3 operations fail.

## Path parameters

- `file_id` string, uuid, required

## Response `200`

Streaming file content with CDN-optimized headers

## Other responses

- `404` — CDN file not found
- `500` — CDN streaming error from storage backend

## Changes

- **2025-10-09** `2851cbd4193b` — 3 info
  - the endpoint scheme security `bearerAuth AND cookieAuth` was removed from the API
  - removed the non-success response with the status `401`
  - removed the non-success response with the status `403`
- **2025-09-24** `ad76e6bdf403` — 2 info
  - the endpoint scheme security `bearerAuth AND cookieAuth` was added to the API
  - the endpoint scheme security `cookieAuth` was removed from the API
- **2025-09-22** `93deff514935` — 1 info
  - endpoint added
- **2025-09-01** `a2488be8a6e4` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/patroninc/apis/patron-api/changes/api/cdn/files/:file_id/get.md)

---

[API](https://skmtc.dev/patroninc/apis/patron-api.md) · [All operations](https://skmtc.dev/patroninc/apis/patron-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/patroninc/patron-api/revisions/1583b1f4c97d/schema)
