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

# List Files

`GET /api/files/list`

## Query parameters

- `page` integer — Page number
- `size` integer — Page size
- `search` string — Search filename or path
- `task_id` integer, nullable — Filter by task ID
- `uploads_only` boolean — Only include user uploads

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

## Changes

- **2026-06-13** `33e4ba4936ad` — 6 info
  - added the new optional `query` request parameter `page`
  - added the new optional `query` request parameter `search`
  - added the new optional `query` request parameter `size`
  - added the new optional `query` request parameter `task_id`
  - …2 more

[Change history](https://skmtc.dev/xorbitsai/apis/xagent/changes/api/files/list/get.md)

---

[API](https://skmtc.dev/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.dev/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
