Cancel a run
Cancel a queued or running Agent run.
cancelled immediately and terminates without returning any results. The run ends with status cancelled and stopReason: cancelled. You are billed for usage accrued before cancellation. If the run has already reached a terminal status (completed, failed, or cancelled), the endpoint returns the existing run unchanged.
Get your Exa API key
Authorizations
Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer .
Path Parameters
Agent run ID.
1 - 200^[A-Za-z0-9_.:-]+$Response
Agent run
Agent run ID. New run IDs are returned with the agent_run_ prefix.
1 - 200^[A-Za-z0-9_.:-]+$"agent_run"queued, running, completed, failed, cancelled Why the run stopped. null while the run is queued or running. Every reason except error and cancelled means the run completed and returned what it found. Clients should accept values not listed here.
"schema_satisfied"When the run was created
Canonicalized request fields stored with the run.
Billed usage for the run. When an auto or ultra run's metered cost exceeds budget.maxCostDollars, the run is billed the budget and each quantity except dataSources is scaled down in proportion, so quantities can be fractional.