cURL
Agent
Cancel a run
Cancel a queued or running Agent run.
POST
cURL
If the run is still active, it transitions toDocumentation Index
Fetch the complete documentation index at: https://exa.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
cancelled. If the run has already completed, failed, or been cancelled, the endpoint returns the existing run.
Get your Exa API key
Authorizations
Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer .
Headers
Required beta token for the Agent.
Available options:
agent-2026-05-07 Path Parameters
Agent run ID.
Required string length:
1 - 200Pattern:
^[A-Za-z0-9_.:-]+$Example:
"agent_run_01j7x9v0m2n4p6q8r0s2t4v6w8"
Response
Agent run
Agent run ID. New run IDs are returned with the agent_run_ prefix.
Required string length:
1 - 200Pattern:
^[A-Za-z0-9_.:-]+$Example:
"agent_run_01j7x9v0m2n4p6q8r0s2t4v6w8"
Allowed value:
"agent_run"Available options:
queued, running, completed, failed, cancelled Why the run stopped. null while the run is queued or running.
Available options:
schema_satisfied, budget_reached, error, cancelled When the run was created
Canonicalized request fields stored with the run.

