Q. How to obtain it? A. Create a named key from the UniFi web app.
API keys for server integrations
Create a named API key in the UniFi web app and store it in a server-side secret manager.
Create a key in the web app
1
Open API Keys
Sign in, open the API page, and select New API Key. The Keys
tab shows the number of active keys allowed by the current plan.
Start from the empty Keys view.
Open the Create API key sheet.
2
Name, create, and copy the key
Enter a clear, unique name and select Create key. Creation uses the signed-in session and
does not require an additional authenticator check. UniFi then opens a Shown once sheet with
the key masked by default. Use Copy key, place the credential in your server-side secret
manager, and select I’ve saved it only after it is safely stored.
Use a name that identifies the integration.
The secret is returned only by this creation request. UniFi stores a one-way hash and the Keys
table retains only the name, creation time, and revoke action. A lost key cannot be revealed;
revoke it and create a replacement.
3
Monitor usage and revoke unused keys
Use Quota to review the active plan, remaining credits, and renewal date. Delete a key when
an integration no longer needs it; deletion takes effect immediately.
Review plan and credit usage from Quota.
Confirm before permanently revoking a key.
This is a sample curl API request for getting USDT balance on Ethereum.
The credential must be authorized for the user_id in user-scoped routes. Never ship the key in
browser JavaScript, a public repository, a mobile binary, logs, or analytics events. Key-creation
responses use Cache-Control: no-store, and the same policy is preserved through the UniFi FEP.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"UniFi Docs","colors":{"primary":"#2563EB","light":"#22D3EE","dark":"#1E3A8A"},"logo":{"light":"https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/logo/unifi-2.0-wordmark-on-light.svg?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=607344fde5dc5e6887dc076e74eef1fb","dark":"https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/logo/unifi-2.0-wordmark-on-dark.svg?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=c39ef48b6e737e0ef84d004519df1272"},"favicon":"https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/logo/unifi-2.0-favicon.svg?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=033c601a5fd3c6eb70347e3e848a5862","navbar":{"links":[{"href":"https://payunifi.com","label":"Site"},{"href":"mailto:unifiiweb3@gmail.com","label":"Support"}],"primary":{"type":"button","label":"App","href":"https://payunifi.com/app"}},"footer":{"socials":{"website":"https://www.payunifi.com","linkedin":"https://linkedin.com/company/unifi-web3","x":"https://x.com/abhi3700","github":"https://github.com/abhi3700"}},"contextual":{"options":["copy","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"test-ccbd1339","hasAudioNarration":false,"actualSubdomain":"test-ccbd1339","customDomains":[],"gitSource":{"type":"github","owner":"abhi3700","repo":"unifi-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b0606b4df17e828d67d42fe","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"\u003c/> API reference","count":33},{"language":"default","tag":"Endpoints","count":30},{"language":"default","tag":"🖥️ Web App","count":12},{"language":"default","tag":"Pay","count":8},{"language":"default","tag":"Preflight","count":8},{"language":"default","tag":"💳 Payment Gateway","count":7},{"language":"default","tag":"Wallet","count":6},{"language":"default","tag":"📘 Guides","count":5},{"language":"default","tag":"🧑🏻💻 CLI","count":4},{"language":"default","tag":"History","count":4}]},"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":[]}
{"page":{"pagePath":"api-reference/authentication","slug":"/api-reference/authentication","pageMetadata":{"title":"Authentication","description":"Use bearer API keys for accessing the endpoints.","icon":"key","href":"/api-reference/authentication"},"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: \"Use bearer API keys for accessing the endpoints.\"\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`,br:`br`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Columns,Frame,Heading,OptimizedImage,Step,Steps}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Protected operations accept a `,_jsx(_components.code,{children:`UNIFI_API_KEY`}),`:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`http`,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:`http`,children:_jsxs(_components.code,{language:`http`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`Authorization`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` Bearer \u003ccredential>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Q. How to obtain it?`}),` `,_jsx(_components.br,{}),`\n`,_jsx(_components.strong,{children:`A.`}),` Create a named key from the UniFi `,_jsx(_components.a,{href:`https://payunifi.com/app/api`,children:`web app`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`api-keys-for-server-integrations`,children:`API keys for server integrations`}),`\n`,_jsx(_components.p,{children:`Create a named API key in the UniFi web app and store it in a server-side secret manager.`}),`\n`,_jsx(Heading,{level:`3`,id:`create-a-key-in-the-web-app`,children:`Create a key in the web app`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Open API Keys`,children:[_jsxs(_components.p,{children:[`Sign in, open the `,_jsx(_components.a,{href:`https://payunifi.com/app/api`,children:`API page`}),`, and select `,_jsx(_components.strong,{children:`New API Key`}),`. The Keys\ntab shows the number of active keys allowed by the current plan.`]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Start from the empty Keys view.`,children:_jsx(OptimizedImage,{className:`mint-w-full mint-h-auto`,src:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_0_mobile.png?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=0d546dc099069a17b02223aca2c5a872`,alt:`UniFi API Keys tab with no API keys and a New API Key action`,\"data-og-width\":`722`,width:`722`,\"data-og-height\":`1292`,height:`1292`,\"data-path\":`images/web-app/api_0_mobile.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_0_mobile.png?w=280\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=f92e8271381b6653423f237f4970cf97 280w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_0_mobile.png?w=560\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=bb6127b39be0d66b9ab8a958520da64b 560w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_0_mobile.png?w=840\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=94eb0a78bc7479ff7ab08a134d89e880 840w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_0_mobile.png?w=1100\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=a5f6475cf902e4a628f7101d215916e6 1100w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_0_mobile.png?w=1650\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=651fb07ef5111af699f38425fdf46001 1650w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_0_mobile.png?w=2500\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=cf16d0ebb6091cb223971fcdc4d3c0d9 2500w`})}),_jsx(Frame,{caption:`Open the Create API key sheet.`,children:_jsx(OptimizedImage,{className:`mint-w-full mint-h-auto`,src:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_1_create_api_key.png?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=f18b37939a33d14b90cdba6cffc0be5c`,alt:`Create API key sheet asking for a unique key name`,\"data-og-width\":`722`,width:`722`,\"data-og-height\":`1290`,height:`1290`,\"data-path\":`images/web-app/api_1_create_api_key.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_1_create_api_key.png?w=280\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=5f14a050c7657c338226cd4e20f2f705 280w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_1_create_api_key.png?w=560\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=4fe3afdef22a668fe301f03db4850359 560w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_1_create_api_key.png?w=840\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=9674a1e7b4ff5f51bbde1db510933440 840w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_1_create_api_key.png?w=1100\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=b77b83add1bb9a9b3e530e963216dd61 1100w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_1_create_api_key.png?w=1650\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=bc7f46acc06b0cbd45473310a70c99c4 1650w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_1_create_api_key.png?w=2500\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=d4cc85ada8a1807b76145eaa82ad659f 2500w`})})]})]}),_jsxs(Step,{title:`Name, create, and copy the key`,children:[_jsxs(_components.p,{children:[`Enter a clear, unique name and select `,_jsx(_components.strong,{children:`Create key`}),`. Creation uses the signed-in session and\ndoes not require an additional authenticator check. UniFi then opens a `,_jsx(_components.strong,{children:`Shown once`}),` sheet with\nthe key masked by default. Use `,_jsx(_components.strong,{children:`Copy key`}),`, place the credential in your server-side secret\nmanager, and select `,_jsx(_components.strong,{children:`I’ve saved it`}),` only after it is safely stored.`]}),_jsx(Frame,{caption:`Use a name that identifies the integration.`,children:_jsx(OptimizedImage,{className:`mint-w-full mint-h-auto`,src:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_2_set_name.png?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=fac5a3891c86718b613b7c4aafc2aca3`,alt:`Create API key sheet with marketplace entered as the key name`,\"data-og-width\":`726`,width:`726`,\"data-og-height\":`1294`,height:`1294`,\"data-path\":`images/web-app/api_2_set_name.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_2_set_name.png?w=280\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=17e9699f255d08b8c7185c391451c18f 280w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_2_set_name.png?w=560\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=fba2263efb3e4c0a9f54ad8cd4614f92 560w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_2_set_name.png?w=840\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=52ba8fcdc0e934b4911d8c72f8deee43 840w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_2_set_name.png?w=1100\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=f010f4a3099d697b6f162dadfeb7b052 1100w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_2_set_name.png?w=1650\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=34c67643e1a4ab3522a101e60615659f 1650w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_2_set_name.png?w=2500\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=180fcb4265df31b8f1ad09666d88440d 2500w`})}),_jsx(_components.p,{children:`The secret is returned only by this creation request. UniFi stores a one-way hash and the Keys\ntable retains only the name, creation time, and revoke action. A lost key cannot be revealed;\nrevoke it and create a replacement.`})]}),_jsxs(Step,{title:`Monitor usage and revoke unused keys`,children:[_jsxs(_components.p,{children:[`Use `,_jsx(_components.strong,{children:`Quota`}),` to review the active plan, remaining credits, and renewal date. Delete a key when\nan integration no longer needs it; deletion takes effect immediately.`]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Review plan and credit usage from Quota.`,children:_jsx(OptimizedImage,{className:`mint-w-full mint-h-auto`,src:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_4_quota.png?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=3a3f1fad3b70878c4a6e286b50dde4f8`,alt:`UniFi API Quota tab showing the active Free plan, remaining credits, and next renewal`,\"data-og-width\":`726`,width:`726`,\"data-og-height\":`1292`,height:`1292`,\"data-path\":`images/web-app/api_4_quota.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_4_quota.png?w=280\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=3a65bd570ae676dfa6ff2a7781a7b8ab 280w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_4_quota.png?w=560\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=0c96633c3967fb4b5ca357108f6c17b6 560w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_4_quota.png?w=840\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=a0fb53c75441120b7ae35c7509d80690 840w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_4_quota.png?w=1100\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=7c2c9759defbb1e74f54c25b4e9a4fc7 1100w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_4_quota.png?w=1650\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=b7d5212d1b48bc9a4f1f45d45815c5bf 1650w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_4_quota.png?w=2500\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=01a854a69a98a436a35426b727eb66a8 2500w`})}),_jsx(Frame,{caption:`Confirm before permanently revoking a key.`,children:_jsx(OptimizedImage,{className:`mint-w-full mint-h-auto`,src:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_5_del.png?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=275eb5cec5be094b6774083a46f552a9`,alt:`Delete API key confirmation warning that applications using the key will lose access`,\"data-og-width\":`720`,width:`720`,\"data-og-height\":`1292`,height:`1292`,\"data-path\":`images/web-app/api_5_del.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_5_del.png?w=280\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=792ac4353fb3081ac4db392d2b0cae17 280w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_5_del.png?w=560\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=bc4e2bc636535fbb15e0f4c96e17ac9b 560w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_5_del.png?w=840\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=7cae1794434abfca8437f7cf8cdcca74 840w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_5_del.png?w=1100\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=3a63b3ce462e4d67012d30fe21b33b35 1100w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_5_del.png?w=1650\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=be7ca765aa70a037ff18557d6f80a35b 1650w, https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/images/web-app/api_5_del.png?w=2500\u0026fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=91010c2a2a178d6ff58a10955b435136 2500w`})})]})]})]}),`\n`,_jsx(_components.p,{children:`This is a sample curl API request for getting USDT balance on Ethereum.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,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:`3`,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:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` GET`}),_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:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.payunifi.com/v1/wallet/onchain/balance/USER_ID/Ethereum/USDT`}),_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`$UNIFI_API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The credential must be authorized for the `,_jsx(_components.code,{children:`user_id`}),` in user-scoped routes. Never ship the key in\nbrowser JavaScript, a public repository, a mobile binary, logs, or analytics events. Key-creation\nresponses use `,_jsx(_components.code,{children:`Cache-Control: no-store`}),`, and the same policy is preserved through the UniFi FEP.`]})]})}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":"Authentication","description":"Use bearer API keys for accessing the endpoints.","icon":"key","href":"/api-reference/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API keys for server integrations","slug":"api-keys-for-server-integrations","depth":2,"children":[{"title":"Create a key in the web app","slug":"create-a-key-in-the-web-app","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-h-auto {\n height: auto\n}\n.mint-w-full {\n width: 100%\n}","subdomain":"test-ccbd1339","siteName":"UniFi Docs","title":"Authentication - UniFi Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-01T14:47:48.946Z","originalFileLocation":"api-reference/authentication.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=\"Use bearer API keys for accessing the endpoints.\">\u003cmeta data-mint-head name=\"application-name\" content=\"UniFi Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/test-ccbd1339/GatrLGyGpwJ23Tfe/_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/test-ccbd1339/GatrLGyGpwJ23Tfe/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/test-ccbd1339/GatrLGyGpwJ23Tfe/_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/test-ccbd1339/GatrLGyGpwJ23Tfe/_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/test-ccbd1339/GatrLGyGpwJ23Tfe/_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/test-ccbd1339/GatrLGyGpwJ23Tfe/_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/test-ccbd1339/GatrLGyGpwJ23Tfe/_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/test-ccbd1339/GatrLGyGpwJ23Tfe/_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/test-ccbd1339/GatrLGyGpwJ23Tfe/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Authentication - UniFi Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Use bearer API keys for accessing the endpoints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"UniFi Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://test-ccbd1339.mintlify.app/api-reference/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://test-ccbd1339.mintlify.site/_mintlify/api/og/v2?division=API+documentation\u0026amp;title=Authentication\u0026amp;description=Use+bearer+API+keys+for+accessing+the+endpoints.\u0026amp;theme=4c576f47ab9ee6c1bdac3234\u0026amp;signature=5fb696b90617fc7a94249edfa1bd9c7de6728d3f1784b40f1ca19d2b603449a2\">\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=\"Authentication - UniFi Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Use bearer API keys for accessing the endpoints.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://test-ccbd1339.mintlify.site/_mintlify/api/og/v2?division=API+documentation\u0026amp;title=Authentication\u0026amp;description=Use+bearer+API+keys+for+accessing+the+endpoints.\u0026amp;theme=4c576f47ab9ee6c1bdac3234\u0026amp;signature=5fb696b90617fc7a94249edfa1bd9c7de6728d3f1784b40f1ca19d2b603449a2\">\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/test-ccbd1339/GatrLGyGpwJ23Tfe/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"UniFi Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2563EB\">\u003clink data-mint-head rel=\"canonical\" href=\"https://test-ccbd1339.mintlify.app/api-reference/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://test-ccbd1339.mintlify.app/#organization\",\"name\":\"UniFi Docs\",\"url\":\"https://test-ccbd1339.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/test-ccbd1339/a7-7soYiK1kc9L9N/logo/unifi-2.0-wordmark-on-light.svg?fit=max\u0026auto=format\u0026n=a7-7soYiK1kc9L9N\u0026q=85\u0026s=607344fde5dc5e6887dc076e74eef1fb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://test-ccbd1339.mintlify.app#website\",\"name\":\"UniFi Docs\",\"url\":\"https://test-ccbd1339.mintlify.app\",\"publisher\":{\"@id\":\"https://test-ccbd1339.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication#webpage\",\"url\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication\",\"name\":\"Authentication\",\"description\":\"Use bearer API keys for accessing the endpoints.\",\"dateModified\":\"2026-11-01T14:47:48.946Z\",\"isPartOf\":{\"@id\":\"https://test-ccbd1339.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API documentation\",\"item\":\"https://test-ccbd1339.mintlify.app/api-reference/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication\",\"item\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication#article\",\"headline\":\"Authentication\",\"name\":\"Authentication\",\"description\":\"Use bearer API keys for accessing the endpoints.\",\"url\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://test-ccbd1339.mintlify.app/api-reference/authentication#webpage\"},\"dateModified\":\"2026-11-01T14:47:48.946Z\",\"publisher\":{\"@id\":\"https://test-ccbd1339.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://test-ccbd1339.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"UniFi Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"UniFi Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/authentication.md","siteName":"UniFi Docs","nav":{"global":null,"tabs":[{"tab":"📘 Guides","pages":[{"title":"📘 Guides","href":"/mission"}]},{"tab":"🖥️ Web App","pages":[{"title":"🖥️ Web App","href":"/webapp/overview"}]},{"tab":"🤖 Falcon Agent","pages":[{"title":"🤖 Falcon Agent","href":"/falcon/overview"}]},{"tab":"💳 Payment Gateway","pages":[{"title":"💳 Payment Gateway","href":"/payment-gateway/overview"}]},{"tab":"🧑🏻💻 CLI","pages":[{"title":"🧑🏻💻 CLI","href":"/cli/overview"}]},{"tab":"\u003c/> API reference","groups":[{"group":"API documentation","pages":[{"title":"Introduction","description":"Use the production UniFi API for deposit, wallet, payments, history \u0026 more.","icon":"code","href":"/api-reference/introduction"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"},{"title":"Errors and payment state","description":"Handle HTTP failures, retries, receipt status, and idempotency safely.","icon":"triangle-exclamation","href":"/api-reference/errors"}]},{"group":"Endpoints","pages":[{"group":"Health","pages":[{"title":"Check API process availability","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/healthz","href":"/api-reference/endpoints/health/check-api-process-availability"},{"title":"Check API dependencies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/health","href":"/api-reference/endpoints/health/check-api-dependencies"}]},{"group":"Deposit","pages":[{"title":"Get a wallet address for a chain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/address/{user_id}/{chain}","href":"/api-reference/endpoints/deposit/get-a-wallet-address-for-a-chain"},{"title":"Get wallet addresses by protocol","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/addresses/{user_id}","href":"/api-reference/endpoints/deposit/get-wallet-addresses-by-protocol"}]},{"group":"Wallet","pages":[{"title":"Get a stablecoin balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/onchain/balance/{user_id}/{chain}/{coin}","href":"/api-reference/endpoints/wallet/get-a-stablecoin-balance"},{"title":"Get all stablecoin balances on a chain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/onchain/balances/{user_id}/{chain}","href":"/api-reference/endpoints/wallet/get-all-stablecoin-balances-on-a-chain"},{"title":"Get the complete wallet balance view","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/balances/{user_id}","href":"/api-reference/endpoints/wallet/get-the-complete-wallet-balance-view"},{"title":"Get latest and finalized wallet balances for one pair","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/balance/by_pair/{user_id}/{chain}/{coin}","href":"/api-reference/endpoints/wallet/get-latest-and-finalized-wallet-balances-for-one-pair"},{"title":"Get wallet balances by chain","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/balances/by_chain/{user_id}/{chain}","href":"/api-reference/endpoints/wallet/get-wallet-balances-by-chain"},{"title":"Get wallet balances by stablecoin","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/wallet/balances/by_coin/{user_id}/{coin}","href":"/api-reference/endpoints/wallet/get-wallet-balances-by-stablecoin"}]},{"group":"Preflight","pages":[{"title":"Get spendable payment balance","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/onchain/net_balance/{user_id}/{chain}/{coin}","href":"/api-reference/endpoints/preflight/get-spendable-payment-balance"},{"title":"Estimate the payment fee","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/onchain/est_fee/{user_id}/{chain}/{coin}","href":"/api-reference/endpoints/preflight/estimate-the-payment-fee"},{"title":"Get payment balance and fee","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/onchain/balance_est_fee/{user_id}/{chain}/{coin}","href":"/api-reference/endpoints/preflight/get-payment-balance-and-fee"},{"title":"Get custodial bulk-payment inputs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/balance_est_fee_bulkpay/{user_id}/{chain}","href":"/api-reference/endpoints/preflight/get-custodial-bulk-payment-inputs"},{"title":"Prepare a self-custodial payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/balance_est_fee_ncw/{user_id}/{is_fee_incl}","href":"/api-reference/endpoints/preflight/prepare-a-self-custodial-payment"},{"title":"Prepare self-custodial bulk payments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/balance_est_fee_ncw_bulkpay/{user_id}/{is_fee_incl}","href":"/api-reference/endpoints/preflight/prepare-self-custodial-bulk-payments"},{"title":"Get self-custodial fee inputs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/onchain/ncw/prefetch_balance_est_fee_params/{user_id}/{chain}/{coin}","href":"/api-reference/endpoints/preflight/get-self-custodial-fee-inputs"},{"title":"Get self-custodial bulk fee inputs","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/ncw/prefetch_balance_est_fee_params_bulkpay/{user_id}/{chain}","href":"/api-reference/endpoints/preflight/get-self-custodial-bulk-fee-inputs"}]},{"group":"Pay","pages":[{"title":"Create a stablecoin payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/{user_id}/{is_fee_incl}","href":"/api-reference/endpoints/pay/create-a-stablecoin-payment"},{"title":"Create managed-wallet bulk payments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/cw_bulkpay/{user_id}/{is_fee_incl}","href":"/api-reference/endpoints/pay/create-managed-wallet-bulk-payments"},{"title":"Create a managed-wallet merchant payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/merchant/{user_id}/{is_fee_incl}/{session_id}","href":"/api-reference/endpoints/pay/create-a-managed-wallet-merchant-payment"},{"title":"Create a self-custodial payment permit","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/ncw/create_domain_permit/{user_id}","href":"/api-reference/endpoints/pay/create-a-self-custodial-payment-permit"},{"title":"Create a self-custodial bulk-payment permit","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/ncw/create_domain_permit_bulkpay/{user_id}","href":"/api-reference/endpoints/pay/create-a-self-custodial-bulk-payment-permit"},{"title":"Create a self-custodial payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/ncw/{user_id}","href":"/api-reference/endpoints/pay/create-a-self-custodial-payment"},{"title":"Create self-custodial bulk payments","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/ncw_bulkpay/{user_id}","href":"/api-reference/endpoints/pay/create-self-custodial-bulk-payments"},{"title":"Create a self-custodial merchant payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /v1/payment/onchain/ncw/merchant/{user_id}/{session_id}","href":"/api-reference/endpoints/pay/create-a-self-custodial-merchant-payment"}]},{"group":"History","pages":[{"title":"Get a merchant payment session status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/merchant/session/{session_id}","href":"/api-reference/endpoints/history/get-a-merchant-payment-session-status"},{"title":"Get a payment receipt","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/onchain/receipt/{receipt_id}","href":"/api-reference/endpoints/history/get-a-payment-receipt"},{"title":"Get a bulk payment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/onchain/bulkpay/{bulk_pay_id}","href":"/api-reference/endpoints/history/get-a-bulk-payment"},{"title":"Get payment history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /v1/payment/onchain/receipts/{user_id}/{sort_by_latest}/{from_start}","href":"/api-reference/endpoints/history/get-payment-history"}]}]}]}]},"basePath":"","title":"Authentication - UniFi Docs","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-C7yGukkT.js","DynamicMarkdown-XsrWkK-b.js","zoom-image-lightbox-C5J5Gw3i.js","lightbox-handle-r17bVUz3.js"]}