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
include_audit
boolean

When set to true, the response metadata will include an audit object containing the resolved queries that were actually executed. Useful for debugging and understanding how the system interpreted your request.

Response

200 - application/json

Search results

results
object[]
required

Array of documents with one or more text chunks that match the query criteria.

usage
Query Units · object
required

API usage for the request. Shape depends on the account consumption model.

external_results
object

External search results grouped by source (e.g. web).

metadata
object

Request metadata and timing information.