---
title: "List files"
method: GET
path: "/files"
tags: ["files"]
---

# List files

`GET /files`

Returns a paginated list of files with optional workspace filters.

## Query parameters

- `limit` number — The number of items to return
- `cursor` string, cuid — The cursor to return the next page of items
- `workspaceId` string, cuid

## Headers

- `x-client-id` string, cuid, required — The ID of the client

## Response `200`

Paginated files

- PaginatedFiles
  - `data` File[], required
    - `id` string, cuid, required — The ID of the file
    - `documentDate` string, date-time, nullable, required — The date of the document (not the upload date)
    - `createdAt` string, date-time, required — The date and time of the creation for the file. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
    - `updatedAt` string, date-time, required — The date and time of the last update for the file. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
    - `name` string, required — The name of the file
    - `mimetype` string, required — The mime type of the file
    - `size` number, required — The size of the file in bytes
    - `workspaceId` string, cuid, required — The ID of the workspace
    - `createdById` string, cuid, nullable, required — The ID of the creator
    - `taskId` string, cuid, nullable, required — The ID of the task this file was uploaded to.
    - `folderId` string, cuid, nullable, required — The ID of the folder this file was uploaded to.
    - `labelIds` string[], nullable, required — The IDs of the assigned labels
  - `pagination` Pagination, required
    - `nextCursor` string — The cursor to return the next page of items
    - `previousCursor` string — The cursor to return the previous page of items
    - `limit` integer, required — The number of items to return
    - `total` integer, required — The total number of items

## Other responses

- `401` — Unauthorized
- `422` — The validation error(s)
- `429` — Rate limit exceeded
- `500` — Internal server error

---

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