Skip to main content
Socket Swap V3 is available on three endpoints depending on your use case:

Public endpoint

No authentication required. Use this to try the API and test your integration before going to production.

Backend endpoint (domain whitelisted)

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:

Dedicated endpoint (API key)

For production backend integrations that need guaranteed rate limits. Comes with 20 rps by default; enterprise customers get 100 rps. Request access here.
Keep your API key server-side. Never expose it in frontend code or client bundles.

Server Request ID

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.

Frontend auth token (optional)

Some frontend / widget integrations exchange a Cloudflare Turnstile challenge for a short-lived JWT:
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.