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

## Changes

- **2026-07-30** `da68370a2aea` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/vercel/apis/v0-platform-api-beta/changes/chats/:chatId/files/get.md)

---

[API](https://skmtc.dev/vercel/apis/v0-platform-api-beta.md) · [All operations](https://skmtc.dev/vercel/apis/v0-platform-api-beta/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vercel/v0-platform-api-beta/revisions/3cf5debd6cf4/schema)
