POST
Start 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

Path Parameters

id
string
required
Example:

"agent_0123456789abcdef01234567"

Body

application/json
metadata
object

Response

The new conversation, with an empty messages list.

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.