---
title: "List files"
method: GET
path: "/api/files"
---

# List files

`GET /api/files`

Retrieves a paginated list of files for the team. Excludes private, archived, and template files.

## Query parameters

- `limit` integer
- `cursor` string
- `folderId` string
- `sort` 'createdAt' | '-createdAt' | 'updatedAt' | '-updatedAt'
- `author` string

## Response `200`

A paginated list of files

- object
  - `files` File[], required — Array of files in the current page
    - `id` string, required — Unique identifier for the file
    - `fileUrl` string, required — URL to view the file in Eraser
    - `title` string, required — Title of the file
    - `author` string, required — User ID of the file author
    - `folderId` string, nullable, required — ID of the folder containing the file, or null if not in a folder
    - `createdAt` string, date-time, required — ISO 8601 timestamp of when the file was created
    - `updatedAt` string, date-time, required — ISO 8601 timestamp of when the file was last updated
    - `linkAccess` 'no-link-access' | 'anyone-with-link-can-edit' | 'publicly-viewable' | 'publicly-editable' | 'sso-readable' | 'sso-editable', required — Current link access setting for the file
  - `nextCursor` string, nullable, required — Cursor for the next page of results, or null if there are no more results

## Other responses

- `400` — Invalid request parameters (e.g., invalid sort field, non-numeric limit, invalid cursor)
- `401` — Missing or invalid bearer token
- `403` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/eraser/apis/render.md) · [All operations](https://skmtc.net/eraser/apis/render/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/eraser/render/versions/c31350b435dc/schema)
