Skip to main content
POST
Creates a new chat with the provided chat data and optional folder assignment.

Request Body

object
required
Chat data object containing title and message history
string
ID of the folder to place the chat in

Response

string
required
Unique identifier for the newly created chat
string
required
ID of the user who owns the chat
string
required
Chat title
object
required
Complete chat data object as provided in the request
integer
required
Unix timestamp (epoch seconds) when chat was created
integer
required
Unix timestamp (epoch seconds) when chat was last updated
string
ID for sharing the chat (null for new chats)
boolean
required
Whether the chat is archived (false for new chats)
boolean
required
Whether the chat is pinned (false for new chats)
object
Metadata object (empty for new chats)
string
ID of the folder containing this chat