---
title: "List chat files"
method: GET
path: "/chats/{chat_id}/files"
tags: ["Chats"]
---

# List chat files

`GET /chats/{chat_id}/files`

## Request

- Base URL: `https://api.useinvent.com`
- URL: `https://api.useinvent.com/chats/{chat_id}/files`
- Auth: HTTP bearer

Retrieve all files shared in this chat.

## Path parameters

- `chat_id` string, required

## Query parameters

- `search` string: Search files by filename
- `mimetype` string: Filter by MIME type (prefix match)
- `page` number
- `take` number
- `next` string
- `progressive` boolean

## Response `200`

- FileSchema[]
  - `id` string, required: Unique identifier for the file
  - `file_path` string, required: Path to the file in the storage system
  - `file_filename` string, required: Name of the file
  - `file_size` number, required: Size of the file in bytes
  - `file_mimetype` string, required: MIME type of the file
  - `file_url` string, required: URL to access the file
  - `created_at` string, date-time, nullable, required: Timestamp when the file was created

---

[API](https://skmtc.dev/useinvent/apis/invent-api.md) · [All operations](https://skmtc.dev/useinvent/apis/invent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useinvent/apis/invent-api/revisions/98824f3fde82?raw)
