Skip to main content
POST
Stream a message

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Path Parameters

chat_id
string<uuid>
required

Body

application/json
role
string
required

Message role: 'user', 'assistant', or 'system'

content
string
required

Message content

Minimum string length: 1
attachments
Attachments · object

File attachments metadata

metadata
Metadata · object

Response

Successful Response