If the run is still active, it transitions to 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
Create a key in the dashboard. New accounts start with free credits.
Authorizations
apiKeybearer
x-api-key
string
header
required
Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer .
Path Parameters
id
string
required
Agent run ID.
Required string length: 1 - 200
Pattern: ^[A-Za-z0-9_.:-]+$
Response
Agent run
id
string
required
Agent run ID. New run IDs are returned with the agent_run_ prefix.
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.
Allowed value: "schema_satisfied"
createdAt
string<date-time>
required
When the run was created
completedAt
string<date-time>
required
request
object | null
required
Canonicalized request fields stored with the run.
Show child attributes
error
object | null
required
Why the run failed. null unless status is failed.
Show child attributes
output
object
required
Show child attributes
usage
object
required
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.
Show child attributes
costDollars
object
required
Show child attributes
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Exa","description":"A powerful web search tool designed for agents. Everything optimized to get you token-efficient, accurate results.","colors":{"primary":"#1840ED","light":"#5F7CFF","dark":"#2751F6"},"logo":{"light":"https://mintcdn.com/exa-52/rjfwhV9stZF3dXkq/logo/light.svg?fit=max\u0026auto=format\u0026n=rjfwhV9stZF3dXkq\u0026q=85\u0026s=23f6eeaafae25b4c8b6efb60ddc68e0c","dark":"https://mintcdn.com/exa-52/rjfwhV9stZF3dXkq/logo/dark.svg?fit=max\u0026auto=format\u0026n=rjfwhV9stZF3dXkq\u0026q=85\u0026s=977afb715a77c49036c8991b22bb82c7","href":"https://exa.ai/docs/search/quickstart"},"favicon":"https://mintcdn.com/exa-52/rjfwhV9stZF3dXkq/images/favicon-32x32.png?fit=max\u0026auto=format\u0026n=rjfwhV9stZF3dXkq\u0026q=85\u0026s=469bcaa3f02ba2672ac0dca63321dcb0","api":{"playground":{"display":"none","proxy":false},"examples":{"languages":["bash","python","javascript"]}},"navbar":{"links":[{"href":"https://exa.ai/blog","label":"Blog"}],"primary":{"type":"button","label":"API Dashboard","href":"https://dashboard.exa.ai/login?redirect=/\u0026utm_source=docs\u0026utm_medium=docs\u0026utm_campaign=navbar"}},"footer":{"socials":{"x":"https://twitter.com/exaailabs","linkedin":"https://www.linkedin.com/company/exa-ai"},"links":[{"items":[{"label":"llms.txt for AI agents","href":"https://exa.ai/docs/llms.txt"}]}]},"seo":{"metatags":{"canonical":"https://exa.ai/docs","og:type":"website","og:site_name":"Exa Docs"},"organization":{"id":"https://exa.ai/#organization","name":"Exa","legalName":"Exa Labs Inc.","url":"https://exa.ai","logo":"https://exa.imgix.net/logo_cream.png","sameAs":["https://x.com/exaailabs","https://www.linkedin.com/company/exa-ai/","https://github.com/exa-labs"]},"indexing":"navigable"},"fonts":{"heading":{"family":"ABCDiatype","weight":700,"source":"https://exa.ai/fonts/ABCDiatype-Bold.woff2","format":"woff2"}},"icons":{"library":"lucide"},"integrations":{"posthog":{"apiKey":"phc_ebUSDbDOBtuw7SuEOBFtu315tugMMml4W8zoT4DNMC4","apiHost":"https://kataposi.exa.ai","sessionRecording":false}},"errors":{"404":{"redirect":false,"title":"Page not found","description":"This URL does not exist. The index of every docs page is at [https://exa.ai/docs/llms.txt](https://exa.ai/docs/llms.txt) and the full documentation in one file is at [https://exa.ai/docs/llms-full.txt](https://exa.ai/docs/llms-full.txt). Append `.md` to any docs URL to get the page as Markdown."}},"contextual":{"options":["copy","view"],"display":"header"},"metadata":{"timestamp":true},"markdown":{"instructions":["The Exa API is served at https://api.exa.ai. Authenticate with `Authorization: Bearer $EXA_API_KEY` (or `x-api-key: $EXA_API_KEY`); create keys at https://dashboard.exa.ai/api-keys?utm_source=docs\u0026utm_medium=docs\u0026utm_campaign=markdown_instructions. Every way an agent can get access to Exa is described at https://exa.ai/auth.md.","Prefer the official SDKs, `exa-py` (`pip install exa-py`) and `exa-js` (`npm install exa-js`); both read `EXA_API_KEY` from the environment.","Tool-using agents can call Exa without writing code through the hosted MCP server at https://mcp.exa.ai/mcp, or install the Exa agent skill with `npx skills add exa-labs/agent-skills` (skill file: https://exa.ai/docs/skill.md).","The OpenAPI specs at https://exa.ai/docs/exa-spec.yaml and https://exa.ai/docs/team-management-spec.yaml are the source of truth for request and response schemas."]},"styling":{"latex":false},"navigation":{"global":{"anchors":[]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"exa-52","hasAudioNarration":false,"actualSubdomain":"exa-52","customDomains":["exa.ai"],"gitSource":{"type":"github","owner":"exa-labs","repo":"monorepo","deployBranch":"master","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af7009d23024a424fe63bee","clientVersion":"0.0.4128","searchFilterCounts":[{"language":"default","tag":"Documentation","count":91},{"language":"default","tag":"API Reference","count":73},{"language":"default","tag":"Websets","count":53},{"language":"default","tag":"Integrations","count":34},{"language":"default","tag":"Agent","count":23},{"language":"default","tag":"More Integrations","count":19},{"language":"default","tag":"Monitors","count":16},{"language":"default","tag":"Search","count":15},{"language":"default","tag":"Admin","count":12},{"language":"default","tag":"Exa Connect","count":12}],"searchSettings":{"isFiltersEnabled":false}},"assistantConfig":{"enableStarterQuestions":true,"deflection":{"enabled":true,"email":"support@exa.ai"}},"basePath":"/docs","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[{"_id":"6a60bd421505e66056cf352c","deploymentId":"67291fdb7046dbbc2a01ac40","questionText":"Help me set up the Exa MCP","status":"active","generatedBy":"manual","createdAt":"2026-07-22T12:53:22.594Z","updatedAt":"2026-07-22T12:53:35.820Z","__v":0},{"_id":"6a60bd341505e66056cf34c2","deploymentId":"67291fdb7046dbbc2a01ac40","questionText":"How do i get started with Exa Search?","status":"active","generatedBy":"manual","createdAt":"2026-07-22T12:53:08.806Z","updatedAt":"2026-07-22T12:53:08.806Z","__v":0},{"_id":"6a60bd2b1505e66056cf34b5","deploymentId":"67291fdb7046dbbc2a01ac40","questionText":"What is Exa Agent?","status":"active","generatedBy":"manual","createdAt":"2026-07-22T12:52:59.506Z","updatedAt":"2026-07-22T12:52:59.506Z","__v":0}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","href":"/docs/_mintlify/custom/exa-52/89bef6a596b2bbfc/styles.css"},{"filePath":"styles/code-snippet.css","content":""},{"filePath":"tokens.css","content":":root{--color-white: #ffffff;--color-black: #000000;--color-cream: #faf9f7;--color-cream-dark: #f0ece8;--color-exa-gray-100: #f8f8f9;--color-exa-gray-200: #f3f3f4;--color-exa-gray-300: #e6e6e8;--color-exa-gray-400: #d4d4d8;--color-exa-gray-500: #aaaab2;--color-exa-gray-600: #85858e;--color-exa-gray-700: #62626c;--color-exa-gray-800: #4f4f57;--color-exa-gray-900: #3f3f46;--color-exa-gray-1000: #0b0b0d;--color-exa-blue-100: #f7f8fc;--color-exa-blue-200: #eef2fa;--color-exa-blue-300: #dce5f7;--color-exa-blue-400: #c4d1ed;--color-exa-blue-500: #96b0eb;--color-exa-blue-600: #6089f2;--color-exa-blue-700: #2751f6;--color-exa-blue-800: #1622ed;--color-exa-blue-900: #1326d2;--color-exa-blue-1000: #0e236f;--color-emerald-100: #effdee;--color-emerald-200: #defcdb;--color-emerald-300: #b6f9b1;--color-emerald-400: #66f463;--color-emerald-500: #51d04f;--color-emerald-600: #38a838;--color-emerald-700: #248424;--color-emerald-800: #1b741c;--color-emerald-900: #156015;--color-emerald-1000: #043004;--color-amber-100: #fff7ec;--color-amber-200: #fef0d8;--color-amber-300: #fee0ae;--color-amber-400: #ffc763;--color-amber-500: #e4a40a;--color-amber-600: #b78306;--color-amber-700: #906604;--color-amber-800: #7e5903;--color-amber-900: #755703;--color-amber-1000: #342302;--color-rose-100: #fef6f5;--color-rose-200: #feedec;--color-rose-300: #fddbd8;--color-rose-400: #fdbfb9;--color-rose-500: #fc8c84;--color-rose-600: #fc333c;--color-rose-700: #ce0c24;--color-rose-800: #b5091e;--color-rose-900: #970918;--color-rose-1000: #4d0509;--color-exa-blue: #1840ed;--color-background-primary: var(--color-white);--color-background-secondary: #fafafa;--color-overlay: rgba(0, 0, 0, 0.35);--color-neutral-subtle: var(--color-exa-gray-100);--color-neutral-subtle-hover: var(--color-exa-gray-200);--color-neutral-subtle-active: var(--color-exa-gray-300);--color-neutral-border: var(--color-exa-gray-300);--color-neutral-border-hover: var(--color-exa-gray-500);--color-neutral-border-active: var(--color-exa-gray-600);--color-neutral-solid: var(--color-exa-gray-700);--color-neutral-solid-hover: var(--color-exa-gray-800);--color-neutral-foreground-secondary: var(--color-exa-gray-900);--color-neutral-foreground-primary: var(--color-exa-gray-1000);--color-neutral-on-solid: var(--color-white);--color-brand-subtle: var(--color-exa-blue-100);--color-brand-subtle-hover: var(--color-exa-blue-200);--color-brand-subtle-active: var(--color-exa-blue-300);--color-brand-border: var(--color-exa-blue-400);--color-brand-border-hover: var(--color-exa-blue-500);--color-brand-border-active: var(--color-exa-blue-600);--color-brand-solid: var(--color-exa-blue-700);--color-brand-solid-hover: var(--color-exa-blue-800);--color-brand-foreground-secondary: var(--color-exa-blue-900);--color-brand-foreground-primary: var(--color-exa-blue-1000);--color-brand-on-solid: var(--color-exa-blue-100);--color-success-subtle: var(--color-emerald-100);--color-success-subtle-hover: var(--color-emerald-200);--color-success-subtle-active: var(--color-emerald-300);--color-success-border: var(--color-emerald-400);--color-success-border-hover: var(--color-emerald-500);--color-success-border-active: var(--color-emerald-600);--color-success-solid: var(--color-emerald-700);--color-success-solid-hover: var(--color-emerald-800);--color-success-foreground-secondary: var(--color-emerald-900);--color-success-foreground-primary: var(--color-emerald-1000);--color-success-on-solid: var(--color-emerald-100);--color-warning-subtle: var(--color-amber-100);--color-warning-subtle-hover: var(--color-amber-200);--color-warning-subtle-active: var(--color-amber-300);--color-warning-border: var(--color-amber-400);--color-warning-border-hover: var(--color-amber-500);--color-warning-border-active: var(--color-amber-600);--color-warning-solid: var(--color-amber-700);--color-warning-solid-hover: var(--color-amber-800);--color-warning-foreground-secondary: var(--color-amber-900);--color-warning-foreground-primary: var(--color-amber-1000);--color-warning-on-solid: var(--color-amber-100);--color-danger-subtle: var(--color-rose-100);--color-danger-subtle-hover: var(--color-rose-200);--color-danger-subtle-active: var(--color-rose-300);--color-danger-border: var(--color-rose-400);--color-danger-border-hover: var(--color-rose-500);--color-danger-border-active: var(--color-rose-600);--color-danger-solid: var(--color-rose-700);--color-danger-solid-hover: var(--color-rose-800);--color-danger-foreground-secondary: var(--color-rose-900);--color-danger-foreground-primary: var(--color-rose-1000);--color-danger-on-solid: var(--color-rose-100)}.dark{--color-exa-gray-100: #111114;--color-exa-gray-200: #1a1a1d;--color-exa-gray-300: #26262a;--color-exa-gray-400: #323237;--color-exa-gray-500: #4a4a50;--color-exa-gray-600: #6e6e76;--color-exa-gray-700: #8b8b93;--color-exa-gray-800: #a1a1a8;--color-exa-gray-900: #bababf;--color-exa-gray-1000: #f5f5f6;--color-exa-blue-100: #030a1f;--color-exa-blue-200: #051336;--color-exa-blue-300: #09205b;--color-exa-blue-400: #0c2e8b;--color-exa-blue-500: #0b3bc2;--color-exa-blue-600: #205bf6;--color-exa-blue-700: #6192fd;--color-exa-blue-800: #7aa4fd;--color-exa-blue-900: #95b7fc;--color-exa-blue-1000: #eaebed;--color-emerald-100: #030f03;--color-emerald-200: #061c06;--color-emerald-300: #0d2f0c;--color-emerald-400: #164615;--color-emerald-500: #1f5f1e;--color-emerald-600: #278427;--color-emerald-700: #2fb430;--color-emerald-800: #35c736;--color-emerald-900: #41da41;--color-emerald-1000: #e6eee5;--color-amber-100: #110901;--color-amber-200: #1f1402;--color-amber-300: #342303;--color-amber-400: #4e3504;--color-amber-500: #6a4904;--color-amber-600: #926504;--color-amber-700: #c58a08;--color-amber-800: #da9909;--color-amber-900: #efa80b;--color-amber-1000: #edebe7;--color-rose-100: #1c0202;--color-rose-200: #300304;--color-rose-300: #4d060a;--color-rose-400: #700a12;--color-rose-500: #960c19;--color-rose-600: #cd1125;--color-rose-700: #fd5150;--color-rose-800: #fd7871;--color-rose-900: #fd978f;--color-rose-1000: #edeaea;--color-background-primary: var(--color-black);--color-background-secondary: #0d0d10;--color-overlay: rgba(0, 0, 0, 0.7);--color-neutral-on-solid: var(--color-black)}"}],"page":{"pagePath":"reference/agent-api/cancel-a-run","slug":"/reference/agent-api/cancel-a-run","pageMetadata":{"title":"Cancel a run","description":"Cancel a queued or running Agent run.","openapi":"exa-spec.yaml POST /agent/runs/{id}/cancel","timestamp":false,"href":"/reference/agent-api/cancel-a-run"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Cancel a queued or running Agent run.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,..._provideComponents(),...props.components},{Card}=_components;if(!Card)_missingMdxReference(`Card`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`If the run is still active, it transitions to `,_jsx(_components.code,{children:`cancelled`}),` immediately and terminates without returning any results. The run ends with status `,_jsx(_components.code,{children:`cancelled`}),` and `,_jsx(_components.code,{children:`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.`]}),`\n`,_jsx(Card,{title:`Get your Exa API key`,icon:`key`,horizontal:true,href:`https://dashboard.exa.ai/api-keys?utm_source=docs\u0026utm_medium=docs\u0026utm_campaign=get_key_card`,children:_jsx(_components.p,{children:`Create a key in the dashboard. New accounts start with free credits.`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cancel a run","description":"Cancel a queued or running Agent run.","openapi":"exa-spec.yaml POST /agent/runs/{id}/cancel","timestamp":false,"href":"/reference/agent-api/cancel-a-run"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/exa-52/8de825f90f4290eb/hash-scroll.js","/docs/_mintlify/custom/exa-52/b066a4230998ceb3/accordion-no-scroll.js","/docs/_mintlify/custom/exa-52/8b5e73ce01446520/playground-endpoint-filter.js","/docs/_mintlify/custom/exa-52/9fae5a1204aa21e0/telemetry-url-scrub.js","/docs/_mintlify/custom/exa-52/8da04c49a1ab6038/content-tabs.js","/docs/_mintlify/custom/exa-52/08b822eebaebc92d/home-tabs.js","/docs/_mintlify/custom/exa-52/ac33acc316b57a2a/sidebar-search.js","/docs/_mintlify/custom/exa-52/30f21fcfcf969c67/toc-indicator.js","/docs/_mintlify/custom/exa-52/99cc4afdbca2f801/sidebar-groups.js"],"openApiReferenceData":{"operation":{"operationId":"cancelAgentRun","summary":"Cancel a run","description":"Cancel a queued or running Agent run.","tags":["Agent"],"parameters":["bdcac86a-c77b-4d35-897d-185dc84c9660"],"responses":{"200":"2ed15a62-b007-45e4-8a4b-280e0d2c97f9","400":"14fdf761-44c9-4b6a-afc1-6f17871caeb4","401":"e6b9267c-d513-455c-b471-a3beda6a9215","402":"3027fa32-b6b6-46b4-b997-4a0eb6231d13","403":"99b30ff6-50dc-4831-96a1-24eb232dece4","404":"fded161e-2e54-4ab2-ba1f-47a6d4d86ac8","429":"fa1ca653-5f4f-43ef-8c09-781795e3589d","500":"e4369e69-ad16-4a3e-811b-5e0364994cc8"},"x-codeSamples":[{"lang":"bash","source":"curl -X POST https://api.exa.ai/agent/runs/\u003cid>/cancel \\\n -H \"x-api-key: $EXA_API_KEY\""},{"lang":"javascript","source":"import Exa from \"exa-js\";\n\nconst exa = new Exa(process.env.EXA_API_KEY);\n\nconst result = await exa.agent.runs.cancel(\"\u003cid>\");"},{"lang":"python","source":"from exa_py import Exa\n\nexa = Exa(api_key=\"YOUR_API_KEY\")\n\nresult = exa.agent.runs.cancel(\"\u003cid>\")"}],"method":"post","type":"path","servers":["deb79d7d-4f46-4326-8d6f-174fac1b3c75"],"security":["6f75f39f-fb75-45d0-b64e-5b7a3e991617","7a6b0df9-aa35-4630-9ce0-5c2c4fc357b3"],"path":"/agent/runs/{id}/cancel","baseUrlOptions":["https://api.exa.ai"],"title":"Cancel a run","codeSamples":[{"lang":"bash","source":"curl -X POST https://api.exa.ai/agent/runs/\u003cid>/cancel \\\n -H \"x-api-key: $EXA_API_KEY\""},{"lang":"javascript","source":"import Exa from \"exa-js\";\n\nconst exa = new Exa(process.env.EXA_API_KEY);\n\nconst result = await exa.agent.runs.cancel(\"\u003cid>\");"},{"lang":"python","source":"from exa_py import Exa\n\nexa = Exa(api_key=\"YOUR_API_KEY\")\n\nresult = exa.agent.runs.cancel(\"\u003cid>\")"}],"requestExampleLanguages":["bash","python","javascript"],"requiredOnlyExamples":false,"requestExampleType":"codeSamples","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"bdcac86a-c77b-4d35-897d-185dc84c9660":{"in":"path","name":"id","schema":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$","description":"Agent run ID.","isRequired":true,"uniqueKey":"","typeLabel":"string"},"required":true,"description":"Agent run ID."}},"responses":{"2ed15a62-b007-45e4-8a4b-280e0d2c97f9":{"description":"Agent run","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$","description":"Agent run ID. New run IDs are returned with the `agent_run_` prefix.","isRequired":true,"uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","const":"agent_run","isRequired":true,"uniqueKey":"object","typeLabel":"string"},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"],"isRequired":true,"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"stopReason":{"oneOf":[{"type":"string","description":"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.","const":"schema_satisfied","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.0","typeLabel":"string"},{"type":"string","description":"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.","const":"budget_reached","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.1","typeLabel":"string"},{"type":"string","description":"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.","const":"time_limit_reached","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.2","typeLabel":"string"},{"type":"string","description":"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.","const":"iteration_limit_reached","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.3","typeLabel":"string"},{"type":"string","description":"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.","const":"token_limit_reached","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.4","typeLabel":"string"},{"type":"string","description":"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.","const":"stopped","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.5","typeLabel":"string"},{"type":"string","description":"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.","const":"error","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.6","typeLabel":"string"},{"type":"string","description":"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.","const":"cancelled","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.7","typeLabel":"string"},{"type":"string","description":"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.","x-exa-enum-open":true,"isRequired":true,"uniqueKey":"stopReason.oneOf.8","typeLabel":"string"},{"type":"null","description":"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.","isRequired":true,"uniqueKey":"stopReason.oneOf.9","typeLabel":"null"}],"isRequired":true,"uniqueKey":"stopReason","typeLabel":"string · string · string · string · string · string · string · string · string · null"},"createdAt":{"type":"string","format":"date-time","description":"When the run was created","isRequired":true,"uniqueKey":"createdAt","typeLabel":"string\u003cdate-time>"},"completedAt":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"completedAt","typeLabel":"string\u003cdate-time>"},"request":{"oneOf":[{"type":"object","description":"Canonicalized request fields stored with the run.","properties":{"query":{"type":"string","minLength":1,"description":"Natural-language question or instructions for the request.","uniqueKey":"request.oneOf.0.query","typeLabel":"string"},"systemPrompt":{"type":"string","description":"Additional instructions that guide generated output or agent behavior. Use this for source preferences, novelty constraints, duplication constraints, or other behavior guidance.","uniqueKey":"request.oneOf.0.systemPrompt","typeLabel":"string"},"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh","auto","ultra"],"description":"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.","default":"auto","uniqueKey":"request.oneOf.0.effort","typeLabel":"enum\u003cstring>"},"input":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"request.oneOf.0.input.data.items.[INDEX].additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"description":"A JSON object record.","uniqueKey":"request.oneOf.0.input.data.items.[INDEX]","typeLabel":"object"},"description":"Records the agent should process or enrich.","uniqueKey":"request.oneOf.0.input.data","typeLabel":"object[]"},"exclusion":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX].additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"description":"A JSON object record.","uniqueKey":"request.oneOf.0.input.exclusion.items.[INDEX]","typeLabel":"object"},"description":"Records or entities the agent should avoid returning.","uniqueKey":"request.oneOf.0.input.exclusion","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"request.oneOf.0.input","typeLabel":"object"},"outputSchema":{"oneOf":[{"type":"object","description":"JSON Schema for validated structured output in `output.structured`. Fields unsupported by evidence may be returned as `null`. Supports draft-07, 2019-09, and 2020-12 via `$schema`.","additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"request.oneOf.0.outputSchema.oneOf.0.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"uniqueKey":"request.oneOf.0.outputSchema.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"request.oneOf.0.outputSchema.oneOf.1","typeLabel":"null"}],"uniqueKey":"request.oneOf.0.outputSchema","typeLabel":"object | null"},"previousRunId":{"type":"string","minLength":1,"maxLength":200,"pattern":"^[A-Za-z0-9_.:-]+$","description":"Agent run ID. New run IDs are returned with the `agent_run_` prefix.","uniqueKey":"request.oneOf.0.previousRunId","typeLabel":"string"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","uniqueKey":"request.oneOf.0.metadata.additionalProperties","typeLabel":"string"},"description":"Caller-provided key-value metadata for your own tracking.","uniqueKey":"request.oneOf.0.metadata","typeLabel":"object"},"dataSources":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string","minLength":1,"description":"Exa Connect data provider to enable for the run. All provider tools are available by default.","isRequired":true,"uniqueKey":"request.oneOf.0.dataSources.items.[INDEX].provider","typeLabel":"string"}},"required":["provider"],"additionalProperties":false,"uniqueKey":"request.oneOf.0.dataSources.items.[INDEX]","typeLabel":"object"},"description":"Exa Connect data providers configured for the run.","uniqueKey":"request.oneOf.0.dataSources","typeLabel":"object[]"},"budget":{"type":"object","properties":{"maxCostDollars":{"type":"number","description":"Accepts $1 to $100. For `auto` and `ultra`, caps total run cost with default caps of $5 and $20 respectively. For fixed efforts, caps contact-enrichment calls using the budget remaining after the fixed request price, without limiting research or reasoning steps. Fixed efforts have no default cap, and an explicit cap must cover the fixed request price.","uniqueKey":"request.oneOf.0.budget.maxCostDollars","typeLabel":"number"},"maxDurationSeconds":{"type":"integer","description":"Soft wall-clock ceiling for the run in seconds. Accepts 300–10,800 (5 minutes to 3 hours) and applies only to `ultra`. As the run approaches the limit, the agent stops starting new work and returns what it has found with `stopReason: \"time_limit_reached\"`.","uniqueKey":"request.oneOf.0.budget.maxDurationSeconds","typeLabel":"integer"}},"additionalProperties":false,"description":"Per-run cost or contact-enrichment limits, depending on effort, and an `ultra` duration limit.","uniqueKey":"request.oneOf.0.budget","typeLabel":"object"}},"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"request.oneOf.0.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"request.oneOf.0.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"request.oneOf.0.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"request.oneOf.0.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"request.oneOf.0.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"request.oneOf.0.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"request.oneOf.0.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"request.oneOf.0.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"isRequired":true,"uniqueKey":"request.oneOf.0","typeLabel":"object"},{"type":"null","isRequired":true,"uniqueKey":"request.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"request","typeLabel":"object | null"},"error":{"oneOf":[{"type":"object","description":"Why the run failed. `null` unless `status` is `failed`.","required":["type","code","message"],"properties":{"type":{"type":"string","enum":["INVALID_REQUEST","AUTHENTICATION_ERROR","RATE_LIMIT_ERROR","NOT_FOUND","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.oneOf.0.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["INVALID_REQUEST","TEAM_NOT_FOUND","RUN_NOT_FOUND","PREVIOUS_RUN_NOT_FOUND","PREVIOUS_RUN_NOT_COMPLETED","CONCURRENCY_LIMIT_REACHED","INVALID_OUTPUT_SCHEMA","INVALID_DATA_SOURCE","TIMEOUT","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.oneOf.0.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.oneOf.0.message","typeLabel":"string"}},"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"error.oneOf.0.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"error.oneOf.0.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"error.oneOf.0.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"error.oneOf.0.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"error.oneOf.0.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"error.oneOf.0.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"error.oneOf.0.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.oneOf.0.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"isRequired":true,"uniqueKey":"error.oneOf.0","typeLabel":"object"},{"type":"null","description":"Why the run failed. `null` unless `status` is `failed`.","isRequired":true,"uniqueKey":"error.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"error","typeLabel":"object | null"},"output":{"type":"object","properties":{"text":{"type":"string","description":"Natural-language answer or summary.","isRequired":true,"uniqueKey":"output.text","typeLabel":"string"},"structured":{"oneOf":[{"type":"null","description":"JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.","isRequired":true,"uniqueKey":"output.structured.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.","isRequired":true,"uniqueKey":"output.structured.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.","isRequired":true,"uniqueKey":"output.structured.oneOf.2","typeLabel":"number"},{"type":"string","description":"JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.","isRequired":true,"uniqueKey":"output.structured.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"output.structured.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.","isRequired":true,"uniqueKey":"output.structured.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.","isRequired":true,"uniqueKey":"output.structured.oneOf.5","typeLabel":"object"},{"type":"null","description":"JSON shaped by `outputSchema`; fields unsupported by evidence may be `null`. `null` when no schema was provided.","isRequired":true,"uniqueKey":"output.structured.oneOf.6","typeLabel":"null"}],"isRequired":true,"uniqueKey":"output.structured","typeLabel":"null · boolean · number · string · any[] · object · null"},"grounding":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","description":"Output field the citations support.","isRequired":true,"uniqueKey":"output.grounding.items.[INDEX].field","typeLabel":"string"},"citations":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri","description":"Source URL.","isRequired":true,"uniqueKey":"output.grounding.items.[INDEX].citations.items.[INDEX].url","typeLabel":"string\u003curi>"},"title":{"type":"string","description":"Source title.","uniqueKey":"output.grounding.items.[INDEX].citations.items.[INDEX].title","typeLabel":"string"}},"required":["url"],"additionalProperties":false,"uniqueKey":"output.grounding.items.[INDEX].citations.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"output.grounding.items.[INDEX].citations","typeLabel":"object[]"},"confidence":{"oneOf":[{"type":"string","description":"Model-reported reliability for this field.","enum":["low","medium","high"],"uniqueKey":"output.grounding.items.[INDEX].confidence.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"output.grounding.items.[INDEX].confidence.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.grounding.items.[INDEX].confidence","typeLabel":"enum\u003cstring> | null"}},"required":["field","citations"],"additionalProperties":false,"uniqueKey":"output.grounding.items.[INDEX]","typeLabel":"object"},"description":"Field-level citations emitted by the run.","isRequired":true,"uniqueKey":"output.grounding","typeLabel":"object[]"}},"required":["text","structured","grounding"],"additionalProperties":false,"isRequired":true,"uniqueKey":"output","typeLabel":"object"},"usage":{"type":"object","properties":{"agentComputeUnits":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"usage.agentComputeUnits","typeLabel":"number"},"searches":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"usage.searches","typeLabel":"number"},"emails":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"usage.emails","typeLabel":"number"},"phoneNumbers":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"usage.phoneNumbers","typeLabel":"number"},"dataSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"integer","minimum":0,"uniqueKey":"usage.dataSources.additionalProperties","typeLabel":"integer"},"description":"Per-provider tool call counts for Exa Connect data sources used during the run. Keys are provider names (e.g. `fiber`, `similarweb`). Only providers with non-zero usage are included.","uniqueKey":"usage.dataSources","typeLabel":"object"}},"required":["agentComputeUnits","searches","emails","phoneNumbers"],"additionalProperties":false,"description":"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.","isRequired":true,"uniqueKey":"usage","typeLabel":"object"},"costDollars":{"type":"object","properties":{"total":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"costDollars.total","typeLabel":"number"},"agentCompute":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"costDollars.agentCompute","typeLabel":"number"},"search":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"costDollars.search","typeLabel":"number"},"emails":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"costDollars.emails","typeLabel":"number"},"phoneNumbers":{"type":"number","minimum":0,"isRequired":true,"uniqueKey":"costDollars.phoneNumbers","typeLabel":"number"},"dataSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number","minimum":0,"uniqueKey":"costDollars.dataSources.additionalProperties","typeLabel":"number"},"description":"Per-provider cost in dollars for Exa Connect data sources used during the run. Keys are provider names (e.g. `fiber`, `similarweb`). Only providers with non-zero usage are included.","uniqueKey":"costDollars.dataSources","typeLabel":"object"}},"required":["total","agentCompute","search","emails","phoneNumbers"],"additionalProperties":false,"isRequired":true,"uniqueKey":"costDollars","typeLabel":"object"}},"required":["id","object","status","stopReason","createdAt","completedAt","request","error","output","usage","costDollars"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","object":"agent_run","status":"queued","stopReason":"schema_satisfied","createdAt":"2023-11-07T05:31:56Z","completedAt":"2023-11-07T05:31:56Z","request":{"query":"\u003cstring>","systemPrompt":"\u003cstring>","effort":"auto","input":{"data":[{}],"exclusion":[{}]},"outputSchema":{},"previousRunId":"\u003cstring>","metadata":{},"dataSources":[{"provider":"\u003cstring>"}],"budget":{"maxCostDollars":123,"maxDurationSeconds":123}},"error":{"type":"INVALID_REQUEST","code":"INVALID_REQUEST","message":"\u003cstring>"},"output":{"text":"\u003cstring>","structured":true,"grounding":[{"field":"\u003cstring>","citations":[{"url":"\u003cstring>","title":"\u003cstring>"}],"confidence":"low"}]},"usage":{"agentComputeUnits":1,"searches":1,"emails":1,"phoneNumbers":1,"dataSources":{}},"costDollars":{"total":1,"agentCompute":1,"search":1,"emails":1,"phoneNumbers":1,"dataSources":{}}}}},"exampleType":"generated"}},"exampleType":"generated"},"14fdf761-44c9-4b6a-afc1-6f17871caeb4":{"description":"Invalid request.","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["INVALID_REQUEST","AUTHENTICATION_ERROR","RATE_LIMIT_ERROR","NOT_FOUND","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["INVALID_REQUEST","TEAM_NOT_FOUND","RUN_NOT_FOUND","PREVIOUS_RUN_NOT_FOUND","PREVIOUS_RUN_NOT_COMPLETED","CONCURRENCY_LIMIT_REACHED","INVALID_OUTPUT_SCHEMA","INVALID_DATA_SOURCE","TIMEOUT","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","code","message"],"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"error.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"INVALID_REQUEST","code":"INVALID_REQUEST","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e6b9267c-d513-455c-b471-a3beda6a9215":{"description":"Team context or authentication was not found.","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["INVALID_REQUEST","AUTHENTICATION_ERROR","RATE_LIMIT_ERROR","NOT_FOUND","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["INVALID_REQUEST","TEAM_NOT_FOUND","RUN_NOT_FOUND","PREVIOUS_RUN_NOT_FOUND","PREVIOUS_RUN_NOT_COMPLETED","CONCURRENCY_LIMIT_REACHED","INVALID_OUTPUT_SCHEMA","INVALID_DATA_SOURCE","TIMEOUT","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","code","message"],"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"error.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"INVALID_REQUEST","code":"INVALID_REQUEST","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"3027fa32-b6b6-46b4-b997-4a0eb6231d13":{"description":"The API key has exceeded its spending budget. Ask a team administrator to raise the key's budget, or use a different API key.","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"oneOf":[{"type":"object","description":"Standard error envelope returned by the Exa API for failed requests.","required":["requestId","error","tag"],"properties":{"requestId":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"oneOf.0.requestId","typeLabel":"string"},"error":{"type":"string","description":"Human-readable message describing the error.","isRequired":true,"uniqueKey":"oneOf.0.error","typeLabel":"string"},"tag":{"type":"string","description":"Machine-readable error tag identifying the failure. The set of tags is open-ended: new tags may be added at any time, so treat unrecognized tags as a generic error of the response's HTTP status. Known tags are listed as examples.","isRequired":true,"uniqueKey":"oneOf.0.tag","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.0","typeLabel":"object"},{"type":"object","required":["statusCode","timestamp","message","error","path","requestId"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code of the response.","isRequired":true,"uniqueKey":"oneOf.1.statusCode","typeLabel":"integer"},"timestamp":{"type":"string","format":"date-time","description":"When the error occurred.","isRequired":true,"uniqueKey":"oneOf.1.timestamp","typeLabel":"string\u003cdate-time>"},"message":{"type":"string","description":"What went wrong and how to resolve it.","isRequired":true,"uniqueKey":"oneOf.1.message","typeLabel":"string"},"error":{"type":"string","const":"API_KEY_BUDGET_EXCEEDED","description":"Machine-readable error tag.","isRequired":true,"uniqueKey":"oneOf.1.error","typeLabel":"string"},"path":{"type":"string","description":"Request path that failed.","isRequired":true,"uniqueKey":"oneOf.1.path","typeLabel":"string"},"requestId":{"type":"string","description":"ID of the failed request, for support.","isRequired":true,"uniqueKey":"oneOf.1.requestId","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"oneOf.1","typeLabel":"object"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestId":"\u003cstring>","error":"\u003cstring>","tag":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"99b30ff6-50dc-4831-96a1-24eb232dece4":{"description":"The team is not permitted to use this endpoint (`TEAM_BLOCKED`), or the feature is not enabled for it (`FEATURE_DISABLED`).","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"requestId":{"type":"string","description":"Unique identifier for the request.","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"},"error":{"type":"string","description":"Human-readable message describing the error.","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"tag":{"type":"string","description":"Machine-readable error tag identifying the failure. The set of tags is open-ended: new tags may be added at any time, so treat unrecognized tags as a generic error of the response's HTTP status. Known tags are listed as examples.","isRequired":true,"uniqueKey":"tag","typeLabel":"string"}},"required":["requestId","error","tag"],"additionalProperties":false,"description":"Standard error envelope returned by the Exa API for failed requests.","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requestId":"\u003cstring>","error":"\u003cstring>","tag":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"fded161e-2e54-4ab2-ba1f-47a6d4d86ac8":{"description":"Run not found.","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["INVALID_REQUEST","AUTHENTICATION_ERROR","RATE_LIMIT_ERROR","NOT_FOUND","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["INVALID_REQUEST","TEAM_NOT_FOUND","RUN_NOT_FOUND","PREVIOUS_RUN_NOT_FOUND","PREVIOUS_RUN_NOT_COMPLETED","CONCURRENCY_LIMIT_REACHED","INVALID_OUTPUT_SCHEMA","INVALID_DATA_SOURCE","TIMEOUT","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","code","message"],"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"error.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"INVALID_REQUEST","code":"INVALID_REQUEST","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"fa1ca653-5f4f-43ef-8c09-781795e3589d":{"description":"Agent run concurrency limit reached.","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["INVALID_REQUEST","AUTHENTICATION_ERROR","RATE_LIMIT_ERROR","NOT_FOUND","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["INVALID_REQUEST","TEAM_NOT_FOUND","RUN_NOT_FOUND","PREVIOUS_RUN_NOT_FOUND","PREVIOUS_RUN_NOT_COMPLETED","CONCURRENCY_LIMIT_REACHED","INVALID_OUTPUT_SCHEMA","INVALID_DATA_SOURCE","TIMEOUT","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","code","message"],"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"error.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"INVALID_REQUEST","code":"INVALID_REQUEST","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e4369e69-ad16-4a3e-811b-5e0364994cc8":{"description":"Server error or run timeout.","headers":{"x-request-id":{"description":"Unique identifier for the request. Matches the `requestId` field returned in response bodies that carry one.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"type":{"type":"string","enum":["INVALID_REQUEST","AUTHENTICATION_ERROR","RATE_LIMIT_ERROR","NOT_FOUND","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.type","typeLabel":"enum\u003cstring>"},"code":{"type":"string","enum":["INVALID_REQUEST","TEAM_NOT_FOUND","RUN_NOT_FOUND","PREVIOUS_RUN_NOT_FOUND","PREVIOUS_RUN_NOT_COMPLETED","CONCURRENCY_LIMIT_REACHED","INVALID_OUTPUT_SCHEMA","INVALID_DATA_SOURCE","TIMEOUT","SERVER_ERROR"],"isRequired":true,"uniqueKey":"error.code","typeLabel":"enum\u003cstring>"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"required":["type","code","message"],"additionalProperties":{"oneOf":[{"type":"null","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.0","typeLabel":"null"},{"type":"boolean","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.1","typeLabel":"boolean"},{"type":"number","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.2","typeLabel":"number"},{"type":"string","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.3","typeLabel":"string"},{"type":"array","items":{"oneOf":[{}],"uniqueKey":"error.additionalProperties.oneOf.4.items.[INDEX]","typeLabel":"any"},"description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.4","typeLabel":"any[]"},{"type":"object","description":"Any JSON value.","uniqueKey":"error.additionalProperties.oneOf.5","typeLabel":"object"}],"uniqueKey":"error.additionalProperties","typeLabel":"null | boolean | number | string | any[] | object"},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"required":["error"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"type":"INVALID_REQUEST","code":"INVALID_REQUEST","message":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"6f75f39f-fb75-45d0-b64e-5b7a3e991617":{"apiKey":{"type":"apiKey","name":"x-api-key","in":"header","description":"Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer \u003ckey>.","scopes":[],"schemeName":"apiKey"}},"7a6b0df9-aa35-4630-9ce0-5c2c4fc357b3":{"bearer":{"type":"http","scheme":"bearer","description":"Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer \u003ckey>.","scopes":[],"schemeName":"bearer"}}},"servers":{"deb79d7d-4f46-4326-8d6f-174fac1b3c75":{"url":"https://api.exa.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","name":"x-api-key","in":"header","description":"Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer \u003ckey>.","scopes":[],"schemeName":"apiKey"},"schema":{"title":"x-api-key","type":"string","description":"Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer \u003ckey>.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKey","name":"x-api-key"}],"title":"apiKey"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer \u003ckey>.","scopes":[],"schemeName":"bearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Pass your Exa API key in the x-api-key header. You can also authenticate with Authorization: Bearer \u003ckey>.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearer","name":"Authorization"}],"title":"bearer"}]},"originalFileLocation":"exa-spec.yaml"},"subdomain":"exa-52","siteName":"Exa","title":"Cancel a run - Exa","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"reference/agent-api/cancel-a-run.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Cancel a queued or running Agent run.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Exa\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel a run - Exa\">\u003cmeta data-mint-head property=\"og:description\" content=\"Cancel a queued or running Agent run.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Exa Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://exa.ai/docs/reference/agent-api/cancel-a-run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://exa-52.mintlify.site/docs/_mintlify/api/og/v2?division=Agent\u0026amp;title=Cancel+a+run\u0026amp;description=Cancel+a+queued+or+running+Agent+run.\u0026amp;theme=fd42829ed178cd7cb45776ad\u0026amp;signature=9c64964879ed4859b4bab45a246ea677aba0d9616dd44e4629aeda646161d563\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Cancel a run - Exa\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Cancel a queued or running Agent run.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://exa-52.mintlify.site/docs/_mintlify/api/og/v2?division=Agent\u0026amp;title=Cancel+a+run\u0026amp;description=Cancel+a+queued+or+running+Agent+run.\u0026amp;theme=fd42829ed178cd7cb45776ad\u0026amp;signature=9c64964879ed4859b4bab45a246ea677aba0d9616dd44e4629aeda646161d563\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/exa-52/IXdJPX9fh2ANJEqv/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Exa\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1840ED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://exa.ai/docs/reference/agent-api/cancel-a-run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/reference/agent-api/cancel-a-run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://exa.ai/#organization\",\"name\":\"Exa\",\"legalName\":\"Exa Labs Inc.\",\"url\":\"https://exa.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://exa.imgix.net/logo_cream.png\"},\"sameAs\":[\"https://x.com/exaailabs\",\"https://www.linkedin.com/company/exa-ai/\",\"https://github.com/exa-labs\"]},{\"@type\":\"WebSite\",\"@id\":\"https://exa.ai/docs#website\",\"name\":\"Exa\",\"url\":\"https://exa.ai/docs\",\"publisher\":{\"@id\":\"https://exa.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run#webpage\",\"url\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run\",\"name\":\"Cancel a run\",\"description\":\"Cancel a queued or running Agent run.\",\"isPartOf\":{\"@id\":\"https://exa.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent\",\"item\":\"https://exa.ai/docs/reference/agent-api/create-a-run\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel a run\",\"item\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run#apireference\",\"headline\":\"Cancel a run\",\"name\":\"Cancel a run\",\"description\":\"Cancel a queued or running Agent run.\",\"url\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run\",\"mainEntityOfPage\":{\"@id\":\"https://exa.ai/docs/reference/agent-api/cancel-a-run#webpage\"},\"publisher\":{\"@id\":\"https://exa.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://exa.ai/docs#website\"}}]}\u003c/script>","agentPointerHref":"/docs/reference/agent-api/cancel-a-run.md","siteName":"Exa","nav":{"global":{"anchors":[]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Search","boost":4,"pages":[{"title":"Search","openapi":"exa-spec.yaml POST /search","href":"/reference/search"}]},{"group":"Contents","boost":4,"pages":[{"title":"Contents","openapi":"exa-spec.yaml POST /contents","href":"/reference/get-contents"}]},{"group":"Agent","boost":4,"pages":[{"title":"Create a run","openapi":"exa-spec.yaml POST /agent/runs","href":"/reference/agent-api/create-a-run"},{"title":"Get an Agent run","sidebarTitle":"Get a run","openapi":"exa-spec.yaml GET /agent/runs/{id}","href":"/reference/agent-api/get-a-run"},{"title":"List Agent runs","sidebarTitle":"List runs","description":"Retrieve a paginated list of Agent runs for your team.","openapi":"exa-spec.yaml GET /agent/runs","href":"/reference/agent-api/list-runs"},{"title":"Cancel a run","openapi":"exa-spec.yaml POST /agent/runs/{id}/cancel","href":"/reference/agent-api/cancel-a-run"},{"title":"Stop a run","description":"Gracefully stop a running Agent run and keep the results gathered so far.","openapi":"exa-spec.yaml POST /agent/runs/{id}/stop","href":"/reference/agent-api/stop-a-run"},{"title":"Delete a run","openapi":"exa-spec.yaml DELETE /agent/runs/{id}","href":"/reference/agent-api/delete-a-run"},{"title":"List run events","openapi":"exa-spec.yaml GET /agent/runs/{id}/events","href":"/reference/agent-api/list-run-events"}]},{"group":"Monitors","boost":2,"pages":[{"openapi":"exa-spec.yaml POST /monitors","title":"Create a monitor","href":"/reference/monitors/create-a-monitor"},{"openapi":"exa-spec.yaml GET /monitors","title":"List monitors","href":"/reference/monitors/list-monitors"},{"openapi":"exa-spec.yaml GET /monitors/{id}","title":"Get a monitor","href":"/reference/monitors/get-a-monitor"},{"openapi":"exa-spec.yaml PATCH /monitors/{id}","title":"Update a monitor","href":"/reference/monitors/update-a-monitor"},{"openapi":"exa-spec.yaml DELETE /monitors/{id}","title":"Delete a monitor","href":"/reference/monitors/delete-a-monitor"},{"openapi":"exa-spec.yaml POST /monitors/{id}/trigger","title":"Trigger a monitor","href":"/reference/monitors/trigger-a-monitor"},{"openapi":"exa-spec.yaml POST /monitors/batch","title":"Batch action on monitors","href":"/reference/monitors/batch-monitors"},{"group":"Runs","pages":[{"openapi":"exa-spec.yaml GET /monitors/{id}/runs","title":"List runs","href":"/reference/monitors/runs/list-runs"},{"openapi":"exa-spec.yaml GET /monitors/{id}/runs/{runId}","title":"Get a run","href":"/reference/monitors/runs/get-a-run"}]}]},{"group":"Answer","boost":2,"pages":[{"title":"Answer","openapi":"exa-spec.yaml POST /answer","href":"/reference/answer"}]},{"group":"Batch","boost":2,"pages":[{"title":"Create a batch","openapi":"exa-spec.yaml POST /batches","href":"/reference/batches/create-a-batch"},{"title":"List batches","openapi":"exa-spec.yaml GET /batches","href":"/reference/batches/list-batches"},{"title":"Get a batch","openapi":"exa-spec.yaml GET /batches/{id}","href":"/reference/batches/get-a-batch"},{"title":"Cancel a batch","openapi":"exa-spec.yaml POST /batches/{id}/cancel","href":"/reference/batches/cancel-a-batch"},{"title":"Delete a batch","openapi":"exa-spec.yaml DELETE /batches/{id}","href":"/reference/batches/delete-a-batch"}]},{"group":"Team Management","boost":0.25,"pages":[{"title":"Create API key","openapi":"team-management-spec.yaml POST /api-keys","href":"/reference/team-management/create-api-key"},{"title":"List API keys","openapi":"team-management-spec.yaml GET /api-keys","href":"/reference/team-management/list-api-keys"},{"title":"Get API key","openapi":"team-management-spec.yaml GET /api-keys/{id}","href":"/reference/team-management/get-api-key"},{"title":"Get API key usage","openapi":"team-management-spec.yaml GET /api-keys/{id}/usage","href":"/reference/team-management/get-api-key-usage"},{"title":"Get team credits","openapi":"team-management-spec.yaml GET /credits","href":"/reference/team-management/get-team-credits"},{"title":"Update API key","openapi":"team-management-spec.yaml PUT /api-keys/{id}","href":"/reference/team-management/update-api-key"},{"title":"Rotate API key","openapi":"team-management-spec.yaml POST /api-keys/{id}/rotate","href":"/reference/team-management/rotate-api-key"},{"title":"Revoke previous API key secret","openapi":"team-management-spec.yaml POST /api-keys/{id}/revoke-previous","href":"/reference/team-management/revoke-previous-api-key-secret"},{"title":"Delete API key","openapi":"team-management-spec.yaml DELETE /api-keys/{id}","href":"/reference/team-management/delete-api-key"}]},{"group":"Websets","boost":0.25,"pages":[{"group":"Websets","icon":"folder","pages":[{"title":"Create a webset","openapi":"exa-spec.yaml POST /v0/websets","href":"/websets/api/websets/create-a-webset"},{"title":"Get a webset","openapi":"exa-spec.yaml GET /v0/websets/{id}","href":"/websets/api/websets/get-a-webset"},{"title":"Update a webset","openapi":"exa-spec.yaml POST /v0/websets/{id}","href":"/websets/api/websets/update-a-webset"},{"title":"Delete a webset","openapi":"exa-spec.yaml DELETE /v0/websets/{id}","href":"/websets/api/websets/delete-a-webset"},{"title":"Preview a webset","openapi":"exa-spec.yaml POST /v0/websets/preview","href":"/websets/api/websets/preview-a-webset"},{"title":"Cancel a running webset","openapi":"exa-spec.yaml POST /v0/websets/{id}/cancel","href":"/websets/api/websets/cancel-a-running-webset"},{"title":"List all websets","openapi":"exa-spec.yaml GET /v0/websets","href":"/websets/api/websets/list-all-websets"}]},{"group":"Items","icon":"list","pages":[{"title":"Get an item","openapi":"exa-spec.yaml GET /v0/websets/{webset}/items/{id}","href":"/websets/api/websets/items/get-an-item"},{"title":"Delete an item","openapi":"exa-spec.yaml DELETE /v0/websets/{webset}/items/{id}","href":"/websets/api/websets/items/delete-an-item"},{"title":"List all items for a webset","openapi":"exa-spec.yaml GET /v0/websets/{webset}/items","href":"/websets/api/websets/items/list-all-items-for-a-webset"}]},{"group":"Searches","icon":"search","pages":[{"title":"Create a search","openapi":"exa-spec.yaml POST /v0/websets/{webset}/searches","href":"/websets/api/websets/searches/create-a-search"},{"title":"Get a search","openapi":"exa-spec.yaml GET /v0/websets/{webset}/searches/{id}","href":"/websets/api/websets/searches/get-a-search"},{"title":"Cancel a running search","openapi":"exa-spec.yaml POST /v0/websets/{webset}/searches/{id}/cancel","href":"/websets/api/websets/searches/cancel-a-running-search"}]},{"group":"Enrichments","icon":"sparkles","pages":[{"title":"Create an enrichment","openapi":"exa-spec.yaml POST /v0/websets/{webset}/enrichments","href":"/websets/api/websets/enrichments/create-an-enrichment"},{"title":"Get an enrichment","openapi":"exa-spec.yaml GET /v0/websets/{webset}/enrichments/{id}","href":"/websets/api/websets/enrichments/get-an-enrichment"},{"title":"Update an enrichment","openapi":"exa-spec.yaml PATCH /v0/websets/{webset}/enrichments/{id}","href":"/websets/api/websets/enrichments/update-an-enrichment"},{"title":"Delete an enrichment","openapi":"exa-spec.yaml DELETE /v0/websets/{webset}/enrichments/{id}","href":"/websets/api/websets/enrichments/delete-an-enrichment"},{"title":"Cancel a running enrichment","openapi":"exa-spec.yaml POST /v0/websets/{webset}/enrichments/{id}/cancel","href":"/websets/api/websets/enrichments/cancel-a-running-enrichment"}]},{"group":"Imports","icon":"cloud-download","pages":[{"title":"Create an import","openapi":"exa-spec.yaml POST /v0/imports","href":"/websets/api/imports/create-an-import"},{"title":"Get an import","openapi":"exa-spec.yaml GET /v0/imports/{id}","href":"/websets/api/imports/get-import"},{"title":"Update an import","openapi":"exa-spec.yaml PATCH /v0/imports/{id}","href":"/websets/api/imports/update-import"},{"title":"Delete an import","openapi":"exa-spec.yaml DELETE /v0/imports/{id}","href":"/websets/api/imports/delete-import"},{"title":"List imports","openapi":"exa-spec.yaml GET /v0/imports","href":"/websets/api/imports/list-imports"}]},{"group":"Monitors","icon":"satellite","pages":[{"title":"Create a Websets monitor","sidebarTitle":"Create a monitor","openapi":"exa-spec.yaml POST /v0/monitors","href":"/websets/api/monitors/create-a-monitor"},{"title":"Get a Websets monitor","sidebarTitle":"Get a monitor","openapi":"exa-spec.yaml GET /v0/monitors/{id}","href":"/websets/api/monitors/get-monitor"},{"title":"Update a Websets monitor","sidebarTitle":"Update a monitor","openapi":"exa-spec.yaml PATCH /v0/monitors/{id}","href":"/websets/api/monitors/update-monitor"},{"title":"Delete a Websets monitor","sidebarTitle":"Delete a monitor","openapi":"exa-spec.yaml DELETE /v0/monitors/{id}","href":"/websets/api/monitors/delete-monitor"},{"title":"List Websets monitors","sidebarTitle":"List monitors","openapi":"exa-spec.yaml GET /v0/monitors","href":"/websets/api/monitors/list-monitors"},{"group":"Monitor Runs","icon":"play","pages":[{"title":"List monitor runs","openapi":"exa-spec.yaml GET /v0/monitors/{monitor}/runs","href":"/websets/api/monitors/runs/list-monitor-runs"},{"title":"Get a monitor run","openapi":"exa-spec.yaml GET /v0/monitors/{monitor}/runs/{id}","href":"/websets/api/monitors/runs/get-monitor-run"}]}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Create a webhook","openapi":"exa-spec.yaml POST /v0/webhooks","href":"/websets/api/webhooks/create-a-webhook"},{"title":"Get a webhook","openapi":"exa-spec.yaml GET /v0/webhooks/{id}","href":"/websets/api/webhooks/get-a-webhook"},{"title":"Update a webhook","openapi":"exa-spec.yaml PATCH /v0/webhooks/{id}","href":"/websets/api/webhooks/update-a-webhook"},{"title":"Delete a webhook","openapi":"exa-spec.yaml DELETE /v0/webhooks/{id}","href":"/websets/api/webhooks/delete-a-webhook"},{"title":"List webhooks","openapi":"exa-spec.yaml GET /v0/webhooks","href":"/websets/api/webhooks/list-webhooks"},{"title":"List webhook attempts","openapi":"exa-spec.yaml GET /v0/webhooks/{id}/attempts","href":"/websets/api/webhooks/attempts/list-webhook-attempts"},{"title":"Verifying signatures","href":"/websets/api/webhooks/verifying-signatures"}]},{"group":"Events","icon":"bell","pages":[{"title":"Event types","sidebarTitle":"Types","href":"/websets/api/events/types"},{"title":"List all events","openapi":"exa-spec.yaml GET /v0/events","href":"/websets/api/events/list-all-events"},{"title":"Get an event","openapi":"exa-spec.yaml GET /v0/events/{id}","href":"/websets/api/events/get-an-event"}]},{"group":"Teams","icon":"users","pages":[{"title":"Get team info","openapi":"exa-spec.yaml GET /v0/teams/me","href":"/websets/api/teams/get-team-info"}]}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Cancel a run - Exa","buildId":"dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ","deploymentId":"dpl_4UDxC3erAcBDHX8QT9FjyxxnLZSQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CpJ44y6j.js","utils-DRi8JwoB.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D6b6ny2H.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CgBjVdxd.js","snippetPresets-u4Are-mZ.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTFiS5AN.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-DuAEpWYt.js","shallow-BzqLj4xC.js","getApiPlaygroundDisplay-CKb7GIdu.js","CodeSnippet-BaOQDoQh.js","CodeSnippets-CNRiM0PE.js","Page-BlovTRO5.js","getPastedJson-qjrnOjTO.js","icon-Dt4VFpdV.js","MethodPill-c-UgMFw3.js","DuplicateIcon-BRwru6S6.js","createIcon-DBGdUgXw.js","DynamicMarkdown-B7gJlzwx.js","SectionHeading-CCarmMPF.js","axios-vUo_bRtp.js","Markdown-DCI2IZwJ.js","clsx-Chpd8_tJ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CdcB7h9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-D4Q3xuF7.js"]}