All financial action endpoints in Aegis require an Idempotency-Key header. This ensures that if a network failure causes your agent to retry a request, the action is only executed once.
Reusing a key from a successful action returns the cached result
Reusing a key from a failed action returns the cached error
Keys are scoped per agent, different agents can use the same UUID without conflict
Never reuse an idempotency key for a different action. If you used key abc
for a transfer to address A, and then reuse abc for a transfer to address B,
you will get the cached result of the first transfer, the second transfer will
NOT execute.
In most languages, you can generate a UUID v4 with a single function call:
JavaScript: crypto.randomUUID()
Python: import uuid; str(uuid.uuid4())
Go: uuid.New().String()
Bash: uuidgen
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Aegis Developer Docs","colors":{"primary":"#00F396","light":"#5DFFC5","dark":"#00C278"},"logo":{"light":"https://mintcdn.com/aegis-349b82bc/kHdTdxuPI1EWmM-c/logo/light.svg?fit=max\u0026auto=format\u0026n=kHdTdxuPI1EWmM-c\u0026q=85\u0026s=d3e499b2717b4193631d8f6ebd510bdf","dark":"https://mintcdn.com/aegis-349b82bc/kHdTdxuPI1EWmM-c/logo/dark.svg?fit=max\u0026auto=format\u0026n=kHdTdxuPI1EWmM-c\u0026q=85\u0026s=2e7debf2c32cd631bad4dc6f92df809b"},"favicon":"https://mintcdn.com/aegis-349b82bc/kHdTdxuPI1EWmM-c/favicon.png?fit=max\u0026auto=format\u0026n=kHdTdxuPI1EWmM-c\u0026q=85\u0026s=d933dee597f642bbcb0d8346bad2dd9f","navbar":{"links":[{"href":"https://aegisintent.xyz","label":"Launch App"},{"href":"https://github.com/Wizbisy/aegis","label":"GitHub"},{"href":"mailto:support@aegisintent.xyz","label":"Support"}]},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"aegis-349b82bc","hasAudioNarration":false,"actualSubdomain":"aegis-349b82bc","customDomains":["docs.aegisintent.xyz"],"gitSource":{"type":"github","owner":"wizbisy","repo":"mintlify-docs","deployBranch":"main","isPrivate":false,"contentDirectory":"","mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a2c50ee4f29c827ab18d3cf","collectionId":"c2ecdbe7-375f-41d3-b641-bc5d001c2d77","schemaVersion":"v3"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a2c50ee4f29c827ab18d3cf:success","clientVersion":"0.0.3964","searchFilterCounts":[{"language":"default","tag":"API Reference","count":33},{"language":"default","tag":"Actions API","count":25},{"language":"default","tag":"Documentation","count":20},{"language":"default","tag":"Agent Actions","count":7},{"language":"default","tag":"Operations","count":6},{"language":"default","tag":"Start Here","count":4},{"language":"default","tag":"Connect API","count":3},{"language":"default","tag":"Marketplace API (x402)","count":3},{"language":"default","tag":"How Aegis Works","count":3},{"language":"default","tag":"Overview","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"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":"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}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"advanced/idempotency","slug":"/advanced/idempotency","pageMetadata":{"title":"Idempotency","description":"Preventing duplicate transactions with idempotency keys","href":"/advanced/idempotency"},"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: \"Preventing duplicate transactions with idempotency keys\"\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`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`All financial action endpoints in Aegis require an `,_jsx(_components.code,{children:`Idempotency-Key`}),` header. This ensures that if a network failure causes your agent to retry a request, the action is only executed once.`]}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How It Works`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Your agent generates a unique UUID v4 before making a financial request`}),`\n`,_jsxs(_components.li,{children:[`The UUID is sent in the `,_jsx(_components.code,{children:`Idempotency-Key`}),` header`]}),`\n`,_jsx(_components.li,{children:`Aegis hashes the key and checks if it has been seen before`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`First time`}),`: The action is executed and the result is cached`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Subsequent requests with the same key`}),`: The cached result is returned without re-executing`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`which-endpoints-require-idempotency`,children:`Which Endpoints Require Idempotency?`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Requires Idempotency Key`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/transfer`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/pay`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/bridge`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/swap`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/yield/deposit`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/yield/withdraw`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/wealth/limitOrder`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/wealth/dca`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/wealth/multiYield`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/wealth/yield/synthra/withdraw`})}),_jsx(_components.td,{children:`✅ Yes`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/actions/estimate/*`})}),_jsx(_components.td,{children:`❌ No (read-only)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET /v1/actions/*`})}),_jsx(_components.td,{children:`❌ No (read-only)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST /v1/marketplace/*`})}),_jsx(_components.td,{children:`❌ No (read-only)`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.aegisintent.xyz/v1/actions/transfer`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer YOUR_TOKEN\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Aegis-Email: agent@example.com\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Aegis-Nonce: 0\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"destination\": \"0x8E8F5064f20D235F899c7553F1BEE77A235F4828\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"amount\": \"10.00\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`key-rules`,children:`Key Rules`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`The key must be a valid `,_jsx(_components.strong,{children:`UUID v4`})]}),`\n`,_jsxs(_components.li,{children:[`Each new action must use a `,_jsx(_components.strong,{children:`unique`}),` key`]}),`\n`,_jsxs(_components.li,{children:[`Reusing a key from a `,_jsx(_components.strong,{children:`successful`}),` action returns the cached result`]}),`\n`,_jsxs(_components.li,{children:[`Reusing a key from a `,_jsx(_components.strong,{children:`failed`}),` action returns the cached error`]}),`\n`,_jsx(_components.li,{children:`Keys are scoped per agent, different agents can use the same UUID without conflict`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Never reuse an idempotency key for a different action. If you used key `,_jsx(_components.code,{children:`abc`}),`\nfor a transfer to address A, and then reuse `,_jsx(_components.code,{children:`abc`}),` for a transfer to address B,\nyou will get the cached result of the first transfer, the second transfer will\nNOT execute.`]})}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`In most languages, you can generate a UUID v4 with a single function call:`}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`JavaScript`}),`: `,_jsx(_components.code,{children:`crypto.randomUUID()`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Python`}),`: `,_jsx(_components.code,{children:`import uuid; str(uuid.uuid4())`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Go`}),`: `,_jsx(_components.code,{children:`uuid.New().String()`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Bash`}),`: `,_jsx(_components.code,{children:`uuidgen`})]}),`\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":"Idempotency","description":"Preventing duplicate transactions with idempotency keys","href":"/advanced/idempotency"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"How It Works","slug":"how-it-works","depth":2,"children":[]},{"title":"Which Endpoints Require Idempotency?","slug":"which-endpoints-require-idempotency","depth":2,"children":[]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Key Rules","slug":"key-rules","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"aegis-349b82bc","siteName":"Aegis Developer Docs","title":"Idempotency - Aegis Developer Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-25T18:01:06.107Z","originalFileLocation":"advanced/idempotency.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=\"Preventing duplicate transactions with idempotency keys\">\u003cmeta data-mint-head name=\"application-name\" content=\"Aegis Developer Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/aegis-349b82bc/ejoGwQ6pbiZLpQur/_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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/aegis-349b82bc/ejoGwQ6pbiZLpQur/_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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Idempotency - Aegis Developer Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Preventing duplicate transactions with idempotency keys\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Aegis Developer Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.aegisintent.xyz/advanced/idempotency\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://aegis-349b82bc.mintlify.app/_mintlify/api/og/v2?division=Operations\u0026amp;title=Idempotency\u0026amp;description=Preventing+duplicate+transactions+with+idempotency+keys\u0026amp;theme=171c57021367847e04eee5ca\u0026amp;signature=ec426333a570debea8499acbc8a9c4039cd1c66a574e136b91cf2132ae9b99f8\">\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=\"Idempotency - Aegis Developer Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Preventing duplicate transactions with idempotency keys\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://aegis-349b82bc.mintlify.app/_mintlify/api/og/v2?division=Operations\u0026amp;title=Idempotency\u0026amp;description=Preventing+duplicate+transactions+with+idempotency+keys\u0026amp;theme=171c57021367847e04eee5ca\u0026amp;signature=ec426333a570debea8499acbc8a9c4039cd1c66a574e136b91cf2132ae9b99f8\">\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/aegis-349b82bc/ejoGwQ6pbiZLpQur/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Aegis Developer Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#00F396\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.aegisintent.xyz/advanced/idempotency\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/advanced/idempotency.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.aegisintent.xyz/#organization\",\"name\":\"Aegis Developer Docs\",\"url\":\"https://docs.aegisintent.xyz\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/aegis-349b82bc/kHdTdxuPI1EWmM-c/logo/light.svg?fit=max\u0026auto=format\u0026n=kHdTdxuPI1EWmM-c\u0026q=85\u0026s=d3e499b2717b4193631d8f6ebd510bdf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.aegisintent.xyz#website\",\"name\":\"Aegis Developer Docs\",\"url\":\"https://docs.aegisintent.xyz\",\"publisher\":{\"@id\":\"https://docs.aegisintent.xyz/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.aegisintent.xyz/advanced/idempotency#webpage\",\"url\":\"https://docs.aegisintent.xyz/advanced/idempotency\",\"name\":\"Idempotency\",\"description\":\"Preventing duplicate transactions with idempotency keys\",\"dateModified\":\"2026-05-25T18:01:06.107Z\",\"isPartOf\":{\"@id\":\"https://docs.aegisintent.xyz#website\"},\"breadcrumb\":{\"@id\":\"https://docs.aegisintent.xyz/advanced/idempotency#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.aegisintent.xyz/advanced/idempotency#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Operations\",\"item\":\"https://docs.aegisintent.xyz/advanced/error-handling\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Idempotency\",\"item\":\"https://docs.aegisintent.xyz/advanced/idempotency\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.aegisintent.xyz/advanced/idempotency#article\",\"headline\":\"Idempotency\",\"name\":\"Idempotency\",\"description\":\"Preventing duplicate transactions with idempotency keys\",\"url\":\"https://docs.aegisintent.xyz/advanced/idempotency\",\"mainEntityOfPage\":{\"@id\":\"https://docs.aegisintent.xyz/advanced/idempotency#webpage\"},\"dateModified\":\"2026-05-25T18:01:06.107Z\",\"publisher\":{\"@id\":\"https://docs.aegisintent.xyz/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.aegisintent.xyz#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Aegis Developer Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Aegis Developer Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Start Here","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Agent Skill File","href":"/agent-skill"},{"title":"Authentication","href":"/authentication"}]},{"group":"How Aegis Works","pages":[{"title":"Architecture Overview","href":"/architecture/overview"},{"title":"Policy Engine","href":"/security/policy-engine"},{"title":"Security","href":"/security/security"}]},{"group":"Agent Actions","pages":[{"title":"Transfers","href":"/features/transfers"},{"title":"x402 Payments","href":"/features/x402-payments"},{"title":"Swap","href":"/features/swap"},{"title":"CrossChain Bridging","href":"/features/bridging"},{"title":"Yield Vaults","href":"/features/yield"},{"title":"Wealth Engine","href":"/features/wealth-engine"},{"title":"Tax Loss Harvesting","href":"/features/tax-harvesting"}]},{"group":"Operations","pages":[{"title":"Error Handling","description":"Understanding Aegis error responses and how to handle them","href":"/advanced/error-handling"},{"title":"Idempotency","href":"/advanced/idempotency"},{"title":"Webhooks","description":"Receiving real time notifications for transaction events","href":"/advanced/webhooks"},{"title":"Skill Discovery","href":"/advanced/skill-discovery"},{"title":"Best Practices","href":"/advanced/best-practices"},{"title":"Glossary","href":"/advanced/glossary"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]}]},"title":"Idempotency - Aegis Developer Docs","buildId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","deploymentId":"dpl_HcHmUS6i3UwswnTHJUEdcTtwfdTQ","dynamics":[],"chunks":[]}