LLM prompt — copy and paste into your coding agent
/v3/swap) replaces the legacy Socket API (/v2). The new API is simpler — a single quote call returns ready-to-send transaction data. No server-side route sessions, no multi-step build flow.
The base URL also changes:
What changed at a glance
Execution flow
Before (v2):GET /v2/quote→ pick a routePOST /v2/route/start→ register the route, getactiveRouteIdGET /v2/approval/check-allowance→ check if approval neededGET /v2/approval/build-tx→ build approval txGET /v2/route/build-next-tx?activeRouteId=...→ get tx calldata- Submit the transaction on-chain
GET /v2/route/prepare?activeRouteId=&userTxIndex=&txHash=→ report tx hash- Repeat steps 5–7 for multi-tx routes
GET /v3/swap/quote→ get routes with txData included- If
route.approvalis present, approveapproval.spenderAddressforapproval.amount - Submit
route.txData.objecton-chain - Poll
GET /v3/swap/status?quoteId=...until terminal status
Parameter mapping
Headers
Query parameters
singleTxOnly, maxUserTxs, uniqueRoutesPerBridge, disableSwapping,
bridgeWithGas, bridgeWithInsurance, isContractCall, and showAutoRoutes
are not supported in v3.Approval
In v2 you called two separate endpoints to check and build approval transactions. In v3, the quote response tells you everything you need:approval is present, approve spenderAddress for amount of tokenAddress before submitting. If approval is null, no approval is needed.
Status
Before:Quick example
v2 request:API Reference
Full Socket Swap V3 API reference
Get API Access
Request production API credentials