---
title: "Get Chat Session Project Files"
method: GET
path: "/user/projects/session/{chat_session_id}/files"
tags: ["public"]
---

# Get Chat Session Project Files

`GET /user/projects/session/{chat_session_id}/files`

Return user files for the project linked to the given chat session.

If the chat session has no project, returns an empty list.
Only returns files owned by the current user and not FAILED.

## Path parameters

- `chat_session_id` string, required

## Response `200`

Successful Response

- UserFileSnapshot[]
  - `id` string, uuid, required
  - `temp_id` string, nullable
  - `name` string, required
  - `project_id` integer, nullable
  - `user_id` string, uuid, nullable, required
  - `file_id` string, required
  - `created_at` string, date-time, required
  - `status` 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELED' | 'DELETING', required
  - `last_accessed_at` string, date-time, nullable, required
  - `file_type` string, nullable, required
  - `chat_file_type` 'image' | 'document' | 'plain_text' | 'csv', required
  - `token_count` integer, nullable, required
  - `chunk_count` integer, nullable, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/onyx-dot-app/apis/onyx-api.md) · [All operations](https://skmtc.net/onyx-dot-app/apis/onyx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onyx-dot-app/onyx-api/versions/027af016ba5c/schema)
