Preparing charges the first half of the operation price, and POST /send-transactions charges the rest. Each paid call answers 402 Payment Required with a PAYMENT-REQUIRED header describing the chain, asset, transfer method, amount, recipient, and timeout. Sign each payment locally and retry with X-PAYMENT.A valid x-api-key is accepted instead of paying, on both steps.See Authentication for the full credential matrix.
Returns prepared unsigned transactions and txId. Sign the transaction locally and submit it to POST /send-transactions as { txId, signedTransactions }.
Preparing does not touch the chain. The response gives you txId, the unsigned transactions, and an x402Requirements quote.
1
Choose who broadcasts
client-signed (the default) — you sign the transaction and Brickken broadcasts it. client-broadcast — you sign and broadcast it yourself, then confirm with txHash. Either way the operation price is split evenly: half at prepare, half at send.
2
Submit it and settle the payment
POST to /send-transactions. The first attempt answers 402 Payment Required; read PAYMENT-REQUIRED, sign the payment locally, and retry with X-PAYMENT. An x-api-key is accepted here instead of paying.
3
Poll until it confirms
Call GET /get-transaction-status with the txId. Your payment settles only after the operation confirms, and is released if it reverts.
See Authentication for the payment handshake and Pricing for the per-operation cost.
Execution mode. Use brickken-relayed to let Brickken's relayer sign, pay gas, and broadcast (omit signerAddress). Use client-signed to sign the prepared transaction yourself.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Brickken Documentation","colors":{"primary":"#4C82df","light":"#4C82df","dark":"#4C82df"},"logo":{"light":"https://mintcdn.com/brickken/UYpLPKOSKNI6CnjX/logo/light.svg?fit=max\u0026auto=format\u0026n=UYpLPKOSKNI6CnjX\u0026q=85\u0026s=192d7d8eaa4997ed5fe5ebf73e4e6aee","dark":"https://mintcdn.com/brickken/UYpLPKOSKNI6CnjX/logo/dark.svg?fit=max\u0026auto=format\u0026n=UYpLPKOSKNI6CnjX\u0026q=85\u0026s=a65d0b5432e2917c02ee6ed31984af6f"},"favicon":"https://mintcdn.com/brickken/UYpLPKOSKNI6CnjX/favicon.svg?fit=max\u0026auto=format\u0026n=UYpLPKOSKNI6CnjX\u0026q=85\u0026s=51afb98395641cf97bb79fb30a48d4b1","navbar":{"links":[{"href":"https://docs.brickken.com/get-started/request-api-key","label":"Get an API key"},{"href":"mailto:support@brickken.com","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://dapp.brickken.com/en/dashboard/home"}},"footer":{"socials":{"x":"https://x.com/brickken","instagram":"https://www.instagram.com/brickken","facebook":"https://www.facebook.com/Brickken","linkedin":"https://www.linkedin.com/company/brickken","youtube":"https://www.youtube.com/@Brickken","discord":"https://discord.com/invite/FBsBVsBqxV"}},"contextual":{"options":[{"title":"Documentation","description":"Open the Brickken documentation home.","icon":"book-open-cover","href":"https://docs.brickken.com"},{"title":"Community","description":"Join the Brickken community on Discord.","icon":"discord","href":"https://discord.com/invite/brickken-official-community-851756929268056086"},{"title":"Blog","description":"Read the Brickken blog.","icon":"newspaper","href":"https://www.brickken.com/blog"}],"display":"toc"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Authentication","icon":"key","href":"/get-started/authentication"},{"anchor":"Request an API key","icon":"envelope","href":"/get-started/request-api-key"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"brickken","hasAudioNarration":false,"actualSubdomain":"brickken","customDomains":["docs.brickken.com"],"gitSource":{"type":"github","owner":"fbrickken","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a9844f4157c701ea07b7cc9","collectionId":"7f2c4ef2-df49-47ac-9084-833a740401c6","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a9844f4157c701ea07b7cc9"},"entitlements":{},"buildId":"6a9844f4157c701ea07b7cc9","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Agentic API","count":36},{"language":"default","tag":"Dapp API","count":34},{"language":"default","tag":"SDK","count":14},{"language":"default","tag":"Prepare Transactions","count":13},{"language":"default","tag":"Read Endpoints","count":13},{"language":"default","tag":"CLI","count":13},{"language":"default","tag":"RAMS Mandates (ERC-8226)","count":11},{"language":"default","tag":"Overview","count":8},{"language":"default","tag":"Get Started","count":8},{"language":"default","tag":"Guides","count":8}]},"assistantConfig":{},"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":"api-reference/endpoint/x402-agent-set-uri","slug":"/api-reference/endpoint/x402-agent-set-uri","pageMetadata":{"title":"Set Agent URI","openapi":"POST /x402/agent/set-uri","description":"Prepare an ERC-8004 agent URI/profile update through x402.","href":"/api-reference/endpoint/x402-agent-set-uri"},"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: \"Prepare an ERC-8004 agent URI/profile update through x402.\"\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={a:`a`,code:`code`,p:`p`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Heading,Step,Steps,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Prepares unsigned transactions for updating an ERC-8004 agent profile URI. This facade maps to `,_jsx(_components.code,{children:`agentSetURI`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsxs(_components.p,{children:[`Preparing charges the first half of the operation price, and `,_jsx(_components.code,{children:`POST /send-transactions`}),` charges the rest. Each paid call answers `,_jsx(_components.code,{children:`402 Payment Required`}),` with a `,_jsx(_components.code,{children:`PAYMENT-REQUIRED`}),` header describing the chain, asset, transfer method, amount, recipient, and timeout. Sign each payment locally and retry with `,_jsx(_components.code,{children:`X-PAYMENT`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`A valid `,_jsx(_components.code,{children:`x-api-key`}),` is accepted instead of paying, on both steps.`]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/get-started/authentication`,children:`Authentication`}),` for the full credential matrix.`]}),`\n`,_jsx(Heading,{level:`2`,id:`key-fields`,children:`Key Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Parameter`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`chainId`})}),_jsx(_components.td,{children:`Yes`}),_jsxs(_components.td,{children:[`Target chain ID. Use `,_jsx(_components.code,{children:`8453`}),` for Base mainnet or `,_jsx(_components.code,{children:`84532`}),` for Base Sepolia. Decimal and hex values are accepted.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`executionMode`})}),_jsx(_components.td,{children:`No`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`client-signed`}),` (default) or `,_jsx(_components.code,{children:`client-broadcast`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`signerAddress`})}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Wallet that signs the prepared transaction.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`agentUuid`}),` or `,_jsx(_components.code,{children:`agentId`})]}),_jsx(_components.td,{children:`Usually`}),_jsx(_components.td,{children:`Agent identifier from registration or the on-chain agent ID.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`name`}),`, `,_jsx(_components.code,{children:`description`}),`, `,_jsx(_components.code,{children:`image`})]}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Profile fields used to build the updated URI metadata.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`services`}),`, `,_jsx(_components.code,{children:`metadata`}),`, `,_jsx(_components.code,{children:`tags`})]}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Additional agent profile metadata.`})]}),_jsxs(_components.tr,{children:[_jsxs(_components.td,{children:[_jsx(_components.code,{children:`documentation`}),`, `,_jsx(_components.code,{children:`sourceCode`}),`, `,_jsx(_components.code,{children:`license`})]}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Public agent documentation and source metadata.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsxs(_components.p,{children:[`Returns prepared unsigned transactions and `,_jsx(_components.code,{children:`txId`}),`. Sign the transaction locally and submit it to `,_jsx(_components.code,{children:`POST /send-transactions`}),` as `,_jsx(_components.code,{children:`{ txId, signedTransactions }`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`next-step`,children:`Next step`}),`\n`,_jsxs(_components.p,{children:[`Preparing does not touch the chain. The response gives you `,_jsx(_components.code,{children:`txId`}),`, the unsigned `,_jsx(_components.code,{children:`transactions`}),`, and an `,_jsx(_components.code,{children:`x402Requirements`}),` quote.`]}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Choose who broadcasts`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`client-signed`}),` (the default) — you sign the transaction and Brickken broadcasts it. `,_jsx(_components.code,{children:`client-broadcast`}),` — you sign and broadcast it yourself, then confirm with `,_jsx(_components.code,{children:`txHash`}),`. Either way the operation price is split evenly: half at prepare, half at send.`]})}),_jsx(Step,{title:`Submit it and settle the payment`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST`}),` to `,_jsx(_components.a,{href:`/api-reference/endpoint/send`,children:_jsx(_components.code,{children:`/send-transactions`})}),`. The first attempt answers `,_jsx(_components.code,{children:`402 Payment Required`}),`; read `,_jsx(_components.code,{children:`PAYMENT-REQUIRED`}),`, sign the payment locally, and retry with `,_jsx(_components.code,{children:`X-PAYMENT`}),`. An `,_jsx(_components.code,{children:`x-api-key`}),` is accepted here instead of paying.`]})}),_jsx(Step,{title:`Poll until it confirms`,children:_jsxs(_components.p,{children:[`Call `,_jsx(_components.a,{href:`/api-reference/endpoint/get-transaction-status`,children:_jsx(_components.code,{children:`GET /get-transaction-status`})}),` with the `,_jsx(_components.code,{children:`txId`}),`. Your payment settles only after the operation confirms, and is released if it reverts.`]})})]}),`\n`,_jsxs(_components.p,{children:[`See `,_jsx(_components.a,{href:`/get-started/authentication`,children:`Authentication`}),` for the payment handshake and `,_jsx(_components.a,{href:`/api-reference/endpoint/agentic-pricing`,children:`Pricing`}),` for the per-operation cost.`]})]})}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":"Set Agent URI","openapi":"POST /x402/agent/set-uri","description":"Prepare an ERC-8004 agent URI/profile update through x402.","href":"/api-reference/endpoint/x402-agent-set-uri"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Key Fields","slug":"key-fields","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Next step","slug":"next-step","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"prepareAgentSetUri","summary":"Prepare ERC-8004 agent URI update","description":"Prepare an ERC-8004 agent URI/profile update through x402.","security":["0515f0b7-e1bf-4920-bf54-6151a2e50e3a","c5042ee6-5451-4b66-b031-c146e2a38abf"],"requestBody":"b61b1ec6-cf10-45ec-8e42-fe86f5faf214","responses":{"200":"70037fd8-2e08-4ac7-b9b9-7c61cfab112e","402":"7d61ca20-7773-4469-88f6-d86614bf213d"},"x-payment-info":{"protocols":[{"x402":{}}],"price":{"mode":"fixed","currency":"USD","amount":"0.01"}},"tags":["x402 Discovery"],"method":"post","type":"path","servers":["c49d4b74-8565-45d3-9488-a1db87f8218a","d17a9f2b-96ea-4c3e-a855-b25208a2a781"],"path":"/x402/agent/set-uri","baseUrlOptions":["https://api.sandbox.brickken.com","https://api.brickken.com"],"title":"Prepare ERC-8004 agent URI update","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"required":["chainId"],"properties":{"chainId":{"type":"string","default":"8453","examples":["8453","84532"],"description":"Target operation chain ID. Use 8453 on Base mainnet or 84532 on Base Sepolia.","isRequired":true,"uniqueKey":"chainId","typeLabel":"string"},"executionMode":{"type":"string","enum":["brickken-relayed","client-signed"],"default":"client-signed","description":"Execution mode. Use brickken-relayed to let Brickken's relayer sign, pay gas, and broadcast (omit signerAddress). Use client-signed to sign the prepared transaction yourself.","uniqueKey":"executionMode","typeLabel":"enum\u003cstring>"},"signerAddress":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$","description":"Wallet that signs the prepared blockchain transaction. Required only in client-signed mode; omit in brickken-relayed mode.","uniqueKey":"signerAddress","typeLabel":"string"},"gasLimit":{"oneOf":[{"type":"string","description":"Optional explicit gas limit.","uniqueKey":"gasLimit.oneOf.0","typeLabel":"string"},{"type":"number","description":"Optional explicit gas limit.","uniqueKey":"gasLimit.oneOf.1","typeLabel":"number"}],"uniqueKey":"gasLimit","typeLabel":"string | number"},"nonce":{"type":"number","description":"Optional explicit nonce when managing nonces manually.","uniqueKey":"nonce","typeLabel":"number"},"privateRpcUrl":{"type":"string","description":"Optional private RPC URL override.","uniqueKey":"privateRpcUrl","typeLabel":"string"},"ownerEmail":{"type":"string","format":"email","description":"Optional owner attribution email.","uniqueKey":"ownerEmail","typeLabel":"string\u003cemail>"},"email":{"type":"string","format":"email","description":"Alias for ownerEmail where supported.","uniqueKey":"email","typeLabel":"string\u003cemail>"},"agentUuid":{"type":"string","description":"Stored tokenized agent UUID returned by agentRegister.","uniqueKey":"agentUuid","typeLabel":"string"},"agentId":{"type":"string","description":"On-chain ERC-8004 agent ID.","uniqueKey":"agentId","typeLabel":"string"},"name":{"type":"string","uniqueKey":"name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"description","typeLabel":"string"},"image":{"type":"string","format":"uri","uniqueKey":"image","typeLabel":"string\u003curi>"},"services":{"type":"array","items":{"type":"object","additionalProperties":true,"required":["name","endpoint"],"properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"services.items.[INDEX].name","typeLabel":"string"},"endpoint":{"type":"string","format":"uri","isRequired":true,"uniqueKey":"services.items.[INDEX].endpoint","typeLabel":"string\u003curi>"},"version":{"type":"string","uniqueKey":"services.items.[INDEX].version","typeLabel":"string"}},"uniqueKey":"services.items.[INDEX]","typeLabel":"object"},"uniqueKey":"services","typeLabel":"object[]"},"metadata":{"type":"object","additionalProperties":true,"uniqueKey":"metadata","typeLabel":"object"},"aiModelName":{"type":"string","uniqueKey":"aiModelName","typeLabel":"string"},"aiModelProvider":{"type":"string","uniqueKey":"aiModelProvider","typeLabel":"string"},"tags":{"type":"array","items":{"type":"string","uniqueKey":"tags.items.[INDEX]","typeLabel":"string"},"uniqueKey":"tags","typeLabel":"string[]"},"version":{"type":"string","uniqueKey":"version","typeLabel":"string"},"documentation":{"type":"string","format":"uri","uniqueKey":"documentation","typeLabel":"string\u003curi>"},"sourceCode":{"type":"string","format":"uri","uniqueKey":"sourceCode","typeLabel":"string\u003curi>"},"license":{"type":"string","uniqueKey":"license","typeLabel":"string"},"agentType":{"type":"string","uniqueKey":"agentType","typeLabel":"string"},"supportedTrust":{"type":"array","items":{"type":"string","uniqueKey":"supportedTrust.items.[INDEX]","typeLabel":"string"},"uniqueKey":"supportedTrust","typeLabel":"string[]"},"x402Support":{"type":"boolean","uniqueKey":"x402Support","typeLabel":"boolean"},"active":{"type":"boolean","uniqueKey":"active","typeLabel":"boolean"},"registrations":{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"registrations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"registrations","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"chainId":"8453","executionMode":"client-signed","signerAddress":"\u003cstring>","gasLimit":"\u003cstring>","nonce":123,"privateRpcUrl":"\u003cstring>","ownerEmail":"jsmith@example.com","email":"jsmith@example.com","agentUuid":"\u003cstring>","agentId":"\u003cstring>","name":"\u003cstring>","description":"\u003cstring>","image":"\u003cstring>","services":[{"name":"\u003cstring>","endpoint":"\u003cstring>","version":"\u003cstring>"}],"metadata":{},"aiModelName":"\u003cstring>","aiModelProvider":"\u003cstring>","tags":["\u003cstring>"],"version":"\u003cstring>","documentation":"\u003cstring>","sourceCode":"\u003cstring>","license":"\u003cstring>","agentType":"\u003cstring>","supportedTrust":["\u003cstring>"],"x402Support":true,"active":true,"registrations":[{}]}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"70037fd8-2e08-4ac7-b9b9-7c61cfab112e":{"description":"Prepared unsigned transaction payload.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"properties":{"transactions":{"oneOf":[{"type":"object","additionalProperties":true,"uniqueKey":"transactions.oneOf.0","typeLabel":"object"},{"type":"array","items":{"type":"object","additionalProperties":true,"uniqueKey":"transactions.oneOf.1.items.[INDEX]","typeLabel":"object"},"uniqueKey":"transactions.oneOf.1","typeLabel":"object[]"}],"uniqueKey":"transactions","typeLabel":"object | object[]"},"txId":{"type":"string","uniqueKey":"txId","typeLabel":"string"},"info":{"type":"object","additionalProperties":true,"uniqueKey":"info","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"transactions":{},"txId":"\u003cstring>","info":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"7d61ca20-7773-4469-88f6-d86614bf213d":{"description":"x402 payment required.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded x402 payment request.","schema":{"type":"string"}}},"content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"0515f0b7-e1bf-4920-bf54-6151a2e50e3a":{"x402Payment":{"type":"apiKey","in":"header","name":"X-Payment","description":"Base64-encoded x402 payment payload. Supported for x402-eligible agentic methods on /x402/... facades, /prepare-transactions, and eligible /send-transactions retries.","scopes":[]}},"c5042ee6-5451-4b66-b031-c146e2a38abf":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[]}}},"servers":{"c49d4b74-8565-45d3-9488-a1db87f8218a":{"url":"https://api.sandbox.brickken.com","description":"Sandbox Environment"},"d17a9f2b-96ea-4c3e-a855-b25208a2a781":{"url":"https://api.brickken.com","description":"Production Environment"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Payment","description":"Base64-encoded x402 payment payload. Supported for x402-eligible agentic methods on /x402/... facades, /prepare-transactions, and eligible /send-transactions retries.","scopes":[]},"schema":{"title":"X-Payment","type":"string","description":"Base64-encoded x402 payment payload. Supported for x402-eligible agentic methods on /x402/... facades, /prepare-transactions, and eligible /send-transactions retries.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"x402Payment","name":"X-Payment"}],"title":"x402Payment"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[]},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"brickken","siteName":"Brickken Documentation","title":"Set Agent URI - Brickken Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-02T15:47:25.082Z","originalFileLocation":"api-reference/endpoint/x402-agent-set-uri.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=\"Prepare an ERC-8004 agent URI/profile update through x402.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Brickken Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/brickken/7zynTh_4u-m-NSjz/_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/brickken/7zynTh_4u-m-NSjz/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/brickken/7zynTh_4u-m-NSjz/_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/brickken/7zynTh_4u-m-NSjz/_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/brickken/7zynTh_4u-m-NSjz/_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/brickken/7zynTh_4u-m-NSjz/_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/brickken/7zynTh_4u-m-NSjz/_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/brickken/7zynTh_4u-m-NSjz/_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/brickken/7zynTh_4u-m-NSjz/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set Agent URI - Brickken Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Prepare an ERC-8004 agent URI/profile update through x402.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Brickken Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://brickken.mintlify.app/_mintlify/api/og/v2?division=Agent+Identity\u0026amp;title=Set+Agent+URI\u0026amp;description=Prepare+an+ERC-8004+agent+URI%2Fprofile+update+through+x402.\u0026amp;theme=2a5dee1e52c4281f2511c0cb\u0026amp;signature=ba933f661e82f703376408a270bbd7e5a5d13fab4162321bd67cbaf668fc4669\">\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=\"Set Agent URI - Brickken Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Prepare an ERC-8004 agent URI/profile update through x402.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://brickken.mintlify.app/_mintlify/api/og/v2?division=Agent+Identity\u0026amp;title=Set+Agent+URI\u0026amp;description=Prepare+an+ERC-8004+agent+URI%2Fprofile+update+through+x402.\u0026amp;theme=2a5dee1e52c4281f2511c0cb\u0026amp;signature=ba933f661e82f703376408a270bbd7e5a5d13fab4162321bd67cbaf668fc4669\">\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/brickken/7zynTh_4u-m-NSjz/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Brickken Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#4C82df\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/x402-agent-set-uri.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.brickken.com/#organization\",\"name\":\"Brickken Documentation\",\"url\":\"https://docs.brickken.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/brickken/UYpLPKOSKNI6CnjX/logo/light.svg?fit=max\u0026auto=format\u0026n=UYpLPKOSKNI6CnjX\u0026q=85\u0026s=192d7d8eaa4997ed5fe5ebf73e4e6aee\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.brickken.com#website\",\"name\":\"Brickken Documentation\",\"url\":\"https://docs.brickken.com\",\"publisher\":{\"@id\":\"https://docs.brickken.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri#webpage\",\"url\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri\",\"name\":\"Set Agent URI\",\"description\":\"Prepare an ERC-8004 agent URI/profile update through x402.\",\"dateModified\":\"2026-09-02T15:47:25.082Z\",\"isPartOf\":{\"@id\":\"https://docs.brickken.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agent Identity\",\"item\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-register\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set Agent URI\",\"item\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri#apireference\",\"headline\":\"Set Agent URI\",\"name\":\"Set Agent URI\",\"description\":\"Prepare an ERC-8004 agent URI/profile update through x402.\",\"url\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri\",\"mainEntityOfPage\":{\"@id\":\"https://docs.brickken.com/api-reference/endpoint/x402-agent-set-uri#webpage\"},\"dateModified\":\"2026-09-02T15:47:25.082Z\",\"publisher\":{\"@id\":\"https://docs.brickken.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.brickken.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Brickken Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Brickken Documentation","nav":{"global":{"anchors":[{"anchor":"Authentication","icon":"key","href":"/get-started/authentication"},{"anchor":"Request an API key","icon":"envelope","href":"/get-started/request-api-key"}]},"tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":""}]},{"tab":"Dapp API","pages":[{"title":"Dapp API","href":"/api-reference/introduction"}]},{"tab":"Agentic API","groups":[{"group":"Overview","pages":[{"title":"Agentic API","href":"/api-reference/endpoint/agentic-methods-x402"},{"title":"Pricing","href":"/api-reference/endpoint/agentic-pricing"}]},{"group":"Agent Identity","pages":[{"title":"Register Agent","openapi":"POST /x402/agent/register","description":"Prepare an ERC-8004 agent registration through x402.","href":"/api-reference/endpoint/x402-agent-register"},{"title":"Set Agent URI","openapi":"POST /x402/agent/set-uri","href":"/api-reference/endpoint/x402-agent-set-uri"},{"title":"Set Agent Metadata","openapi":"POST /x402/agent/set-metadata","description":"Prepare an ERC-8004 agent metadata update through x402.","href":"/api-reference/endpoint/x402-agent-set-metadata"},{"title":"Set Agent Wallet","openapi":"POST /x402/agent/set-wallet","href":"/api-reference/endpoint/x402-agent-set-wallet"},{"title":"Transfer Agent Ownership","openapi":"POST /x402/agent/transfer-ownership","href":"/api-reference/endpoint/x402-agent-transfer-ownership"}]},{"group":"Agent Reads","pages":[{"title":"List Agents","openapi":"GET /get-agents","href":"/api-reference/endpoint/get-agents"},{"title":"Get Agent Information","openapi":"GET /get-agent-info","href":"/api-reference/endpoint/get-agent-info"},{"title":"Get Agent Transactions","openapi":"GET /get-agent-transactions","href":"/api-reference/endpoint/get-agent-transactions"}]},{"group":"Reputation","pages":[{"title":"Give Feedback","openapi":"POST /x402/agent/feedback/give","href":"/api-reference/endpoint/x402-agent-feedback-give"},{"title":"Revoke Feedback","openapi":"POST /x402/agent/feedback/revoke","href":"/api-reference/endpoint/x402-agent-feedback-revoke"},{"title":"Respond to Feedback","openapi":"POST /x402/agent/feedback/respond","href":"/api-reference/endpoint/x402-agent-feedback-respond"}]},{"group":"Agent Token Operations","pages":[{"title":"Create Agent Token","openapi":"POST /x402/token/create","href":"/api-reference/endpoint/x402-token-create"},{"title":"Mint Agent Token","openapi":"POST /x402/token/mint","href":"/api-reference/endpoint/x402-token-mint"},{"title":"Burn Agent Token","openapi":"POST /x402/token/burn","href":"/api-reference/endpoint/x402-token-burn"},{"title":"Transfer Agent Token","openapi":"POST /x402/token/transfer","href":"/api-reference/endpoint/x402-token-transfer"},{"title":"Transfer From Agent Token","openapi":"POST /x402/token/transfer-from","href":"/api-reference/endpoint/x402-token-transfer-from"},{"title":"Approve Agent Token","openapi":"POST /x402/token/approve","href":"/api-reference/endpoint/x402-token-approve"}]},{"group":"RAMS Mandates (ERC-8226)","pages":[{"title":"RAMS Mandates (ERC-8226)","href":"/api-reference/endpoint/rams-overview"},{"title":"Grant RAMS Mandate","openapi":"POST /x402/rams/grant-mandate","href":"/api-reference/endpoint/x402-rams-grant-mandate"},{"title":"Revoke RAMS Mandate","openapi":"POST /x402/rams/revoke-mandate","href":"/api-reference/endpoint/x402-rams-revoke-mandate"},{"title":"Extend RAMS Mandate","openapi":"POST /x402/rams/extend-mandate","href":"/api-reference/endpoint/x402-rams-extend-mandate"},{"title":"Set RAMS Operator","openapi":"POST /x402/rams/set-operator","href":"/api-reference/endpoint/x402-rams-set-operator"},{"title":"Execute RAMS Action","openapi":"POST /x402/rams/execute","href":"/api-reference/endpoint/x402-rams-execute"},{"title":"Set RAMS Executor Action","openapi":"POST /x402/rams/set-executor-action","href":"/api-reference/endpoint/x402-rams-set-executor-action"},{"title":"Freeze RAMS Agent","openapi":"POST /x402/rams/freeze-agent","href":"/api-reference/endpoint/x402-rams-freeze-agent"},{"title":"Unfreeze RAMS Agent","openapi":"POST /x402/rams/unfreeze-agent","href":"/api-reference/endpoint/x402-rams-unfreeze-agent"},{"title":"Grant RAMS Principal Eligibility","openapi":"POST /x402/rams/grant-principal","href":"/api-reference/endpoint/x402-rams-grant-principal"},{"title":"Revoke RAMS Principal Eligibility","openapi":"POST /x402/rams/revoke-principal","href":"/api-reference/endpoint/x402-rams-revoke-principal"}]},{"group":"RAMS Reads \u0026 Typed Data","pages":[{"title":"Get RAMS Mandate","openapi":"GET /rams/mandate","href":"/api-reference/endpoint/rams-get-mandate"},{"title":"Check RAMS Execution","openapi":"GET /rams/can-execute","href":"/api-reference/endpoint/rams-can-execute"},{"title":"Get RAMS Status","openapi":"GET /rams/status","href":"/api-reference/endpoint/rams-status"},{"title":"Check RAMS Compliance","openapi":"GET /rams/compliance-status","href":"/api-reference/endpoint/rams-compliance-status"},{"title":"Get RAMS Executor Action","openapi":"GET /rams/executor-action","href":"/api-reference/endpoint/rams-executor-action"},{"title":"RAMS EIP-712 Typed Data","openapi":"GET /rams/typed-data/grant-mandate","href":"/api-reference/endpoint/rams-typed-data"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/introduction"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/introduction"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/introduction"}]},{"tab":"Skill","pages":[{"title":"Skill","href":"/skill/introduction"}]}]},"title":"Set Agent URI - Brickken Documentation","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-Bbp7I60D.js","utils-C3RIvJha.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DqD-vLt8.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B31Loprg.js","snippetPresets-DKpk-b8t.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Cj65AhOR.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BXtn5gcC.js","shallow-RY2b03Cp.js","getApiPlaygroundDisplay-B0jeiPk3.js","CodeSnippet-CYgBjjwn.js","CodeSnippets-DOngDrYB.js","Page-n7I5XbKb.js","getPastedJson-DRQbJx-T.js","icon-CQiQCicY.js","MethodPill-BKTLdNtu.js","DuplicateIcon-B9jpAdat.js","createIcon-DCddRrXv.js","DynamicMarkdown-a8hUKrw6.js","SectionHeading-eECVV2eH.js","axios-vUo_bRtp.js","Markdown--GF7ZIpf.js","clsx-DZLdJUrt.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-2LoAhjKH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Zwc0ZncM.js"]}