Find Chats
Retrieves a list of existing chats, with support for pagination and filtering by favorite status. Helps manage and navigate chat history.
Usage
API Signature
Request
Query Parameters
Specifies the maximum number of chat records to return in a single response. Useful for paginating results when there are many chats.
Determines the starting point for pagination. Used in conjunction with limit to retrieve a specific page of chat results.
Filters chats by their "favorite" status. Accepts "true"
or "false"
(as strings, not booleans).
"true"
: returns only chats marked as favorites."false"
: returns only non-favorite chats.
Response
A unique identifier for the chat.
Fixed value identifying this object as a chat.
Indicates whether the chat can be shared via public link.
Defines the visibility of the chat—private, team-only, or public.
An optional name assigned to the chat by the user.
Deprecated title field preserved for backward compatibility.
The ISO timestamp representing when the chat was created.
The ISO timestamp of the last update to the chat.
Indicates whether the chat is marked as a favorite.
The ID of the user who created the chat.
Optional ID of the v0 project associated with this chat.
Web URL to view this chat in the browser.
API URL to access this chat via the API.
The most recent generated version of the chat, if available.
A unique identifier for the version.
Fixed value identifying this object as a version.
The current status of the version generation process.
Optional URL for previewing the generated output.
The date and time when the version was created, in ISO 8601 format.
The date and time when the version was last updated, in ISO 8601 format.
Create Chat
Creates a new chat using a user message, optional system context, and model configuration. Useful for prompting the model within the scope of a specific project.
Initialize Chat
Initializes a new chat from source content such as files, repositories, registries, or zip archives. Enables context-rich conversations based on code or assets.