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
ownerIdstring or nullOptional1-255 characters

Owner key for this conversation, stored in the indexed owner_id column and filterable via ?ownerId=. Overrides a nested metadata.ownerId. Null means no owner.

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 objectsOptional

Errors

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