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

# List files

`GET /files`

## Query parameters

- `page` integer
- `pageSize` integer
- `fileType` string
- `search` string
- `userId` string

## Response `200`

OK

- ApiResponseFileList
  - `success` boolean, required
  - `message` string, nullable
  - `timestamp` string, date-time, required
  - `data` object
    - `total` integer, required
    - `files` File[], required
      - `id` string
      - `name` string, nullable
      - `size` integer, nullable
      - `fileType` string, nullable
      - `userId` string, nullable
      - `createdAt` string, date-time, nullable
      - `updatedAt` string, date-time, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/lobehub/apis/lobechat-openapi.md) · [All operations](https://skmtc.net/lobehub/apis/lobechat-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lobehub/lobechat-openapi/versions/7be2ebcf191c/schema)
