Skip to main content
POST
Context Search

Authorizations

api_key
string
header
required

Body

application/json

Context search input with configuration

Context search input with inline configuration

query
string
required

Question or task to fetch context for

Minimum string length: 1
maxDurationSeconds
integer

Time budget for this request in seconds (10-180), overriding the agent's. When the run cannot finish its answer in time, data.answer is null with answerUnavailableReason insufficient_time.

Required range: 10 <= x <= 180
additionalContext
object | null

Optional person/company/details to enhance search

topK
number
rerank
enum<string>
Available options:
off,
low,
medium,
high,
best
sources
object
tools
object
agentTools
object

Graph is enabled by default for inline Context requests. Set graphContext.enabled to false to opt out. Other tools remain opt-in.

reasoning
object
answer
enum<string>
default:low

Also write a Markdown answer (about 3,500 characters at most) grounded only in the retrieved passages, with inline [n] markers that map to data.citations. off | low (default) | medium | high: higher tiers use a stronger model. Adds 1 / 10 / 20 credits on top of the base credit, charged only when the answer is returned. If it cannot be produced within the time budget (maxDurationSeconds) the call still succeeds with data.answer null and data.answerUnavailableReason set.

Available options:
off,
low,
medium,
high
answerOptions
object
commonContext
object | null

Response

Context search successful

_metadata
object
required
data
object
required
usage
number
required

Usage count for billing/credits

found
boolean
required

Whether the query was found

message
string
required

Message from the context agent