---
title: "Serve site file"
method: GET
path: "/api/sites/{ns}/{id}/files/**"
tags: ["Sites"]
---

# Serve site file

`GET /api/sites/{ns}/{id}/files/**`

Serves an individual file from the site with correct content type

## Path parameters

- `ns` string, required
- `id` string, required

## Query parameters

- `p` string

## Headers

- `X-Password` string
- `User-Agent` string
- `X-Owner-Token` string
- `Range` string

## Response `200`

File content

## Other responses

- `403` — Wrong password
- `404` — Site or file not found

---

[API](https://skmtc.net/brewpage/apis/brewpage-api.md) · [All operations](https://skmtc.net/brewpage/apis/brewpage-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brewpage/brewpage-api/revisions/6e0ac03e39e5/schema)
