Wallet external IDs let you address a tenant user by an immutable
application-defined wallet identifier. Use this guide when you already store
wallet references in platformId, custom metadata, or an external user table
and want to move those references into Steward’s Privy-style wallet external ID
surface.
Before You Start
You need:
A platform key with platform:user:read, platform:user:write, and
platform:tenant-user:read scopes when scoped platform keys are enabled.
The tenant ID that owns the external wallet namespace.
A source-of-truth mapping of userId or email to the desired
walletExternalId.
Wallet external IDs are write-once per user and tenant. Run the lookup steps
first and resolve conflicts before assigning values.
1. Normalize Source IDs
Choose one stable external ID format and keep it tenant-scoped. Good examples:
Avoid values that encode secrets, emails, phone numbers, or raw provider access
tokens. Steward returns wallet external IDs in API responses and dashboard
surfaces.
2. Check for Existing Assignments
Before assigning a value, ask Steward whether that wallet external ID is already
claimed in the tenant.
Steward returns 409 if the external ID belongs to another user in that tenant
or if this user already has a different wallet external ID in that tenant.
4. Connect or Create Missing Users
If your migration source only has an email and wallet external ID, use
connect-or-create. Steward resolves the wallet external ID first, then connects
an existing email user or creates a new user.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Steward","colors":{"primary":"#D4740A","light":"#E8923A","dark":"#FF5800"},"favicon":"https://mintcdn.com/steward/TUQuqet1E1lDgooF/favicon.svg?fit=max\u0026auto=format\u0026n=TUQuqet1E1lDgooF\u0026q=85\u0026s=ccf6a3bbff2160d7b4b3ee034afaed76","logo":{"light":"https://mintcdn.com/steward/TUQuqet1E1lDgooF/favicon.svg?fit=max\u0026auto=format\u0026n=TUQuqet1E1lDgooF\u0026q=85\u0026s=ccf6a3bbff2160d7b4b3ee034afaed76","dark":"https://mintcdn.com/steward/TUQuqet1E1lDgooF/favicon.svg?fit=max\u0026auto=format\u0026n=TUQuqet1E1lDgooF\u0026q=85\u0026s=ccf6a3bbff2160d7b4b3ee034afaed76","href":"/"},"api":{"openapi":"api-reference/openapi.json"},"appearance":{"default":"dark","strict":null},"background":{"decoration":null,"color":{"light":"#FAFAF8","dark":"#0b0a09"}},"navbar":{"primary":{"type":"button","label":"GitHub","href":"https://github.com/Steward-Fi/steward"}},"footer":{"socials":{"x":"https://x.com/Steward_Fi","github":"https://github.com/Steward-Fi/steward"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"npm","href":"https://www.npmjs.com/package/@stwd/sdk","icon":"npm"},{"anchor":"GitHub","href":"https://github.com/Steward-Fi/steward","icon":"github"},{"anchor":"Twitter","href":"https://x.com/steward_fi","icon":"x-twitter"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"steward","hasAudioNarration":false,"actualSubdomain":"steward","customDomains":["docs.steward.fi"],"gitSource":{"type":"github","owner":"steward-fi","repo":"steward","deployBranch":"develop","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6a8a08fec272390eaa3032e3","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":36},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"SDK","count":12},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Authentication","count":5},{"language":"default","tag":"Get Started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"custom.css","content":":root{--background-dark: #0b0a09;--background-dark-elevated: #141210;--background-dark-surface: #1c1a17}.dark{--tw-prose-body: #9c9788;--tw-prose-headings: #e8e5e0;--tw-prose-links: #D4740A;--tw-prose-code: #e8e5e0}.dark body,.dark .bg-background{background-color:#0b0a09!important}.dark .bg-background-dark{background-color:#0b0a09!important}.dark nav[aria-label=\"Main\"],.dark [data-testid=\"sidebar\"]{background-color:#0b0a09!important;border-color:#1f1d1a!important}.dark .bg-card,.dark [class*=\"card\"]{background-color:#141210!important;border-color:#2a2722!important}.dark pre,.dark code{background-color:#141210!important;border-color:#2a2722!important}.dark [class*=\"border\"]{border-color:#1f1d1a}::selection{background:rgba(212, 116, 10, 0.3);color:#e8e5e0}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}.dark ::-webkit-scrollbar-thumb{background:#2a2722;border-radius:3px}.dark ::-webkit-scrollbar-thumb:hover{background:#6b6560}"}]}
{"page":{"pagePath":"guides/wallet-external-id-migration","slug":"/guides/wallet-external-id-migration","pageMetadata":{"title":"Wallet External ID Migration","description":"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.","href":"/guides/wallet-external-id-migration"},"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: \"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.\"\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`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`wallet-external-id-migration`,children:`Wallet External ID Migration`}),`\n`,_jsxs(_components.p,{children:[`Wallet external IDs let you address a tenant user by an immutable\napplication-defined wallet identifier. Use this guide when you already store\nwallet references in `,_jsx(_components.code,{children:`platformId`}),`, custom metadata, or an external user table\nand want to move those references into Steward’s Privy-style wallet external ID\nsurface.`]}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before You Start`}),`\n`,_jsx(_components.p,{children:`You need:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A platform key with `,_jsx(_components.code,{children:`platform:user:read`}),`, `,_jsx(_components.code,{children:`platform:user:write`}),`, and\n`,_jsx(_components.code,{children:`platform:tenant-user:read`}),` scopes when scoped platform keys are enabled.`]}),`\n`,_jsx(_components.li,{children:`The tenant ID that owns the external wallet namespace.`}),`\n`,_jsxs(_components.li,{children:[`A source-of-truth mapping of `,_jsx(_components.code,{children:`userId`}),` or email to the desired\n`,_jsx(_components.code,{children:`walletExternalId`}),`.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Wallet external IDs are write-once per user and tenant. Run the lookup steps\nfirst and resolve conflicts before assigning values.`})}),`\n`,_jsx(Heading,{level:`2`,id:`1-normalize-source-ids`,children:`1. Normalize Source IDs`}),`\n`,_jsx(_components.p,{children:`Choose one stable external ID format and keep it tenant-scoped. Good examples:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`wallet_01J9X4T8GQ8A7P2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`custody-user-8421`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`legacy-platform-id-ada`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Avoid values that encode secrets, emails, phone numbers, or raw provider access\ntokens. Steward returns wallet external IDs in API responses and dashboard\nsurfaces.`}),`\n`,_jsx(Heading,{level:`2`,id:`2-check-for-existing-assignments`,children:`2. Check for Existing Assignments`}),`\n`,_jsx(_components.p,{children:`Before assigning a value, ask Steward whether that wallet external ID is already\nclaimed in the tenant.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`SDK`,numberOfLines:`8`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` existing`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` steward`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`platformUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`resolveWalletExternalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"app-prod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` walletExternalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legacy-platform-id-ada\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`existing`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Already assigned to\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`existing`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`user`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,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:`7`,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:` http://localhost:3200/platform/users/wallet/external-id`}),_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-Steward-Platform-Key: your-platform-key\"`}),_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:` -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:` \"tenantId\": \"app-prod\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"walletExternalId\": \"legacy-platform-id-ada\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`3-assign-known-users`,children:`3. Assign Known Users`}),`\n`,_jsxs(_components.p,{children:[`If you already know the Steward `,_jsx(_components.code,{children:`userId`}),`, assign the external ID directly.`]}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`SDK`,numberOfLines:`4`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`4`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` steward`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`platformUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`assignWalletExternalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"usr_123\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"app-prod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` walletExternalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legacy-platform-id-ada\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`7`,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:`7`,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:` http://localhost:3200/platform/users/usr_123/wallet/external-id`}),_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-Steward-Platform-Key: your-platform-key\"`}),_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:` -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:` \"tenantId\": \"app-prod\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"walletExternalId\": \"legacy-platform-id-ada\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsxs(_components.p,{children:[`Steward returns `,_jsx(_components.code,{children:`409`}),` if the external ID belongs to another user in that tenant\nor if this user already has a different wallet external ID in that tenant.`]}),`\n`,_jsx(Heading,{level:`2`,id:`4-connect-or-create-missing-users`,children:`4. Connect or Create Missing Users`}),`\n`,_jsx(_components.p,{children:`If your migration source only has an email and wallet external ID, use\nconnect-or-create. Steward resolves the wallet external ID first, then connects\nan existing email user or creates a new user.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` steward`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`platformUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`connectOrCreateByWalletExternalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenantId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"app-prod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` walletExternalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legacy-platform-id-ada\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` email:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ada@example.com\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` emailVerified:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` customMetadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`migratedFrom:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legacy-platform-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`userId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`isNew`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`createdExternalId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`5-verify-tenant-search`,children:`5. Verify Tenant Search`}),`\n`,_jsx(_components.p,{children:`After assignment, tenant user search can filter by wallet external ID.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` steward`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`platformUsers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`search`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"app-prod\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` walletExternalId:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"legacy-platform-id-ada\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`users`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !==`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` throw`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Migration verification failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`conflict-handling`,children:`Conflict Handling`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Conflict`}),_jsx(_components.th,{children:`Meaning`}),_jsx(_components.th,{children:`Resolution`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`walletExternalId already belongs to another user in this tenant`})}),_jsx(_components.td,{children:`The source mapping points to an ID already claimed by a different Steward user.`}),_jsx(_components.td,{children:`Fix the source mapping or merge/transfer the affected user before retrying.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`walletExternalId is immutable for this user in this tenant`})}),_jsx(_components.td,{children:`The target user already has a different external ID.`}),_jsx(_components.td,{children:`Keep the existing ID, or create an explicit user merge/transfer plan.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tenantId is required for walletExternalId lookup`})}),_jsx(_components.td,{children:`External IDs are tenant-scoped.`}),_jsx(_components.td,{children:`Pass the tenant ID on every lookup and assignment.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Tenant not found`})}),_jsx(_components.td,{children:`The target tenant does not exist or the platform key cannot access it.`}),_jsx(_components.td,{children:`Create the tenant or use the correct platform key.`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`cutover-checklist`,children:`Cutover Checklist`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Export or inventory all source wallet references before writing.`}),`\n`,_jsx(_components.li,{children:`Normalize IDs and remove secrets or user PII from the external ID value.`}),`\n`,_jsxs(_components.li,{children:[`Dry-run every ID through `,_jsx(_components.code,{children:`resolveWalletExternalId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Assign known `,_jsx(_components.code,{children:`userId`}),` mappings first.`]}),`\n`,_jsxs(_components.li,{children:[`Use connect-or-create only for records that do not have a Steward `,_jsx(_components.code,{children:`userId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Verify with tenant search by `,_jsx(_components.code,{children:`walletExternalId`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Update application code to look up users by `,_jsx(_components.code,{children:`walletExternalId`}),` instead of\ncustom metadata or `,_jsx(_components.code,{children:`platformId`}),`.`]}),`\n`,_jsx(_components.li,{children:`Keep the old metadata value for one deploy cycle if your application still\nneeds a rollback path.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`related-apis`,children:`Related APIs`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/platform-users`,children:`Platform Users`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/accounts`,children:`Accounts API`})}),`\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":"Wallet External ID Migration","description":"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.","href":"/guides/wallet-external-id-migration"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Wallet External ID Migration","slug":"wallet-external-id-migration","depth":1,"children":[]},{"title":"Before You Start","slug":"before-you-start","depth":2,"children":[]},{"title":"1. Normalize Source IDs","slug":"1-normalize-source-ids","depth":2,"children":[]},{"title":"2. Check for Existing Assignments","slug":"2-check-for-existing-assignments","depth":2,"children":[]},{"title":"3. Assign Known Users","slug":"3-assign-known-users","depth":2,"children":[]},{"title":"4. Connect or Create Missing Users","slug":"4-connect-or-create-missing-users","depth":2,"children":[]},{"title":"5. Verify Tenant Search","slug":"5-verify-tenant-search","depth":2,"children":[]},{"title":"Conflict Handling","slug":"conflict-handling","depth":2,"children":[]},{"title":"Cutover Checklist","slug":"cutover-checklist","depth":2,"children":[]},{"title":"Related APIs","slug":"related-apis","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"steward","siteName":"Steward","title":"Wallet External ID Migration - Steward","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-07-14T20:09:27.715Z","originalFileLocation":"guides/wallet-external-id-migration.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=\"dark\"}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=\"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Steward\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/steward/YT4ty70oXeHWaGo1/_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/steward/YT4ty70oXeHWaGo1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/steward/YT4ty70oXeHWaGo1/_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/steward/YT4ty70oXeHWaGo1/_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/steward/YT4ty70oXeHWaGo1/_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/steward/YT4ty70oXeHWaGo1/_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/steward/YT4ty70oXeHWaGo1/_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/steward/YT4ty70oXeHWaGo1/_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/steward/YT4ty70oXeHWaGo1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Wallet External ID Migration - Steward\">\u003cmeta data-mint-head property=\"og:description\" content=\"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Steward\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.steward.fi/guides/wallet-external-id-migration\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://steward.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Wallet+External+ID+Migration\u0026amp;description=Move+existing+platform+IDs+or+metadata+wallet+references+onto+immutable+wallet+external+IDs.\u0026amp;theme=182ebef6c575f6808c50b2a8\u0026amp;signature=86d37a9c4e8acdaf49272ce0a3652ca3e8cdc3621b5fb6037b480e8835512c18\">\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=\"Wallet External ID Migration - Steward\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://steward.mintlify.site/_mintlify/api/og/v2?division=Guides\u0026amp;title=Wallet+External+ID+Migration\u0026amp;description=Move+existing+platform+IDs+or+metadata+wallet+references+onto+immutable+wallet+external+IDs.\u0026amp;theme=182ebef6c575f6808c50b2a8\u0026amp;signature=86d37a9c4e8acdaf49272ce0a3652ca3e8cdc3621b5fb6037b480e8835512c18\">\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/steward/YT4ty70oXeHWaGo1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Steward\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#D4740A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.steward.fi/guides/wallet-external-id-migration\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/guides/wallet-external-id-migration.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.steward.fi/#organization\",\"name\":\"Steward\",\"url\":\"https://docs.steward.fi\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/steward/TUQuqet1E1lDgooF/favicon.svg?fit=max\u0026auto=format\u0026n=TUQuqet1E1lDgooF\u0026q=85\u0026s=ccf6a3bbff2160d7b4b3ee034afaed76\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.steward.fi#website\",\"name\":\"Steward\",\"url\":\"https://docs.steward.fi\",\"publisher\":{\"@id\":\"https://docs.steward.fi/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.steward.fi/guides/wallet-external-id-migration#webpage\",\"url\":\"https://docs.steward.fi/guides/wallet-external-id-migration\",\"name\":\"Wallet External ID Migration\",\"description\":\"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.\",\"dateModified\":\"2026-07-14T20:09:27.715Z\",\"isPartOf\":{\"@id\":\"https://docs.steward.fi#website\"},\"breadcrumb\":{\"@id\":\"https://docs.steward.fi/guides/wallet-external-id-migration#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.steward.fi/guides/wallet-external-id-migration#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Guides\",\"item\":\"https://docs.steward.fi/guides/agent-setup\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Wallet External ID Migration\",\"item\":\"https://docs.steward.fi/guides/wallet-external-id-migration\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.steward.fi/guides/wallet-external-id-migration#article\",\"headline\":\"Wallet External ID Migration\",\"name\":\"Wallet External ID Migration\",\"description\":\"Move existing platform IDs or metadata wallet references onto immutable wallet external IDs.\",\"url\":\"https://docs.steward.fi/guides/wallet-external-id-migration\",\"mainEntityOfPage\":{\"@id\":\"https://docs.steward.fi/guides/wallet-external-id-migration#webpage\"},\"dateModified\":\"2026-07-14T20:09:27.715Z\",\"publisher\":{\"@id\":\"https://docs.steward.fi/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.steward.fi#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Steward\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Steward\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/guides/wallet-external-id-migration.md","siteName":"Steward","nav":{"global":{"anchors":[{"anchor":"npm","href":"https://www.npmjs.com/package/@stwd/sdk","icon":"npm"},{"anchor":"GitHub","href":"https://github.com/Steward-Fi/steward","icon":"github"},{"anchor":"Twitter","href":"https://x.com/steward_fi","icon":"x-twitter"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"What is Steward?","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Authentication","pages":[{"title":"Authentication Overview","href":"/auth/overview"},{"title":"Passkeys (WebAuthn)","href":"/auth/passkeys"},{"title":"Email Link and Code","href":"/auth/email"},{"title":"OAuth Providers","href":"/auth/oauth"},{"title":"Cross-Tenant Identity","href":"/auth/cross-tenant"}]},{"group":"Concepts","pages":[{"title":"Architecture","href":"/concepts/architecture"},{"title":"Wallet Vault","href":"/concepts/wallet-vault"},{"title":"Secret Vault","href":"/concepts/secret-vault"},{"title":"Proxy Gateway","href":"/concepts/proxy-gateway"},{"title":"Policy Engine","href":"/concepts/policy-engine"},{"title":"Audit Logging","href":"/concepts/audit-logging"}]},{"group":"Guides","pages":[{"title":"Setting Up an Agent","href":"/guides/agent-setup"},{"title":"Configuring Policies","href":"/guides/policies"},{"title":"Bridge Monero on Solana","href":"/guides/monero-on-solana"},{"title":"Managing Secrets","href":"/guides/secrets"},{"title":"Local Mode (PGLite)","description":"Run Steward locally without any external database using the built-in PGLite backend.","href":"/guides/local-mode"},{"title":"Wallet External ID Migration","href":"/guides/wallet-external-id-migration"},{"title":"ElizaOS Integration","description":"Add Steward wallet management to your ElizaOS agent with @stwd/eliza-plugin.","href":"/guides/eliza-plugin"},{"title":"Cloud Deployment Integration","href":"/guides/cloud-deployment"},{"title":"Self-Hosting","href":"/guides/self-hosting"},{"title":"Docker Deployment","href":"/guides/docker"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk/installation"}]}]},"basePath":"","title":"Wallet External ID Migration - Steward","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}