Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
question
string
required

The current user question to send to the AI agent.

Required string length: 1 - 4000
messages
object[]

Prior conversation history (NOT including the current question). Used for multi-turn context.

Maximum array length: 50
conversationId
string

Stable identifier for multi-turn conversations. If omitted, a new ID is generated.

Maximum string length: 128
context
string

Free-form hint injected into the system prompt for this turn only.

Maximum string length: 2000
productId
string<uuid>

Scope the chat to a specific product. If omitted, the agent can access all products.

Response

SSE stream of chat events (text/event-stream). See endpoint description for event format.

Example SSE stream: