Skip to main content
POST
Search documents

Authorizations

X-API-KEY
string
header
required

Body

application/json
search_mode
enum<string>
required

fast (default): Runs a single query using the specified filters. Best for pre-processed queries where you control the filters.

smart: Analyzes the query text to automatically define search filters and runs multiple sub-queries to ensure better coverage. Ideal for sending user questions directly without pre-processing. When using smart mode, only timestamp and source filters are allowed; using any other filters will result in a 400 Bad Request error.

Click here for a more detailed comparison

Available options:
fast,
smart
query
object
required

In Fast mode, provide at least one of text, texts or filters. In smart mode, only text is required.

include_audit
boolean
default:false

Smart mode only. When set to true, the response metadata includes an audit object listing the sub-queries that Smart mode actually ran, with their resolved filters and ranking settings. Useful for debugging and understanding how Smart mode interpreted your request.

response_detail
enum<string>
default:standard

Controls how much detail is returned for each result.

Available options:
light,
standard,
extended

Response

200 - application/json

Search results

The response schema corresponds to the requested response_detail value.

results
object[]
required

Documents and chunks that match the query criteria.

external_results
object
required

External search results grouped by source, such as web.

usage
Units · object
required

Usage under the query-units consumption model.

metadata
object

Request metadata and timing information.

errors
object[]

Errors reported while processing the search response.

pagination
object

Pagination state for the search response.