Skip to main content
POST
Stream agent response

Authorizations

X-API-Key
string
header
required

Headers

X-Langfuse-Trace-Id
string | null
X-Langfuse-Parent-Span-Id
string | null

Body

application/json

Request model for agent queries.

query
string
required

The natural language query

Minimum string length: 1
documentIds
string | null

Comma-separated string of document file IDs. If provided and non-empty, skips document and company selection and goes directly to retrieval.

Response

Server-Sent Events: thinking, message, content_final, sources, warning, done