Find Chat Versions

Retrieves a list of all versions (iterations) for a specific chat, ordered by creation date (newest first). Supports cursor-based pagination and includes version status and demo URLs.

GET /chats/{chatId}/versions
import { v0 } from 'v0-sdk'

const result = await v0.chats.findVersions()

console.log(result)
GET /chats/{chatId}/versions
curl -X GET https://api.v0.dev/chats/{chatId}/versions \
  -H "Authorization: Bearer $V0_API_KEY" \
  -H "Content-Type: application/json"

Parameters

Path Parameters

chatId string Required

The unique identifier of the chat to retrieve versions for. Provided as a path parameter.


Query Parameters

limit number

Specifies the maximum number of version records to return in a single response. Useful for paginating results when there are many versions.


cursor string

Base64 encoded cursor containing pagination data


Response

Response Body

object string Required


data any[] Required

Array items: string


pagination object Required

hasMore boolean Required


nextCursor string


nextUrl string