Create a run
Create an asynchronous Agent run. The response returns the run object immediately unless you request server-sent events.
query. Add outputSchema for validated structured JSON, input.data for rows to process, input.exclusion for records or entities to avoid, or previousRunId to continue from a completed run.
Set Accept: text/event-stream to stream run events as the run is created, started, and completed.
dataSources to give the agent access to third-party data providers during the run. See the Connect guide for details.Get your Exa API key
Authorizations
Headers
Body
Cost and reasoning effort preference for the run. auto lets Exa choose the appropriate effort. ultra is the highest-effort tier for work where completeness and thoroughness matter more than latency or cost, including large list building, deep multi-source research, and criteria that are hard to verify.
minimal, low, medium, high, xhigh, auto, ultra An opaque ID your platform assigns to the end user this request is made for, such as a UUID. Lets Exa attribute usage to that end user rather than your whole team. Must not contain personal information such as an email address, phone number, username, or name. Hash such values before sending them. 1 to 64 characters: letters, digits, underscores, and hyphens. Retained even when your team has Zero Data Retention enabled. Does not affect results.
1 - 64^[A-Za-z0-9_-]+$"7f3a9c52-1d4e-4b8a-9e60-2c5d8a1f0b37"
Response
Agent run created