v0 Platform API/API Reference/Chats
Favorite Chat
Marks or unmarks a chat as a favorite using its `chatId`. This helps with organizing and quickly accessing important chats.
PUT/v1/chats/{chatId}/favorite
Usage
TypeScript Example
API Signature
Request
Path Parameters
chatId: string
The unique identifier of the chat to update. Provided as a path parameter.
Body
isFavorite: boolean
Specifies whether the chat should be marked as a favorite.
"true"
: mark as favorite"false"
: remove from favorites
Response
id: string
object: 'chat'
favorited: boolean
Update Chat
Updates the metadata of an existing chat using its `chatId`. Supports changes to the chat name and privacy setting.
Fork Chat
Creates a new chat fork (duplicate) from a specific version within an existing chat. Useful for branching off alternate directions without modifying the original conversation.