v29

latestOpenAPI 3.1.2raw.githubusercontent.com2026-08-014117755.2 KB
Chats

Duplicate Chat

Creates a new chat by duplicating an existing chat.

post/chats/{chatId}/duplicate

Path parameters

chatIdstring required

The unique identifier of the chat.

Request body

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted' required

Visibility setting for the duplicated chat.

titlestring

Custom title for the duplicated chat. If omitted, the original title is reused with an incremented suffix (e.g. "My Chat (2)").

Response

Response for status 201

idstring required

Unique chat identifier.

titlestring

Chat title, if generated.

privacy'public' | 'private' | 'team' | 'team-edit' | 'unlisted' required

Visibility setting of the chat.

createdAtstring date-time required

ISO timestamp of when the chat was created.

updatedAtstring date-time

ISO timestamp of when the chat was last updated.

authorIdstring required

ID of the user who created the chat.

vercelProjectIdstring

Associated Vercel project ID, if any.

metadataobject required

User-defined key-value metadata.

writePermissionboolean required

Whether the caller has write access to this chat.