Fork Chat
Fork a version in a chat
Authorization<token>
Your v0 API key. Get one at https://v0.dev/chat/settings/keys
In: header
Path Parameters
chatIdstring
Path parameter "chatId"
versionId?string
Length
length <= 32
Response Body
curl -X POST "https://api.v0.dev/v1/chats/string/fork" \
-H "Content-Type: application/json" \
-d '{}'
{
"id": "string",
"object": "chat",
"url": "string",
"demo": "string",
"shareable": true,
"privacy": "public",
"title": "string",
"updatedAt": "string",
"favorite": true,
"authorId": "string",
"latestVersion": {
"id": "string",
"status": "pending"
},
"messages": [
{
"id": "string",
"object": "message",
"content": "string",
"createdAt": "string",
"type": "message"
}
]
}
{
"error": {
"message": "string",
"type": "unauthorized_error"
}
}
{
"error": {
"message": "string",
"type": "forbidden_error"
}
}
{
"error": {
"message": "string",
"type": "not_found_error"
}
}
{
"error": {
"message": "string",
"type": "conflict_error"
}
}
{
"error": {
"message": "string",
"type": "payload_too_large_error"
}
}
{
"error": {
"message": "string",
"type": "unprocessable_entity_error"
}
}
{
"error": {
"message": "string",
"type": "too_many_requests_error"
}
}
{
"error": {
"message": "string",
"type": "internal_server_error"
}
}