Skip to main content
POST
Stream chat response

Authorizations

x-api-key
string
header
required

API Key for server-to-server authentication. Resolves to the owning organization.

Headers

x-component-id
string

Optional component ID for component-specific chat context

Body

application/json
messages
string[]

Messages array for AI SDK format - list of conversation messages with roles

Example:
message
object

Single message for custom format - contains text and optional images

componentId
string

Component ID

userId
string

User ID

groupIds
string[]

Group IDs for access control

sessionId
string

Session ID

id
string

Session ID (AI SDK uses "id")

context
object

Additional context

Response

Successful streaming response (SSE format)