Why the run stopped. Set once the run reaches a terminal state.
Available options:
finished,
budget_reached,
timeout,
cancelled,
invalid_output,
internal_error
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Seltz","colors":{"primary":"#1CC19C","light":"#6BECCD","dark":"#1CC19C"},"logo":{"light":"https://mintcdn.com/seltz-5ef1e800/huLsbhQ2iI21xcNG/logo/light.svg?fit=max\u0026auto=format\u0026n=huLsbhQ2iI21xcNG\u0026q=85\u0026s=e22b03ca4a14b5db3456cb8d720d0571","dark":"https://mintcdn.com/seltz-5ef1e800/huLsbhQ2iI21xcNG/logo/dark.svg?fit=max\u0026auto=format\u0026n=huLsbhQ2iI21xcNG\u0026q=85\u0026s=553e741bced7b0801691e8d736d75459"},"favicon":"https://mintcdn.com/seltz-5ef1e800/huLsbhQ2iI21xcNG/favicon.svg?fit=max\u0026auto=format\u0026n=huLsbhQ2iI21xcNG\u0026q=85\u0026s=293a942921dbe302603a96265f1e3eb0","appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}],"primary":{"type":"button","label":"Console","href":"https://console.seltz.ai/"}},"footer":{"socials":{"github":"https://github.com/seltz-ai","linkedin":"https://www.linkedin.com/company/seltz","x":"https://x.com/seltz_ai"}},"fonts":{"heading":{"family":"Space Grotesk","weight":600},"body":{"family":"Inter","weight":400}},"markdown":{"instructions":["Seltz is the web knowledge layer for AI agents: web search, cited answers, multi-step research, page fetching, and recurring monitors, served from Seltz's own index rather than a live scrape.","Use Seltz when a task needs current, citable, public web content, not when your own knowledge already answers it confidently. Seltz has no access to a caller's private or authenticated data.","Choose which endpoint to use according to the job: Use Answer for one synthesized, cited response; Use Search for the raw documents to reason over yourself; Use Agent for in-depth research needing several rounds of searching and following up, not a single lookup; Use Fetch when you already have a URL and just need its content, not a search; Use Monitor for an ongoing feed of what's new, not a one-off query or near-real-time alerting.","When you use Search, Answer, or Monitor, set a `scope` that matches the query. `web` (beta) is the default and covers general queries. Only these three endpoints take a scope. See https://docs.seltz.ai/data/data-concepts#scopes for the full list of scopes and what each one covers.","For the REST API, send your API key in the `x-api-key` header. The Python and JavaScript SDKs read the `SELTZ_API_KEY` environment variable and handle authentication for you. To use Seltz as MCP tools, connect `https://mcp.seltz.ai/mcp`.","The OpenAPI 3.1 spec for the REST API is at https://docs.seltz.ai/api-reference/openapi.json. Point function-calling or client-generation tooling at that file.","Use `/llms-full.txt` for the full text of every page."]},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Playground","icon":"play","href":"https://console.seltz.ai/playground"},{"anchor":"About","icon":"info","href":"https://seltz.ai/about"},{"anchor":"Book a Call","icon":"calendar","href":"https://cal.com/antonio-mallia-c7uyfc/seltz-intro-call"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"seltz-5ef1e800","hasAudioNarration":false,"actualSubdomain":"seltz-5ef1e800","customDomains":["docs.seltz.ai"],"gitSource":{"type":"github","owner":"seltz-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6aeb666f5102e32bf626169e","clientVersion":"0.0.4111","searchFilterCounts":[{"language":"default","tag":"Documentation","count":76},{"language":"default","tag":"Web Tools","count":36},{"language":"default","tag":"Guides","count":28},{"language":"default","tag":"Changelog","count":24},{"language":"default","tag":"REST API Reference","count":20},{"language":"default","tag":"Monitor","count":17},{"language":"default","tag":"Agent","count":13},{"language":"default","tag":"Integrations","count":11},{"language":"default","tag":"Search","count":11},{"language":"default","tag":"September 2026","count":8}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"[email protected]"}},"basePath":"","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":"llms-txt-v2","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}],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--primary: 28 193 156;--primary-light: 107 236 205;--primary-dark: 28 193 156;--background-light: 242 245 250;--background-dark: 13 17 25;--gray-50: 248 250 255;--gray-100: 242 245 250;--gray-200: 207 220 237;--gray-300: 176 190 210;--gray-400: 108 118 140;--gray-500: 87 98 124;--gray-600: 69 79 102;--gray-700: 45 59 91;--gray-800: 17 21 33;--gray-900: 13 17 25;--gray-950: 10 13 19}h1,h2,h3,h4,h5,h6{letter-spacing:-0.02em;font-weight:600}h1{font-size:2.25rem;line-height:1.2}h2{font-size:1.5rem;line-height:1.3}p,li{line-height:1.7;color:rgb(var(--gray-600))}a{transition:color 0.15s ease}[data-rehype-pretty-code-figure]{margin:1rem 0}[data-rehype-pretty-code-figure] pre{background:#FAFBFC!important;border:1px solid #E5E7EB!important;border-radius:12px!important;padding:1rem!important;overflow-x:auto}[data-rehype-pretty-code-figure] [data-rehype-pretty-code-title]{background:#F3F4F6!important;border:1px solid #E5E7EB!important;border-bottom:none!important;border-radius:12px 12px 0 0!important;padding:0.5rem 1rem!important;font-size:0.8rem!important;font-weight:500!important;color:#6B7280!important;font-family:-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif!important}[data-rehype-pretty-code-figure] [data-rehype-pretty-code-title]+pre{border-top-left-radius:0!important;border-top-right-radius:0!important}[data-rehype-pretty-code-figure] code{font-family:'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, monospace!important;font-size:0.875rem!important;line-height:1.6!important;background:transparent!important}[data-rehype-pretty-code-figure] .line{padding:0 0.25rem}[data-rehype-pretty-code-figure] [style*=\"color:#CF222E\"],[data-rehype-pretty-code-figure] [style*=\"color:#cf222e\"]{color:#BE185D!important}[data-rehype-pretty-code-figure] [style*=\"color:#0A3069\"],[data-rehype-pretty-code-figure] [style*=\"color:#0a3069\"]{color:#0D9488!important}[data-rehype-pretty-code-figure] [style*=\"color:#8250DF\"],[data-rehype-pretty-code-figure] [style*=\"color:#8250df\"]{color:#7C3AED!important}[data-rehype-pretty-code-figure] [style*=\"color:#6E7781\"],[data-rehype-pretty-code-figure] [style*=\"color:#6e7781\"]{color:#9CA3AF!important;font-style:italic}[data-rehype-pretty-code-figure] [style*=\"color:#953800\"],[data-rehype-pretty-code-figure] [style*=\"color:#24292F\"],[data-rehype-pretty-code-figure] [style*=\"color:#24292f\"]{color:#374151!important}[data-rehype-pretty-code-figure] button[aria-label=\"Copy code\"]{background:rgba(28, 193, 156, 0.1)!important;border:1px solid rgba(28, 193, 156, 0.3)!important;border-radius:6px!important;color:#1CC19C!important;transition:all 0.15s ease!important}[data-rehype-pretty-code-figure] button[aria-label=\"Copy code\"]:hover{background:rgba(28, 193, 156, 0.2)!important;border-color:#1CC19C!important}:not(pre)>code{background:#F3F4F6!important;border:1px solid #E5E7EB!important;border-radius:6px!important;padding:0.125rem 0.375rem!important;font-size:0.875em!important;color:#BE185D!important;font-family:'SF Mono', 'Fira Code', Menlo, Monaco, monospace!important}code{font-family:'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Monaco, monospace;font-size:0.875em}.card{border-radius:12px;border:1px solid rgb(var(--gray-200));transition:box-shadow 0.2s ease, border-color 0.2s ease}.card:hover{border-color:rgb(var(--primary));box-shadow:0 4px 12px rgba(28, 193, 156, 0.1)}button,.button{border-radius:8px;font-weight:500;letter-spacing:-0.01em;transition:all 0.15s ease}nav{font-size:0.875rem}html{scroll-behavior:smooth}::selection{background:rgba(28, 193, 156, 0.2);color:rgb(var(--gray-900))}.mdx-content:has(>.not-prose:first-child){margin-top:0!important}"}],"page":{"pagePath":"api-reference/agent/cancel-run","slug":"/api-reference/agent/cancel-run","pageMetadata":{"title":"Cancel run","openapi":"api-reference/openapi.json POST /v1/agent/runs/{id}/cancel","description":"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.","href":"/api-reference/agent/cancel-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: \"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Cancel run","openapi":"api-reference/openapi.json POST /v1/agent/runs/{id}/cancel","description":"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.","href":"/api-reference/agent/cancel-run"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["agent"],"summary":"Cancel an agent run","description":"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.","operationId":"cancelAgentRun","parameters":["be7913d7-c9e2-49f4-955f-c725059af623","79821a9e-2f21-43ac-bf05-17424e87a7c1"],"responses":{"200":"f1b1af37-c5f0-4f7e-8d82-a1c3a8258de5","401":"98504325-cadf-4949-9464-0a00a17a6f8f","404":"6fea5649-fb6b-47b9-9b71-db5ef52371ae","500":"dd6b525e-49ef-4c50-a397-cabdf04bc80f"},"method":"post","type":"path","servers":["963a1dce-961e-4d33-b3ea-c6dd941adc57"],"security":[],"path":"/v1/agent/runs/{id}/cancel","baseUrlOptions":["https://api.seltz.ai"],"title":"Cancel an agent run","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"be7913d7-c9e2-49f4-955f-c725059af623":{"name":"id","in":"path","description":"The run id.","required":true,"schema":{"type":"string","isRequired":true,"description":"The run id.","uniqueKey":"","typeLabel":"string"}},"79821a9e-2f21-43ac-bf05-17424e87a7c1":{"name":"x-api-key","in":"header","description":"Seltz API key: https://console.seltz.ai/api-keys","required":true,"schema":{"type":"string","isRequired":true,"description":"Seltz API key: https://console.seltz.ai/api-keys","uniqueKey":"","typeLabel":"string"}}},"responses":{"f1b1af37-c5f0-4f7e-8d82-a1c3a8258de5":{"description":"The run.","content":{"application/json":{"schema":{"type":"object","description":"An agent run.","properties":{"completed_at":{"oneOf":[{"type":"string","description":"When the run reached a terminal state. Unset until then.","default":null,"uniqueKey":"completed_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the run reached a terminal state. Unset until then.","default":null,"uniqueKey":"completed_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"completed_at","typeLabel":"string | null"},"created_at":{"type":"string","description":"When the run was created, as an ISO 8601 timestamp.","default":"","uniqueKey":"created_at","typeLabel":"string"},"id":{"type":"string","description":"Unique run id.","default":"","uniqueKey":"id","typeLabel":"string"},"object":{"type":"string","description":"Object type, always \"agent.run\".","default":"","uniqueKey":"object","typeLabel":"string"},"output":{"oneOf":[{"type":"null","uniqueKey":"output.oneOf.0","typeLabel":"null"},{"type":"object","description":"The run's output. Its members are unset until the run completes.","properties":{"grounding":{"type":"array","items":{"type":"object","description":"Citations for one field of `output.structured`.","properties":{"citations":{"type":"array","items":{"type":"object","description":"One citation supporting a grounded field.","properties":{"source_id":{"type":"integer","format":"int32","description":"`id` of the entry in `sources` this citation points at.","default":0,"minimum":0,"uniqueKey":"output.oneOf.1.grounding.items.[INDEX].citations.items.[INDEX].source_id","typeLabel":"integer\u003cint32>"},"url":{"type":"string","description":"URL of the cited document.","default":"","uniqueKey":"output.oneOf.1.grounding.items.[INDEX].citations.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"output.oneOf.1.grounding.items.[INDEX].citations.items.[INDEX]","typeLabel":"object"},"description":"Citations supporting this field's value.","default":[],"uniqueKey":"output.oneOf.1.grounding.items.[INDEX].citations","typeLabel":"object[]"},"field":{"type":"string","description":"Dot-notation path into the structured output, e.g. \"companies.0.ceo\".","default":"","uniqueKey":"output.oneOf.1.grounding.items.[INDEX].field","typeLabel":"string"}},"uniqueKey":"output.oneOf.1.grounding.items.[INDEX]","typeLabel":"object"},"description":"Per-field citations for `structured`. Empty when there is no structured\noutput.","default":[],"uniqueKey":"output.oneOf.1.grounding","typeLabel":"object[]"},"sources":{"type":"array","items":{"type":"object","description":"One source a run cited.","properties":{"id":{"type":"integer","format":"int32","description":"Identifier within the run, cited as `\\[id\\]` in `text` and as `source_id`\nin `grounding`.","default":0,"minimum":0,"uniqueKey":"output.oneOf.1.sources.items.[INDEX].id","typeLabel":"integer\u003cint32>"},"url":{"type":"string","description":"URL of the source document.","default":"","uniqueKey":"output.oneOf.1.sources.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"output.oneOf.1.sources.items.[INDEX]","typeLabel":"object"},"description":"The sources cited by `text` or `grounding`, numbered in order of first\ncitation.","default":[],"uniqueKey":"output.oneOf.1.sources","typeLabel":"object[]"},"structured":{"oneOf":[{"type":"object","description":"Structured result shaped by the request's `output_schema`. Unset when the\nrequest had none. Fields that could not be grounded are expected to be\nnull. On gRPC the object is JSON-encoded.","uniqueKey":"output.oneOf.1.structured.oneOf.0","typeLabel":"object"},{"type":"null","description":"Structured result shaped by the request's `output_schema`. Unset when the\nrequest had none. Fields that could not be grounded are expected to be\nnull. On gRPC the object is JSON-encoded.","uniqueKey":"output.oneOf.1.structured.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.oneOf.1.structured","typeLabel":"object | null"},"text":{"oneOf":[{"type":"string","description":"Cited markdown report. Inline `\\[n\\]` markers cite the entry of `sources`\nwhose `id` is `n`.","default":null,"uniqueKey":"output.oneOf.1.text.oneOf.0","typeLabel":"string"},{"type":"null","description":"Cited markdown report. Inline `\\[n\\]` markers cite the entry of `sources`\nwhose `id` is `n`.","default":null,"uniqueKey":"output.oneOf.1.text.oneOf.1","typeLabel":"null"}],"uniqueKey":"output.oneOf.1.text","typeLabel":"string | null"}},"uniqueKey":"output.oneOf.1","typeLabel":"object"}],"uniqueKey":"output","typeLabel":"null | object"},"request":{"oneOf":[{"type":"null","uniqueKey":"request.oneOf.0","typeLabel":"null"},{"type":"object","description":"The request the run was created with.","properties":{"effort":{"oneOf":[{"type":"string","description":"The effort level the run executes at: the request's `effort`, or the\ndefault level when it named none.","default":null,"uniqueKey":"request.oneOf.1.effort.oneOf.0","typeLabel":"string"},{"type":"null","description":"The effort level the run executes at: the request's `effort`, or the\ndefault level when it named none.","default":null,"uniqueKey":"request.oneOf.1.effort.oneOf.1","typeLabel":"null"}],"uniqueKey":"request.oneOf.1.effort","typeLabel":"string | null"},"output_schema":{"oneOf":[{"type":"object","description":"The request's `output_schema`, when one was given. On gRPC the object is\nJSON-encoded.","uniqueKey":"request.oneOf.1.output_schema.oneOf.0","typeLabel":"object"},{"type":"null","description":"The request's `output_schema`, when one was given. On gRPC the object is\nJSON-encoded.","uniqueKey":"request.oneOf.1.output_schema.oneOf.1","typeLabel":"null"}],"uniqueKey":"request.oneOf.1.output_schema","typeLabel":"object | null"},"query":{"type":"string","description":"The natural-language question.","default":"","uniqueKey":"request.oneOf.1.query","typeLabel":"string"}},"uniqueKey":"request.oneOf.1","typeLabel":"object"}],"uniqueKey":"request","typeLabel":"null | object"},"started_at":{"oneOf":[{"type":"string","description":"When the run started. Unset while pending.","default":null,"uniqueKey":"started_at.oneOf.0","typeLabel":"string"},{"type":"null","description":"When the run started. Unset while pending.","default":null,"uniqueKey":"started_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"started_at","typeLabel":"string | null"},"status":{"type":"string","description":"Where the run is in its lifecycle.","default":"pending","enum":["pending","running","completed","failed","cancelled"],"uniqueKey":"status","typeLabel":"enum\u003cstring>"},"stop_reason":{"oneOf":[{"type":"null","uniqueKey":"stop_reason.oneOf.0","typeLabel":"null"},{"type":"string","description":"Why the run stopped. Set once the run reaches a terminal state.","enum":["finished","budget_reached","timeout","cancelled","invalid_output","internal_error"],"uniqueKey":"stop_reason.oneOf.1","typeLabel":"enum\u003cstring>"}],"uniqueKey":"stop_reason","typeLabel":"null | enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"completed_at":null,"created_at":"","id":"","object":"","output":{"grounding":[],"sources":[],"structured":{},"text":null},"request":{"effort":null,"output_schema":{},"query":""},"started_at":null,"status":"pending","stop_reason":"finished"}}},"exampleType":"generated"}},"exampleType":"generated"},"98504325-cadf-4949-9464-0a00a17a6f8f":{"description":"Invalid or missing API key.","content":{"application/json":{"schema":{"type":"object","description":"The response body returned for any error.","required":["error"],"properties":{"error":{"type":"object","description":"The error context.","required":["code","message"],"properties":{"code":{"type":"string","description":"The error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"The error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Identifies this request. Quote it when reporting a problem. Also\nreturned as the `x-request-id` response header.","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"6fea5649-fb6b-47b9-9b71-db5ef52371ae":{"description":"No such run in this org.","content":{"application/json":{"schema":{"type":"object","description":"The response body returned for any error.","required":["error"],"properties":{"error":{"type":"object","description":"The error context.","required":["code","message"],"properties":{"code":{"type":"string","description":"The error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"The error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Identifies this request. Quote it when reporting a problem. Also\nreturned as the `x-request-id` response header.","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"dd6b525e-49ef-4c50-a397-cabdf04bc80f":{"description":"Unexpected server error.","content":{"application/json":{"schema":{"type":"object","description":"The response body returned for any error.","required":["error"],"properties":{"error":{"type":"object","description":"The error context.","required":["code","message"],"properties":{"code":{"type":"string","description":"The error code.","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","description":"The error message.","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"},"request_id":{"type":"string","description":"Identifies this request. Quote it when reporting a problem. Also\nreturned as the `x-request-id` response header.","uniqueKey":"request_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>"},"request_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{},"servers":{"963a1dce-961e-4d33-b3ea-c6dd941adc57":{"url":"https://api.seltz.ai","description":"Seltz API"}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"seltz-5ef1e800","siteName":"Seltz","title":"Cancel run - Seltz","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-09T16:14:36.586Z","originalFileLocation":"api-reference/agent/cancel-run.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Seltz\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_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=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Cancel run - Seltz\">\u003cmeta data-mint-head property=\"og:description\" content=\"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Seltz\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.seltz.ai/api-reference/agent/cancel-run\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://seltz-5ef1e800.mintlify.site/_mintlify/api/og/v2?division=Agent\u0026amp;title=Cancel+run\u0026amp;description=Stop+a+run+that+has+not+finished.+Returns+the+run%2C+unchanged+if+it+had+already+ended%2C+so+cancelling+is+safe+to+retry.\u0026amp;theme=34d4b818f0139e9319c62155\u0026amp;signature=b06230da30a1d0c351ead143259f0df9e15d6e0ebc52ad07436f05e1b6c9b769\">\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 run - Seltz\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://seltz-5ef1e800.mintlify.site/_mintlify/api/og/v2?division=Agent\u0026amp;title=Cancel+run\u0026amp;description=Stop+a+run+that+has+not+finished.+Returns+the+run%2C+unchanged+if+it+had+already+ended%2C+so+cancelling+is+safe+to+retry.\u0026amp;theme=34d4b818f0139e9319c62155\u0026amp;signature=b06230da30a1d0c351ead143259f0df9e15d6e0ebc52ad07436f05e1b6c9b769\">\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=\"/mintlify-assets/_mintlify/favicons/seltz-5ef1e800/UnZxSzgmaFIilPTT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Seltz\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1CC19C\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.seltz.ai/api-reference/agent/cancel-run\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agent/cancel-run.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.seltz.ai/#organization\",\"name\":\"Seltz\",\"url\":\"https://docs.seltz.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/seltz-5ef1e800/huLsbhQ2iI21xcNG/logo/light.svg?fit=max\u0026auto=format\u0026n=huLsbhQ2iI21xcNG\u0026q=85\u0026s=e22b03ca4a14b5db3456cb8d720d0571\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.seltz.ai#website\",\"name\":\"Seltz\",\"url\":\"https://docs.seltz.ai\",\"publisher\":{\"@id\":\"https://docs.seltz.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.seltz.ai/api-reference/agent/cancel-run#webpage\",\"url\":\"https://docs.seltz.ai/api-reference/agent/cancel-run\",\"name\":\"Cancel run\",\"description\":\"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.\",\"dateModified\":\"2026-09-09T16:14:36.586Z\",\"isPartOf\":{\"@id\":\"https://docs.seltz.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.seltz.ai/api-reference/agent/cancel-run#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.seltz.ai/api-reference/agent/cancel-run#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent\",\"item\":\"https://docs.seltz.ai/api-reference/agent/start-run\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Cancel run\",\"item\":\"https://docs.seltz.ai/api-reference/agent/cancel-run\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.seltz.ai/api-reference/agent/cancel-run#apireference\",\"headline\":\"Cancel run\",\"name\":\"Cancel run\",\"description\":\"Stop a run that has not finished. Returns the run, unchanged if it had already ended, so cancelling is safe to retry.\",\"url\":\"https://docs.seltz.ai/api-reference/agent/cancel-run\",\"mainEntityOfPage\":{\"@id\":\"https://docs.seltz.ai/api-reference/agent/cancel-run#webpage\"},\"dateModified\":\"2026-09-09T16:14:36.586Z\",\"publisher\":{\"@id\":\"https://docs.seltz.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.seltz.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Seltz\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Seltz\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/agent/cancel-run.md","siteName":"Seltz","nav":{"global":{"anchors":[{"anchor":"Playground","icon":"play","href":"https://console.seltz.ai/playground"},{"anchor":"About","icon":"info","href":"https://seltz.ai/about"},{"anchor":"Book a Call","icon":"calendar","href":"https://cal.com/antonio-mallia-c7uyfc/seltz-intro-call"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"REST API Reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Errors","pages":[{"title":"Errors","href":"/api-reference/errors"}]},{"group":"Endpoints","pages":[{"title":"Search","openapi":"api-reference/openapi.json POST /v1/search","href":"/api-reference/search"},{"title":"Answer","openapi":"api-reference/openapi.json POST /v1/answer","href":"/api-reference/answer"},{"title":"Fetch","openapi":"api-reference/openapi.json POST /v1/fetch","href":"/api-reference/fetch"}]},{"group":"Agent","pages":[{"title":"Start run","openapi":"api-reference/openapi.json POST /v1/agent/runs","href":"/api-reference/agent/start-run"},{"title":"List runs","openapi":"api-reference/openapi.json GET /v1/agent/runs","href":"/api-reference/agent/list-runs"},{"title":"Get run","openapi":"api-reference/openapi.json GET /v1/agent/runs/{id}","description":"Poll until `status` reaches a terminal state.","href":"/api-reference/agent/get-run"},{"title":"Cancel run","openapi":"api-reference/openapi.json POST /v1/agent/runs/{id}/cancel","href":"/api-reference/agent/cancel-run"}]},{"group":"Monitor","pages":[{"title":"Create monitor","openapi":"api-reference/openapi.json POST /v1/monitors","description":null,"href":"/api-reference/monitor/create-monitor"},{"title":"List monitors","openapi":"api-reference/openapi.json GET /v1/monitors","href":"/api-reference/monitor/list-monitors"},{"title":"Get monitor","openapi":"api-reference/openapi.json GET /v1/monitors/{monitor_id}","href":"/api-reference/monitor/get-monitor"},{"title":"Update monitor","openapi":"api-reference/openapi.json PATCH /v1/monitors/{monitor_id}","href":"/api-reference/monitor/update-monitor"},{"title":"Delete monitor","openapi":"api-reference/openapi.json DELETE /v1/monitors/{monitor_id}","href":"/api-reference/monitor/delete-monitor"},{"title":"List records","openapi":"api-reference/openapi.json GET /v1/monitors/{monitor_id}/records","href":"/api-reference/monitor/list-records"},{"title":"List runs","openapi":"api-reference/openapi.json GET /v1/monitors/{monitor_id}/runs","href":"/api-reference/monitor/list-runs"},{"title":"Get run","openapi":"api-reference/openapi.json GET /v1/monitors/{monitor_id}/runs/{run_id}","href":"/api-reference/monitor/get-run"},{"title":"List run requests","openapi":"api-reference/openapi.json GET /v1/monitors/{monitor_id}/runs/{run_id}/requests","href":"/api-reference/monitor/list-run-requests"},{"title":"List run records","openapi":"api-reference/openapi.json GET /v1/monitors/{monitor_id}/runs/{run_id}/records","href":"/api-reference/monitor/list-run-records"}]},{"group":"Specification","pages":[{"title":"OpenAPI Specification","href":"/api-reference/openapi-spec"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/2026-10-search-properties"}]}]},"basePath":"","title":"Cancel run - Seltz","buildId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","deploymentId":"dpl_DqYu5MPb49gWBBbUGgpHQUmCHY3P","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CybtLBIt.js","utils-BMLj2fvV.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-B6In562Y.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Dr8Mfhp9.js","snippetPresets-2rmQvMVl.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-WMqJYdZj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CJ-MlPHu.js","shallow-dY3TMRCk.js","getApiPlaygroundDisplay-v-1B2bKm.js","CodeSnippet-BDhiTB7U.js","CodeSnippets-D9hnzQcS.js","Page-C4GwDT3_.js","getPastedJson-Th2V45jI.js","icon-BQXch1W9.js","MethodPill-BCqUneP3.js","DuplicateIcon-Q_-bhurZ.js","createIcon-DUjLHRqp.js","DynamicMarkdown-B-f2cqXQ.js","SectionHeading-Da5NsV4v.js","axios-vUo_bRtp.js","Markdown-D13FWkIM.js","clsx-D3Isdib3.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-C-XZBk9h.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink--qIqmmVG.js"]}