Skip to main content
POST
Get agent response (v2)

Authorizations

X-API-Key
string
header
required

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

Agent response generated successfully

Response model for agent queries.

content
string
required

The agent's response in markdown format

sourceMap
Sourcemap · object
required

Mapping of citation reference IDs to chunk metadata. Empty when no relevant documents are found.