v0 Platform API/API Reference/Chats

Get Chat Version

Retrieves detailed information about a specific version of a chat, including all files with their content and lock status.

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

Usage

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

const result = await v0.chats.getVersion()

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 retrieve. Provided as a path parameter.

Response

id: string

A unique identifier for the version.

object: 'version'

Fixed value identifying this object as a version.

status: 'pending' | 'completed' | 'failed'

The current status of the version generation process.

demoUrl?: string

Optional URL for previewing the generated output.

createdAt: string

The date and time when the version was created, in ISO 8601 format.

updatedAt?: string

The date and time when the version was last updated, in ISO 8601 format.

files: object[]

A list of files that were generated or included in this version.

object: 'file'

Fixed value identifying this object as a file.

name: string

The name of the file, including its extension.

content: string

The full contents of the file as a raw string.

locked: boolean

Whether the file is locked to prevent AI from overwriting it during new version generation.