POST
Create a conversation

Authorizations

Authorization
string
header
required

A project API key, alt_live_… or alt_test_….

Headers

Idempotency-Key
string

Up to 255 characters. Repeating a request with the same key replays the stored response for 24 hours; the same key with a different request is a 409.

Maximum string length: 255

Body

application/json
agent_id
string
account_id
string
metadata
object
items
object[]
Maximum array length: 20

Response

The new conversation.

id
string
required
object
string
required
Allowed value: "conversation"
agent_id
string | null
required

Null for a conversation made without an agent (used with model responses).

account_id
string | null
required
metadata
object
required
created_at
string<date-time>
required
item_count
integer

Number of items; list them with listConversationItems.

messages
object[]

The latest 200 user and assistant messages, oldest first: on GET /v1/conversations/{id} and the legacy alias routes.