Create conversation

http
POST /conversations

Start a conversation in a project when a user or an agent opens a new thread, optionally with a first user message; a retry with the same idempotency key returns the same conversation. Requires project.conversations.create.

Request body

FieldTypeRequiredDescription
project_referencestringProject UUID or slug
typestring
titlestring
idempotency_keystring
metadataobject
initial_messageobjectFirst user message, persisted atomically with the conversation.
project_idstring

Responses

StatusDescription
201Created conversation
400Bad request
401Unauthorized
403Forbidden
404Not found
409Conflict
413Payload too large
500Server error
503internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.