---
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

---

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