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.
Usage
import { v0 } from 'v0-sdk'const result = await v0.chats.downloadVersion({chatId: '123',versionId: '456',})console.log(result)API Signature
Request
Path Parameters
The unique identifier of the chat containing the version. Provided as a path parameter.
The unique identifier of the version to download. Provided as a path parameter.
Query Parameters
The archive format for the download. Choose "zip" for broad compatibility or "tarball" for Unix/Linux systems.
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.