For wallets, widgets, and frontend UIs. Access is tied to your domain rather than an API key.
Request access here.Once set up, requests include your affiliate ID:
For production backend integrations that need guaranteed rate limits. Comes with 20 rps by default; enterprise customers get 100 rps.
Request access here.
All responses include a server-req-id header. Capture and include it when reporting issues to the Socket team — it lets us trace the exact request through the system.
Some frontend / widget integrations exchange a Cloudflare Turnstile challenge for a short-lived JWT:
POST /v3/auth/token
Body fields: turnstileToken, plus either affiliate or apiKey (as configured for your integrator).Most backend integrations use the dedicated endpoint with x-api-key + affiliate and do not need this flow. See the Socket Widget docs if you are embedding the hosted UI.
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Socket Docs","description":"The network that routes money movement across chains, stablecoins, payment methods, and liquidity venues.","colors":{"primary":"#008A45","light":"#008A45","dark":"#00FF78"},"logo":{"light":"https://mintcdn.com/socket-724d51c9/zG6n_xkDmCZSmokh/images/socket-wordmark-black.svg?fit=max\u0026auto=format\u0026n=zG6n_xkDmCZSmokh\u0026q=85\u0026s=bceac738d2505963d630b99474bc8f86","dark":"https://mintcdn.com/socket-724d51c9/zG6n_xkDmCZSmokh/images/socket-wordmark-white.svg?fit=max\u0026auto=format\u0026n=zG6n_xkDmCZSmokh\u0026q=85\u0026s=5aa5342081f274c074086211115074e3"},"favicon":"https://mintcdn.com/socket-724d51c9/zG6n_xkDmCZSmokh/images/favicon.png?fit=max\u0026auto=format\u0026n=zG6n_xkDmCZSmokh\u0026q=85\u0026s=d488a1e34d22eeb472caa601349fb33c","navbar":{"links":[{"href":"/about/partnerships","label":"Talk to us"},{"href":"/integrate/introduction","label":"Start integrating"},{"icon":"github","href":"https://github.com/SocketDotTech","label":""},{"icon":"discord","href":"https://discord.gg/DrvfYq6fvc","label":""},{"icon":"twitter","href":"https://x.com/SOCKETProtocol","label":""}]},"seo":{"metatags":{"og:title":"Socket Docs","og:description":"The network that routes money movement across chains, stablecoins, payment methods, and liquidity venues.","og:type":"website","og:site_name":"Socket Docs","twitter:card":"summary","twitter:title":"Socket Docs","twitter:description":"The network that routes money movement across chains, stablecoins, payment methods, and liquidity venues."},"indexing":"all"},"errors":{"404":{"redirect":true,"title":"Page not found","description":"This page does not exist."}},"contextual":{"options":["copy","chatgpt","claude","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"socket-724d51c9","hasAudioNarration":false,"actualSubdomain":"socket-724d51c9","customDomains":["docs.socket.tech"],"gitSource":{"type":"github","owner":"socketdottech","repo":"socket-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6accb4f41ea505514a7819f7","collectionId":"1a44629d-adc6-42ff-99b9-2448bee7d8e4","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6accb4f41ea505514a7819f7"},"entitlements":{},"buildId":"6accb4f41ea505514a7819f7","clientVersion":"0.0.4043","searchFilterCounts":[{"language":"default","tag":"About Socket","count":21},{"language":"default","tag":"Integrate Socket","count":9},{"language":"default","tag":"FEATURES","count":7},{"language":"default","tag":"API Reference","count":7},{"language":"default","tag":"RESOURCES","count":4},{"language":"default","tag":"INTRODUCTION","count":4},{"language":"default","tag":"USE CASES","count":4},{"language":"default","tag":"Supported Chains \u0026 Token List","count":4},{"language":"default","tag":"GETTING STARTED","count":3},{"language":"default","tag":"INTEGRATION GUIDES","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":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":"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":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"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":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"styles.css","content":":root{--brand-green:#008A45;--brand-green-rgb:0, 138, 69;--brand-green-hover:#009E52;--brand-neon-green:#00FF78;--brand-neon-green-rgb:0, 255, 120;--brand-black:#000000;--brand-bg:#000000;--brand-bg-soft:#061B0F;--brand-cream:#F5F2EA;--brand-muted:rgba(245, 242, 234, 0.62);--brand-border:rgba(245, 242, 234, 0.12);--brand-red:#F22276;--brand-blue:#549BF2;--brand-purple:#320D7F;--brand-font:Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", system-ui, sans-serif;--brand-mono:\"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace}body{font-family:var(--brand-font)}.dark{--brand-green:var(--brand-neon-green);--brand-green-rgb:var(--brand-neon-green-rgb);--brand-green-hover:#1BFF88}code,kbd,pre{font-family:var(--brand-mono)}.home-shell{color:var(--brand-black)}.dark .home-shell{color:var(--brand-cream)}.home-hero{border:1px solid rgba(0,255,120,.24);background:var(--brand-bg);color:#fff}.home-wordmark{width:clamp(180px,32vw,320px);height:auto;display:block}.home-wordmark-lockup{display:inline-flex;align-items:center;justify-content:center;width:max-content;background:var(--brand-neon-green);padding:.55rem .72rem .62rem}.brand-kit-preview .zoom-image-trigger,.brand-kit-preview-plain .zoom-image-trigger,.home-wordmark-lockup .zoom-image-trigger{cursor:default!important}.brand-kit-preview button[aria-label^=\"Expand image\"],.brand-kit-preview-plain button[aria-label^=\"Expand image\"],.home-wordmark-lockup button[aria-label^=\"Expand image\"]{display:none!important}.brand-kit-preview{display:flex;align-items:center;justify-content:center;min-height:132px;padding:1.4rem 1.1rem;border-radius:10px;margin-bottom:.85rem}.brand-kit-preview img{width:min(100%,260px);height:auto;display:block}.brand-kit-preview-light{background:#e9e9e9}.brand-kit-preview-dark{background:#121212}.brand-kit-preview-plain{background:0 0;min-height:unset;padding:.35rem 0 .75rem}.brand-kit-avatar{width:112px;height:112px}.brand-kit-swatches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin:1rem 0 1.75rem}.brand-kit-swatch{min-height:88px;border-radius:10px;display:flex;align-items:flex-end;padding:.75rem}.brand-kit-swatch-label{font-family:var(--brand-mono);font-size:.78rem;font-weight:600;color:#fff}.brand-kit-swatch-label-dark{color:#121212}@media (max-width:640px){.brand-kit-swatches{grid-template-columns:repeat(2,minmax(0,1fr))}}.home-title{margin:.4em 0;max-width:560px;font-size:clamp(2rem,4.4vw,4rem);line-height:1;letter-spacing:0;color:#fff}.home-summary{max-width:620px;margin:18px 0 0;font-size:1.05rem;line-height:1.55;color:rgba(255,255,255,.72)}.dark .home-summary{color:var(--brand-muted)}.home-eyebrow{color:rgba(255,255,255,.62);font-family:var(--brand-mono);font-size:.78rem;font-weight:600;letter-spacing:0}.dark .home-eyebrow{color:rgba(245,242,234,.58)}.home-primary-cta,.home-secondary-cta{transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease,box-shadow 150ms ease}.home-primary-cta{background-color:var(--brand-neon-green);border-color:var(--brand-neon-green);color:var(--brand-black);box-shadow:0 2px 18px 0 rgba(var(--brand-neon-green-rgb),.22)}.home-primary-cta:hover{background-color:#1bff88;border-color:#1bff88}.home-secondary-cta{border-color:rgba(255,255,255,.18);color:#fff}.dark .home-secondary-cta{border-color:var(--brand-border);color:var(--brand-cream)}.home-secondary-cta:hover{background-color:var(--brand-green);border-color:var(--brand-green);color:var(--brand-black)}.home-section-title{color:var(--brand-black);letter-spacing:0}.dark .home-section-title{color:var(--brand-cream)}.home-feature-spotlight{border:1px solid rgba(var(--brand-green-rgb),.24);background:linear-gradient(135deg,rgba(var(--brand-green-rgb),.08),transparent 55%),#fff;box-shadow:0 8px 24px rgba(10,17,13,.05)}.home-feature-eyebrow{color:var(--brand-green);font-family:var(--brand-mono);font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.home-feature-highlight,.home-feature-title{color:var(--brand-black)}.home-feature-highlight{display:inline-block;margin:0 .2em 0 .35em;padding:.1em .42em .12em;background:var(--brand-neon-green);font-size:1.02rem;font-weight:800;letter-spacing:.03em;line-height:1.1;border-radius:5px;vertical-align:baseline}.home-feature-summary{color:rgba(17,24,39,.68)}.home-feature-link{border-color:rgba(var(--brand-green-rgb),.28);color:var(--brand-black);transition:background-color 150ms ease,border-color 150ms ease,color 150ms ease}.dark .home-feature-link:hover,.home-feature-link:hover{background-color:rgba(var(--brand-green-rgb),.08);border-color:rgba(var(--brand-green-rgb),.42)}.home-feature-link-primary{background-color:var(--brand-green);border-color:var(--brand-green);color:#fff}.home-feature-link-primary:hover{background-color:var(--brand-green-hover);border-color:var(--brand-green-hover);color:#fff}.dark .home-feature-spotlight{border-color:rgba(var(--brand-green-rgb),.28);background:linear-gradient(135deg,rgba(var(--brand-green-rgb),.1),transparent 55%),#07100b;box-shadow:0 8px 24px rgba(0,0,0,.22)}.dark .home-feature-title{color:var(--brand-cream)}.dark .home-feature-summary{color:var(--brand-muted)}.dark .home-feature-link{border-color:var(--brand-border);color:var(--brand-cream)}.dark .home-feature-link:hover{background-color:rgba(var(--brand-green-rgb),.12)}.dark .home-feature-link-primary{background-color:var(--brand-green);border-color:var(--brand-green);color:var(--brand-black)}.dark .home-feature-link-primary:hover{background-color:var(--brand-green-hover);border-color:var(--brand-green-hover);color:var(--brand-black)}.home-divider{background-color:rgba(15,15,14,.1)}.dark .home-divider{background-color:var(--brand-border)}.socket-stack-diagram{margin:1.25rem 0 2rem;display:grid;gap:0}.socket-stack-layer{position:relative;display:grid;grid-template-columns:auto 1fr;gap:1rem;align-items:center;width:min(100%,780px);min-height:116px;margin:0 auto;padding:1.15rem 1.25rem;border:1px solid rgba(10,17,13,.12);border-radius:8px;background:linear-gradient(135deg,rgba(var(--brand-green-rgb),.08),transparent 42%),#fff;color:inherit;text-decoration:none;box-shadow:0 16px 34px rgba(10,17,13,.08);transform:translateY(0);transition:transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease}.socket-stack-layer+.socket-stack-layer{margin-top:-.45rem}.socket-stack-layer:nth-child(1){z-index:4;width:min(100%,780px)}.socket-stack-layer:nth-child(2){z-index:3;width:min(calc(100% - 32px),748px)}.socket-stack-layer:nth-child(3){z-index:2;width:min(calc(100% - 64px),716px)}.socket-stack-layer:nth-child(4){z-index:1;width:min(calc(100% - 96px),684px)}.socket-stack-layer:focus-visible,.socket-stack-layer:hover{z-index:5;transform:translateY(-5px);border-color:rgba(var(--brand-green-rgb),.48);box-shadow:0 18px 42px rgba(10,17,13,.14),0 0 0 1px rgba(var(--brand-green-rgb),.16)}.socket-stack-icon{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border-radius:8px;background:rgba(var(--brand-green-rgb),.12);color:var(--brand-green)}.socket-stack-copy{display:grid;gap:.35rem}.socket-stack-title{color:#111827;font-size:1.02rem;font-weight:700;line-height:1.25}.socket-stack-description{color:rgba(17,24,39,.7);font-size:.98rem;line-height:1.5}.dark .socket-stack-layer{border-color:var(--brand-border);background:linear-gradient(135deg,rgba(var(--brand-green-rgb),.1),transparent 45%),#07100b;box-shadow:0 18px 42px rgba(0,0,0,.32)}.dark .socket-stack-layer:focus-visible,.dark .socket-stack-layer:hover{border-color:rgba(var(--brand-green-rgb),.5);box-shadow:0 20px 46px rgba(0,0,0,.44),0 0 0 1px rgba(var(--brand-green-rgb),.16)}.dark .socket-stack-title{color:var(--brand-cream)}.dark .socket-stack-description{color:var(--brand-muted)}@media (max-width:640px){.socket-stack-layer,.socket-stack-layer:nth-child(1),.socket-stack-layer:nth-child(2),.socket-stack-layer:nth-child(3),.socket-stack-layer:nth-child(4){width:100%}.socket-stack-layer{grid-template-columns:1fr;min-height:unset}}@media (prefers-reduced-motion:reduce){.socket-stack-layer{transition:none}.socket-stack-layer:focus-visible,.socket-stack-layer:hover{transform:none}}li.navbar-link>a[href=\"/integrate/introduction\"]{background-color:var(--brand-neon-green)!important;color:var(--brand-black)!important;font-weight:600!important;border-radius:8px!important}"}],"page":{"pagePath":"integrate/get-api-access","slug":"/integrate/get-api-access","pageMetadata":{"title":"Get API Access","description":"Choose the right Socket API endpoint for your integration.","href":"/integrate/get-api-access"},"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: \"Choose the right Socket API endpoint for your integration.\"\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`,hr:`hr`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Socket Swap V3 is available on three endpoints depending on your use case:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Auth required`}),_jsx(_components.th,{children:`Rate limit`}),_jsx(_components.th,{children:`Use case`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`https://public-backend.socket.tech`})}),_jsx(_components.td,{children:`None`}),_jsx(_components.td,{children:`Shared`}),_jsx(_components.td,{children:`Testing and prototyping`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`https://backend.socket.tech`})}),_jsx(_components.td,{children:`Domain whitelist`}),_jsx(_components.td,{children:`Standard`}),_jsx(_components.td,{children:`Wallets, widgets, other UIs`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`https://dedicated-backend.socket.tech`})}),_jsx(_components.td,{children:`API key`}),_jsx(_components.td,{children:`20 rps (100 rps enterprise)`}),_jsx(_components.td,{children:`Production backends`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`public-endpoint`,children:`Public endpoint`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://public-backend.socket.tech`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`No authentication required. Use this to try the API and test your integration before going to production.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,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:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://public-backend.socket.tech/v3/swap/quote?userOps=tx\u0026originChainId=42161\u0026...\"`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`backend-endpoint-domain-whitelisted`,children:`Backend endpoint (domain whitelisted)`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://backend.socket.tech`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`For wallets, widgets, and frontend UIs. Access is tied to your domain rather than an API key.\n`,_jsx(_components.a,{href:`https://forms.gle/4rE4mEXbnKeVdCeq7`,children:`Request access here`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Once set up, requests include your `,_jsx(_components.code,{children:`affiliate`}),` ID:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,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:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://backend.socket.tech/v3/swap/quote?userOps=tx\u0026originChainId=42161\u0026...\"`}),_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:` \"affiliate: YOUR_AFFILIATE_ID\"`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`dedicated-endpoint-api-key`,children:`Dedicated endpoint (API key)`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,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:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`https://dedicated-backend.socket.tech`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`For production backend integrations that need guaranteed rate limits. Comes with 20 rps by default; enterprise customers get 100 rps.\n`,_jsx(_components.a,{href:`https://forms.gle/4rE4mEXbnKeVdCeq7`,children:`Request access here`}),`.`]}),`\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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://dedicated-backend.socket.tech/v3/swap/quote?userOps=tx\u0026originChainId=42161\u0026...\"`}),_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:` \"x-api-key: YOUR_API_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:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"affiliate: YOUR_AFFILIATE_ID\"`})]}),`\n`]})})}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Keep your API key server-side. Never expose it in frontend code or client bundles.`})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`server-request-id`,children:`Server Request ID`}),`\n`,_jsxs(_components.p,{children:[`All responses include a `,_jsx(_components.code,{children:`server-req-id`}),` header. Capture and include it when reporting issues to the Socket team — it lets us trace the exact request through the system.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`javascript`,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:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`2`,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:` response`}),_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:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`url`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_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\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` serverReqId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`get`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"server-req-id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`frontend-auth-token-optional`,children:`Frontend auth token (optional)`}),`\n`,_jsx(_components.p,{children:`Some frontend / widget integrations exchange a Cloudflare Turnstile challenge for a short-lived JWT:`}),`\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:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`POST`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` /v3/auth/token`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Body fields: `,_jsx(_components.code,{children:`turnstileToken`}),`, plus either `,_jsx(_components.code,{children:`affiliate`}),` or `,_jsx(_components.code,{children:`apiKey`}),` (as configured for your integrator).`]}),`\n`,_jsxs(_components.p,{children:[`Most backend integrations use the dedicated endpoint with `,_jsx(_components.code,{children:`x-api-key`}),` + `,_jsx(_components.code,{children:`affiliate`}),` and do not need this flow. See the `,_jsx(_components.a,{href:`/integrate/socket-widget`,children:`Socket Widget`}),` docs if you are embedding the hosted UI.`]})]})}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":"Get API Access","description":"Choose the right Socket API endpoint for your integration.","href":"/integrate/get-api-access"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Public endpoint","slug":"public-endpoint","depth":2,"children":[]},{"title":"Backend endpoint (domain whitelisted)","slug":"backend-endpoint-domain-whitelisted","depth":2,"children":[]},{"title":"Dedicated endpoint (API key)","slug":"dedicated-endpoint-api-key","depth":2,"children":[]},{"title":"Server Request ID","slug":"server-request-id","depth":2,"children":[]},{"title":"Frontend auth token (optional)","slug":"frontend-auth-token-optional","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"socket-724d51c9","siteName":"Socket Docs","title":"Socket Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-18T09:04:44.484Z","originalFileLocation":"integrate/get-api-access.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=\"Choose the right Socket API endpoint for your integration.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Socket 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/socket-724d51c9/-JA2U5FbmJtGVJIA/_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/socket-724d51c9/-JA2U5FbmJtGVJIA/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/socket-724d51c9/-JA2U5FbmJtGVJIA/_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/socket-724d51c9/-JA2U5FbmJtGVJIA/_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/socket-724d51c9/-JA2U5FbmJtGVJIA/_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/socket-724d51c9/-JA2U5FbmJtGVJIA/_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/socket-724d51c9/-JA2U5FbmJtGVJIA/_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/socket-724d51c9/-JA2U5FbmJtGVJIA/_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/socket-724d51c9/-JA2U5FbmJtGVJIA/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Socket Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The network that routes money movement across chains, stablecoins, payment methods, and liquidity venues.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Socket Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.socket.tech/integrate/get-api-access\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://socket-724d51c9.mintlify.app/_mintlify/api/og/v2?division=GETTING+STARTED\u0026amp;title=Get+API+Access\u0026amp;description=Choose+the+right+Socket+API+endpoint+for+your+integration.\u0026amp;theme=4ae6a2d73b275e3d8f913f88\u0026amp;signature=405fe745e229718e57f76dce910fbc1eb1b4fd5ee3fd4d0707edf63caf322c5f\">\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=\"Socket Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The network that routes money movement across chains, stablecoins, payment methods, and liquidity venues.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://socket-724d51c9.mintlify.app/_mintlify/api/og/v2?division=GETTING+STARTED\u0026amp;title=Get+API+Access\u0026amp;description=Choose+the+right+Socket+API+endpoint+for+your+integration.\u0026amp;theme=4ae6a2d73b275e3d8f913f88\u0026amp;signature=405fe745e229718e57f76dce910fbc1eb1b4fd5ee3fd4d0707edf63caf322c5f\">\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/socket-724d51c9/-JA2U5FbmJtGVJIA/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Socket Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#008A45\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.socket.tech/integrate/get-api-access\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/integrate/get-api-access.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.socket.tech/#organization\",\"name\":\"Socket Docs\",\"url\":\"https://docs.socket.tech\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/socket-724d51c9/zG6n_xkDmCZSmokh/images/socket-wordmark-black.svg?fit=max\u0026auto=format\u0026n=zG6n_xkDmCZSmokh\u0026q=85\u0026s=bceac738d2505963d630b99474bc8f86\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.socket.tech#website\",\"name\":\"Socket Docs\",\"url\":\"https://docs.socket.tech\",\"publisher\":{\"@id\":\"https://docs.socket.tech/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.socket.tech/integrate/get-api-access#webpage\",\"url\":\"https://docs.socket.tech/integrate/get-api-access\",\"name\":\"Get API Access\",\"description\":\"Choose the right Socket API endpoint for your integration.\",\"dateModified\":\"2026-08-18T09:04:44.484Z\",\"isPartOf\":{\"@id\":\"https://docs.socket.tech#website\"},\"breadcrumb\":{\"@id\":\"https://docs.socket.tech/integrate/get-api-access#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.socket.tech/integrate/get-api-access#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"GETTING STARTED\",\"item\":\"https://docs.socket.tech/integrate/introduction\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get API Access\",\"item\":\"https://docs.socket.tech/integrate/get-api-access\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.socket.tech/integrate/get-api-access#article\",\"headline\":\"Get API Access\",\"name\":\"Get API Access\",\"description\":\"Choose the right Socket API endpoint for your integration.\",\"url\":\"https://docs.socket.tech/integrate/get-api-access\",\"mainEntityOfPage\":{\"@id\":\"https://docs.socket.tech/integrate/get-api-access#webpage\"},\"dateModified\":\"2026-08-18T09:04:44.484Z\",\"publisher\":{\"@id\":\"https://docs.socket.tech/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.socket.tech#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Socket Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Socket Docs","nav":{"global":null,"tabs":[{"tab":"Home","pages":[{"title":"Home","href":""}]},{"tab":"About Socket","pages":[{"title":"About Socket","href":"/about/what-is-socket"}]},{"tab":"Integrate Socket","groups":[{"group":"GETTING STARTED","icon":"rocket","pages":[{"title":"Introduction","description":"Getting started with Socket API integration","href":"/integrate/introduction"},{"title":"Get API Access","href":"/integrate/get-api-access"},{"title":"Contract Addresses","description":"Contract addresses for Socket-supported networks.","href":"/integrate/contract-addresses"}]},{"group":"INTEGRATION GUIDES","icon":"code","pages":[{"title":"Guide to Integrate Socket API","href":"/integrate/integration-guides/socket-api"},{"title":"Deposit Addresses","href":"/integrate/integration-guides/deposit-addresses"},{"title":"Destination Payload Execution","href":"/integrate/integration-guides/additional-guides/destination-payload"}]},{"group":"MIGRATION","icon":"arrow-right-arrow-left","pages":[{"title":"Bungee v1 API → Socket v3 API","href":"/integrate/migration-guide"},{"title":"Socket v2 API → Socket v3 API","href":"/integrate/migration-guide-v2"}]},{"group":"RESOURCES","icon":"folder-open","pages":[{"title":"System Status","url":"https://status.socket.tech","href":"/about/system-status"}]}]},{"tab":"Socket Widget","pages":[{"title":"Socket Widget","href":"/integrate/socket-widget"}]},{"tab":"For Agents","pages":[{"title":"For Agents","href":"/for-agents/intro"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/swap/get-quotes"}]}]},"basePath":"","title":"Socket Docs","buildId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","deploymentId":"dpl_G9nrg4qeJSZtah1Ziwbc2n6WkLch","dynamics":[],"chunks":[]}