POST
Send a message

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

Body

application/json
content
string
required
Required string length: 1 - 16000
stream
boolean
default:false

Response

The agent's reply (status is failed, with error, when the turn failed).

id
string
required
object
string
required
Allowed value: "conversation.message"
conversation_id
string
required
role
enum<string>
required
Available options:
user,
assistant
content
string
required
status
enum<string>
required
Available options:
completed,
failed
error
string | null
required
created_at
string<date-time>
required