Call read_spending_policy first in a new session to understand the active mandate.
task_id is required at the MCP schema layer; omitting it fails at SDK validation (Invalid arguments for tool governed_fetch) before the mandate gate is evaluated
If the upstream response is not 402, AXON returns the provider response without payment
On 402, AXON evaluates deterministic + risk stages, then either settles or escalates/denies
APPROVAL_REQUIRED is a structured error. Read approval_request_id from the error details, then use check_approval_status or wait_for_approval_resolution
When retrying with approval_token, keep the same URL, method, and body. Approval matching is bound to that original request context
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"AXON","colors":{"primary":"#00cc82","light":"#00ffa3","dark":"#00cc82"},"logo":{"light":"https://mintcdn.com/axon-8480709b/tKAx9a5x4ya04K6w/logo/light.svg?fit=max\u0026auto=format\u0026n=tKAx9a5x4ya04K6w\u0026q=85\u0026s=3504839d71d408ab1ec7a74331616485","dark":"https://mintcdn.com/axon-8480709b/tKAx9a5x4ya04K6w/logo/dark.svg?fit=max\u0026auto=format\u0026n=tKAx9a5x4ya04K6w\u0026q=85\u0026s=11e6333a3121d952cbafed9f85b3a76d"},"favicon":"https://mintcdn.com/axon-8480709b/D8YCSWQYlWZ0AV_P/favicon.png?fit=max\u0026auto=format\u0026n=D8YCSWQYlWZ0AV_P\u0026q=85\u0026s=7ad532ec4a8be58cbe9bd7ce5f721dc8","navbar":{"links":[{"href":"https://axon402.com","label":"Dashboard"}]},"footer":{"socials":{}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","href":"https://axon402.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"axon-8480709b","hasAudioNarration":false,"actualSubdomain":"axon-8480709b","customDomains":["docs.axon402.com"],"gitSource":{"type":"github","owner":"alex-reysa","repo":"axon","deployBranch":"main","contentDirectory":"mintlify-docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a6681eb46a9de7af621dba3","collectionId":"5cc9bf66-a6fc-43af-8d1f-aeac4c036311","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a6681eb46a9de7af621dba3"},"entitlements":{},"buildId":"6a6681eb46a9de7af621dba3:success","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":37},{"language":"default","tag":"Documentation","count":22},{"language":"default","tag":"Organizations","count":6},{"language":"default","tag":"Treasury","count":6},{"language":"default","tag":"Operations","count":6},{"language":"default","tag":"MCP Tools","count":5},{"language":"default","tag":"Providers","count":5},{"language":"default","tag":"Core Concepts","count":5},{"language":"default","tag":"Integrations","count":5},{"language":"default","tag":"Core Spend","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/mcp-governed-fetch","slug":"/api-reference/mcp-governed-fetch","pageMetadata":{"title":"governed_fetch","description":"High-level x402 HTTP client — the primary MCP tool","href":"/api-reference/mcp-governed-fetch"},"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: \"High-level x402 HTTP client — the primary MCP tool\"\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`,li:`li`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`The preferred tool for making x402-capable HTTP requests. Handles the full pipeline: mandate check, payment signing, retry, and receipt.`}),`\n`,_jsx(Heading,{level:`2`,id:`input`,children:`Input`}),`\n`,_jsx(Heading,{level:`3`,id:`required`,children:`Required`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`url`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Target URL`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`intent`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Business reason for the request`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`task_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Stable task identifier — binds the spend to a unit of work for forensics + mandate enforcement`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`optional`,children:`Optional`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Type`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`method`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`GET`}),`, `,_jsx(_components.code,{children:`POST`}),`, `,_jsx(_components.code,{children:`PUT`}),`, `,_jsx(_components.code,{children:`DELETE`}),` (default `,_jsx(_components.code,{children:`GET`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`headers`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`object`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Custom headers`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`body`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`any JSON value`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Request body`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`timeout_ms`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Request timeout`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`idempotency_key`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Deduplication key`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`agent_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Agent identifier`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`employee_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Employee identifier`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`justification`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Human-readable reason`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`expected_output_type`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[_jsx(_components.code,{children:`table`}),`, `,_jsx(_components.code,{children:`pdf`}),`, `,_jsx(_components.code,{children:`json`}),`, `,_jsx(_components.code,{children:`citations`}),`, `,_jsx(_components.code,{children:`other`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`cost_expectation_min_usdc`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Expected min cost`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`cost_expectation_max_usdc`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`number`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Expected max cost`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`evidence_hashes`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`array`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Supporting evidence`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`approval_token`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsxs(_components.td,{style:{textAlign:`left`},children:[`Approval token returned by `,_jsx(_components.code,{children:`check_approval_status`}),`, `,_jsx(_components.code,{children:`wait_for_approval_resolution`}),`, or `,_jsx(_components.code,{children:`consume_approval_token`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`wallet_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`string`}),_jsx(_components.td,{style:{textAlign:`left`},children:`Specific wallet to use`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`output`,children:`Output`}),`\n`,_jsx(_components.p,{children:`Returned only on successful completion. Approval, policy, and provider failures are surfaced as structured MCP errors, not as this success payload.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Field`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`decision`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Decision ID, outcome, reason code/text, risk score`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`receipt_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Present when payment settles`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`transaction_id`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Present when a payment transaction exists`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`payment`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Required/settled status, amount, asset, network, tx_hash`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`budget`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Current budget snapshot`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`settlement-status-values`,children:`Settlement Status Values`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{style:{textAlign:`left`},children:`Status`}),_jsx(_components.th,{style:{textAlign:`left`},children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`no_payment`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Upstream did not return 402`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`authorized`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Payment signed and submitted`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`pending_receipt`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Awaiting settlement proof`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{style:{textAlign:`left`},children:_jsx(_components.code,{children:`failed`})}),_jsx(_components.td,{style:{textAlign:`left`},children:`Payment or settlement failed`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`important-behavior`,children:`Important Behavior`}),`\n`,_jsxs(Warning,{children:[`Call `,_jsx(_components.code,{children:`read_spending_policy`}),` first in a new session to understand the active mandate.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`task_id`}),` is required at the MCP schema layer; omitting it fails at SDK validation (`,_jsx(_components.code,{children:`Invalid arguments for tool governed_fetch`}),`) before the mandate gate is evaluated`]}),`\n`,_jsxs(_components.li,{children:[`If the upstream response is not `,_jsx(_components.code,{children:`402`}),`, AXON returns the provider response without payment`]}),`\n`,_jsxs(_components.li,{children:[`On `,_jsx(_components.code,{children:`402`}),`, AXON evaluates deterministic + risk stages, then either settles or escalates/denies`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`APPROVAL_REQUIRED`}),` is a structured error. Read `,_jsx(_components.code,{children:`approval_request_id`}),` from the error details, then use `,_jsx(_components.code,{children:`check_approval_status`}),` or `,_jsx(_components.code,{children:`wait_for_approval_resolution`})]}),`\n`,_jsxs(_components.li,{children:[`When retrying with `,_jsx(_components.code,{children:`approval_token`}),`, keep the same URL, method, and body. Approval matching is bound to that original request context`]}),`\n`]})]})}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":"governed_fetch","description":"High-level x402 HTTP client — the primary MCP tool","href":"/api-reference/mcp-governed-fetch"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Input","slug":"input","depth":2,"children":[{"title":"Required","slug":"required","depth":3,"children":[]},{"title":"Optional","slug":"optional","depth":3,"children":[]}]},{"title":"Output","slug":"output","depth":2,"children":[{"title":"Settlement Status Values","slug":"settlement-status-values","depth":3,"children":[]}]},{"title":"Important Behavior","slug":"important-behavior","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"axon-8480709b","siteName":"AXON","title":"governed_fetch - AXON","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-03T11:24:47.731Z","originalFileLocation":"api-reference/mcp-governed-fetch.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=\"High-level x402 HTTP client — the primary MCP tool\">\u003cmeta data-mint-head name=\"application-name\" content=\"AXON\">\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/axon-8480709b/doW6vlhtvzlF8oaH/_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/axon-8480709b/doW6vlhtvzlF8oaH/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/axon-8480709b/doW6vlhtvzlF8oaH/_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/axon-8480709b/doW6vlhtvzlF8oaH/_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/axon-8480709b/doW6vlhtvzlF8oaH/_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/axon-8480709b/doW6vlhtvzlF8oaH/_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/axon-8480709b/doW6vlhtvzlF8oaH/_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/axon-8480709b/doW6vlhtvzlF8oaH/_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/axon-8480709b/doW6vlhtvzlF8oaH/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"governed_fetch - AXON\">\u003cmeta data-mint-head property=\"og:description\" content=\"High-level x402 HTTP client — the primary MCP tool\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AXON\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://axon-8480709b.mintlify.app/_mintlify/api/og/v2?division=MCP+Tools\u0026amp;title=governed_fetch\u0026amp;description=High-level+x402+HTTP+client+%E2%80%94+the+primary+MCP+tool\u0026amp;theme=ffd8e7c71bd698a364e3373a\u0026amp;signature=567f697066ff44279a043d6b4a331198b9cb8bc93b0897c4319e0f2172779ce5\">\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=\"governed_fetch - AXON\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"High-level x402 HTTP client — the primary MCP tool\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://axon-8480709b.mintlify.app/_mintlify/api/og/v2?division=MCP+Tools\u0026amp;title=governed_fetch\u0026amp;description=High-level+x402+HTTP+client+%E2%80%94+the+primary+MCP+tool\u0026amp;theme=ffd8e7c71bd698a364e3373a\u0026amp;signature=567f697066ff44279a043d6b4a331198b9cb8bc93b0897c4319e0f2172779ce5\">\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/axon-8480709b/doW6vlhtvzlF8oaH/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AXON\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00cc82\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/mcp-governed-fetch.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.axon402.com/#organization\",\"name\":\"AXON\",\"url\":\"https://docs.axon402.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/axon-8480709b/tKAx9a5x4ya04K6w/logo/light.svg?fit=max\u0026auto=format\u0026n=tKAx9a5x4ya04K6w\u0026q=85\u0026s=3504839d71d408ab1ec7a74331616485\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.axon402.com/docs#website\",\"name\":\"AXON\",\"url\":\"https://docs.axon402.com/docs\",\"publisher\":{\"@id\":\"https://docs.axon402.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch#webpage\",\"url\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch\",\"name\":\"governed_fetch\",\"description\":\"High-level x402 HTTP client — the primary MCP tool\",\"dateModified\":\"2026-05-03T11:24:47.731Z\",\"isPartOf\":{\"@id\":\"https://docs.axon402.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"MCP Tools\",\"item\":\"https://docs.axon402.com/docs/api-reference/mcp-tools\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"governed_fetch\",\"item\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch#article\",\"headline\":\"governed_fetch\",\"name\":\"governed_fetch\",\"description\":\"High-level x402 HTTP client — the primary MCP tool\",\"url\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch\",\"mainEntityOfPage\":{\"@id\":\"https://docs.axon402.com/docs/api-reference/mcp-governed-fetch#webpage\"},\"dateModified\":\"2026-05-03T11:24:47.731Z\",\"publisher\":{\"@id\":\"https://docs.axon402.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.axon402.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AXON\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"AXON","nav":{"global":{"anchors":[{"anchor":"Dashboard","href":"https://axon402.com"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Overview","href":"/api-reference/overview"}]},{"group":"Onboarding","pages":[{"title":"CLI Init","api":"POST /v1/cli/init","href":"/api-reference/cli-init"}]},{"group":"Core Spend","pages":[{"title":"Governed Fetch (SSAR)","api":"POST /v1/ssar/fetch","href":"/api-reference/core-spend/ssar-fetch"},{"title":"Budget Status","api":"GET /v1/budget/status","href":"/api-reference/core-spend/budget-status"},{"title":"Explain Decision","api":"GET /v1/decisions/{decision_id}/explain","href":"/api-reference/core-spend/explain-decision"},{"title":"Get Receipt","api":"GET /v1/receipts/{receipt_id}","href":"/api-reference/core-spend/get-receipt"}]},{"group":"Approvals","pages":[{"title":"Approval Status","api":"GET /v1/approvals/{approval_id}/status","href":"/api-reference/approvals/get-approval-status"},{"title":"Consume Approval","api":"POST /v1/approvals/{approval_id}/consume","href":"/api-reference/approvals/consume-approval"},{"title":"Expire Approvals","api":"POST /v1/approvals/expire","href":"/api-reference/approvals/expire-approvals"}]},{"group":"Organizations","pages":[{"title":"Bootstrap Organization","api":"POST /v1/orgs/bootstrap","href":"/api-reference/organizations/bootstrap-org"},{"title":"Auth Context","api":"GET /v1/me","href":"/api-reference/organizations/me"},{"title":"Create API Key","api":"POST /v1/api-keys","href":"/api-reference/organizations/create-api-key"},{"title":"Org Readiness","api":"GET /v1/orgs/{organization_id}/readiness","href":"/api-reference/organizations/get-readiness"},{"title":"Org Workforce","api":"GET /v1/orgs/{organization_id}/workforce","href":"/api-reference/organizations/get-workforce"},{"title":"Create Agent","api":"POST /v1/agents","href":"/api-reference/organizations/create-agent"}]},{"group":"Treasury","pages":[{"title":"Vault Overview","api":"GET /v1/orgs/{organization_id}/vault","href":"/api-reference/treasury/get-vault"},{"title":"Allocate from Vault","api":"POST /v1/orgs/{organization_id}/transfers/fund","href":"/api-reference/treasury/fund-pocket"},{"title":"Sweep to Vault","api":"POST /v1/orgs/{organization_id}/transfers/sweep","href":"/api-reference/treasury/sweep-pocket"},{"title":"Reconcile Treasury","api":"POST /v1/orgs/{organization_id}/reconcile","href":"/api-reference/treasury/reconcile"},{"title":"Wallet Details","api":"GET /v1/wallets/{wallet_id}","href":"/api-reference/treasury/get-wallet"},{"title":"Allocate to Wallet","api":"POST /v1/wallets/{wallet_id}/fund","href":"/api-reference/treasury/fund-wallet"}]},{"group":"Providers","pages":[{"title":"List Providers","api":"GET /v1/providers","href":"/api-reference/providers/list-providers"},{"title":"Update Provider","api":"PUT /v1/providers/{provider_id}","href":"/api-reference/providers/update-provider"},{"title":"Seed Providers","api":"POST /v1/providers/seed","href":"/api-reference/providers/seed-providers"},{"title":"Sync Providers","api":"POST /v1/providers/sync","href":"/api-reference/providers/sync-providers"},{"title":"Health Check Providers","api":"POST /v1/providers/health-check","href":"/api-reference/providers/health-check-providers"}]},{"group":"Discovery","pages":[{"title":"List Discovery Resources","api":"GET /v1/discovery/resources","href":"/api-reference/discovery/list-resources"}]},{"group":"Workers \u0026 Observability","pages":[{"title":"Dispatch Webhooks","api":"POST /v1/webhooks/dispatch","href":"/api-reference/workers/dispatch-webhooks"},{"title":"Confirm Transactions","api":"POST /v1/transactions/confirm","href":"/api-reference/workers/confirm-transactions"},{"title":"Metrics","api":"GET /v1/metrics","href":"/api-reference/workers/get-metrics"}]},{"group":"MCP Tools","pages":[{"title":"MCP Tools Overview","description":"Runtime-plane MCP tools for AI agents","href":"/api-reference/mcp-tools"},{"title":"governed_fetch","href":"/api-reference/mcp-governed-fetch"},{"title":"Approval Tools","description":"MCP tools for checking and consuming approvals","href":"/api-reference/mcp-approvals"},{"title":"Treasury \u0026 Governance Tools","href":"/api-reference/mcp-treasury"},{"title":"Forensic Tools","href":"/api-reference/mcp-forensics"}]},{"group":"Reference","pages":[{"title":"Error Codes","href":"/api-reference/error-codes"},{"title":"Environment Variables","href":"/api-reference/environment-variables"}]}]}]},"title":"governed_fetch - AXON","buildId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","deploymentId":"dpl_GvhK4qVXq51DpfYJLCtPpYNN4YHN","dynamics":[],"chunks":[]}