---
title: "Get Chat Files"
method: GET
path: "/chats/{chatId}/files"
tags: ["Chats"]
---

# Get Chat Files

`GET /chats/{chatId}/files`

Returns the source files for a chat.

## Path parameters

- `chatId` string, required — The unique identifier of the chat.

## Response `200`

The source files of a chat.

- Files — The source files of a chat.
  - `files` object[], required — All source files in the chat.
    - `path` string, required — Project-relative file path, e.g. "app/page.tsx".
    - `content` string, required — Content of the file.
    - `encoding` 'utf8' | 'base64', required — How `content` is encoded. `utf8` for text files; `base64` for binary files.

## Other responses

- `401` — Response for status 401
- `403` — Response for status 403
- `404` — Response for status 404
- `409` — Response for status 409
- `422` — Response for status 422
- `500` — Response for status 500

---

[API](https://skmtc.net/vercel/apis/v0-platform-api-beta.md) · [All operations](https://skmtc.net/vercel/apis/v0-platform-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vercel/v0-platform-api-beta/versions/7c7a496f8022/schema)
