---
title: "Read the raw UTF-8 contents of a file for in-browser editing"
method: GET
path: "/sites/{id}/files/content"
tags: ["Sites"]
---

# Read the raw UTF-8 contents of a file for in-browser editing

`GET /sites/{id}/files/content`

## Request

- Base URL: `https://api.nippy.host`
- URL: `https://api.nippy.host/sites/{id}/files/content`
- Auth: `bearer` (a scheme the document does not define)

## Path parameters

- `id` string, required

## Query parameters

- `path` string, required

## Response `200`

- APISiteFileContentResponse
  - `path` string, required: Relative path within the site
  - `content` string, required: Raw UTF-8 file contents

## Other responses

- `400`: Missing or invalid path
- `401`: Not authenticated
- `403`: You do not own this site
- `404`: Site or file not found
- `409`: Site is not live
- `413`: File is too large to edit

---

[API](https://skmtc.dev/nippy/apis/nippy-backend-api.md) · [All operations](https://skmtc.dev/nippy/apis/nippy-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/nippy/apis/nippy-backend-api/revisions/7ab23f040a55?raw)
