v0 Platform API/API Reference/Chats

Download version files

Download all files for a specific chat version as a zip or tarball archive. Use includeDefaultFiles=true to include all deployment files (package.json, configuration files, etc.) or false/omitted to return only the generated source files.

GET/v1/chats/{chatId}/versions/{versionId}/download

Usage

TypeScript Example
import { v0 } from 'v0-sdk'

const result = await v0.chats.downloadVersion({
  chatId: '123',
  versionId: '456',
})

console.log(result)

API Signature

Request

Path Parameters

chatId: string

The unique identifier of the chat containing the version. Provided as a path parameter.

versionId: string

The unique identifier of the version to download. Provided as a path parameter.

Query Parameters

format?: 'zip' | 'tarball'

The archive format for the download. Choose "zip" for broad compatibility or "tarball" for Unix/Linux systems.

includeDefaultFiles?: 'true' | 'false'

When true, includes all default files (package.json, configuration files, etc.) that would be part of a complete deployment. When false or omitted, returns only the generated source files.