Create a conversation

Authentication

AuthorizationBearer
API key or Clerk session token

Request

This endpoint expects an object.
metadatamap from strings to anyOptionalDefaults to {}
modelIdstringOptional<=255 characters
ownerIdstringOptional1-255 characters
systemPromptstringOptional
titlestringOptional<=500 charactersDefaults to New Chat

Response

Conversation created
createdAtstring
idstring
messageslist of maps from strings to any
metadatamap from strings to any
modelIdstring or null
ownerIdstring or null
sourceenum
systemPromptstring or null
titlestring
updatedAtstring
schemaWarningslist of objects

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
422
Unprocessable Entity Error
500
Internal Server Error