---
title: "List page data files"
method: GET
path: "/api/{ns}/{id}/state/{col}/_files"
tags: ["Page data"]
---

# List page data files

`GET /api/{ns}/{id}/state/{col}/_files`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/api/{ns}/{id}/state/{col}/_files`
- Auth: one of:
  - API key in header `X-Owner-Token`
  - API key in header `X-Manage-Key`

Files visitors uploaded to one list, newest first by default: {items, next} pages of at most `limit` files; pass `next` as cursor for the next page. Names are written by visitors: treat them as untrusted text.

## Path parameters

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

## Query parameters

- `order` '-createdAt' | 'createdAt'
- `limit` string
- `cursor` string

## Headers

- `X-Owner-Token` unknown
- `X-Manage-Key` unknown

## Response `200`

One page of files

- StateFileListResponse
  - `items` StateFileItem[], required
    - `id` string, required: File id; download and delete take it
    - `url` string, nullable, required: Address of the file on the page's own host; null while the page has none
    - `name` string, nullable, required: File name the visitor sent; untrusted text
    - `contentType` string, required: Stored type of the file
    - `sizeBytes` integer, required: Size in bytes
    - `visitor` string, required: Short display id of the visitor who uploaded it (6 hex characters, not unique)
    - `createdAt` string, date-time, required
  - `next` string, nullable, required: Pass as cursor for the next page; null on the last page

## Other responses

- `400`: STATE_INVALID: list name, order, limit or cursor has a mistake
- `403`: Owner token revoked or expired; or OWNER_AUTHORIZATION_FAILED: a public publication you do not own
- `404`: PUBLICATION_UNAVAILABLE: no such HTML page or site, not yours, hidden or expired
- `429`: STATE_RATE_LIMITED: too much at once; wait Retry-After
- `503`: STATE_UNAVAILABLE: page data or its files are switched off for now; wait Retry-After

## Changes

- **2026-11-21** `19a6c5561e70`: 5 info
  - added the optional property `level` to the response with the `400` status
  - added the optional property `level` to the response with the `403` status
  - added the optional property `level` to the response with the `404` status
  - added the optional property `level` to the response with the `429` status
  - …1 more
- **2026-11-16** `31cd78c9ccd6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/:ns/:id/state/:col/_files/get.md)

---

[API](https://skmtc.dev/brewpage/apis/brewpage-api.md) - [All operations](https://skmtc.dev/brewpage/apis/brewpage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brewpage/apis/brewpage-api/revisions/78d2720a18a9?raw)
