---
title: Download Chat Files
description: Downloads the source files for a chat as a ZIP archive.
docs_index: /docs/llms.txt
lastUpdated: 2026-10-09
badge: "GET"
---

> For an index of all documentation, see [/docs/llms.txt](/docs/llms.txt).

#### `GET/v2/chats/{chatId}/files/download`

## Usage

```typescript
import { v0 } from 'v0'

const result = await v0.chats.downloadFiles({
  chatId: 'chat_abc123',
})

console.log(result)
```

```bash
curl -X GET "https://api.v0.dev/v2/chats/chat_abc123/files/download"   -H "Authorization: Bearer $V0_API_KEY"   -H "Content-Type: application/json"
```

## API Signature

### Request

#### Path Parameters

- `chatId: string` The unique identifier of the chat.
  - **Minimum length:** 1

---

For a semantic overview of all documentation, see [/docs/sitemap.md](/docs/sitemap.md)

For an index of all available documentation, see [/docs/llms.txt](/docs/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/docs/agents.md](/docs/agents.md)