---
title: "Get Chat Version"
method: GET
path: "/chats/{chatId}/versions/{versionId}"
tags: ["chats"]
---

# Get Chat Version

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

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

## Path parameters

- `chatId` string, required
- `versionId` string, required

## Query parameters

- `includeDefaultFiles` 'true' | 'false' — When true, includes all default files (package.json, configuration files, etc.) that would be part of a ZIP download. When false or omitted, returns only the generated source files.

## Response `200`

Success

- VersionDetail — Detailed version data including file contents.
  - `id` string, required — A unique identifier for the version.
  - `object` 'version', required — Fixed value identifying this object as a version.
  - `status` 'pending' | 'completed' | 'failed', required — The current status of the version generation process.
  - `demoUrl` string — Optional URL for previewing the generated output.
  - `screenshotUrl` string — URL to retrieve a screenshot of this version.
  - `createdAt` string, date-time, required — The date and time when the version was created, in ISO 8601 format.
  - `updatedAt` string, date-time — The date and time when the version was last updated, in ISO 8601 format.
  - `files` object[], required — A list of files that were generated or included in this version.
    - `object` 'file', required — Fixed value identifying this object as a file.
    - `name` string, required — The name of the file, including its extension.
    - `content` string, required — The full contents of the file as a raw string.
    - `locked` boolean, required — Whether the file is locked to prevent AI from overwriting it during new version generation.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `413` — Payload Too Large
- `422` — Unprocessable Entity
- `429` — Too Many Requests
- `500` — Internal Server Error

## Changes

- **2025-10-23** `bcf554284606` — 2 info
  - the `createdAt` response's property pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` was added for the status `200`
  - the `updatedAt` response's property pattern `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` was added for the status `200`
- **2025-09-24** `fd6d8c3bee8a` — 1 info
  - added the optional property `screenshotUrl` to the response with the `200` status
- **2025-09-20** `19becee596f6` — 1 info
  - added the new optional `query` request parameter `includeDefaultFiles`
- …earlier changes not shown

[Full history](https://skmtc.dev/vercel/apis/v0-platform-api-beta/changes/chats/:chatId/versions/:versionId/get.md)

---

[API](https://skmtc.dev/vercel/apis/v0-platform-api-beta.md) · [All operations](https://skmtc.dev/vercel/apis/v0-platform-api-beta/llms.txt) · [OpenAPI document](https://skmtc.dev/vercel/apis/v0-platform-api-beta/revisions/bcf554284606?raw)
