POST /quote/v3 is the latest version of the Quote API. It takes the same request as /quote/v2 and returns a flatter, stricter response: one step per action, the same fee structure as GET /requests/v3, and one error shape with a code on every error. This guide covers every change and how to upgrade.
/quote/v3 replaces POST /quote, POST /quote/v2, and POST /price. Its signature steps post to POST /execute/permits/v2, which replaces POST /execute/permits. The old endpoints keep working during a deprecation window (see the sunset timeline below).
The v3 endpoint suffix is a platform API version. It does not mean a request uses a particular version of Relay Protocol.
Endpoints and successors
Sunset timeline
The endpoints above are deprecated as of November 25, 2026. They keep working, but migrate before they’re fully retired on February 23, 2027. All six endpoints retire together.Detecting deprecation programmatically
Every response from a retiring endpoint carries in-band deprecation signals, so clients can surface or log the sunset timeline without hard-coding dates.Deprecationheader — RFC 9745 date, e.g.@1795564800.Sunsetheader — HTTP-date, e.g.Tue, 23 Feb 2027 00:00:00 GMT.Linkheader — three lines withrel="deprecation",rel="sunset", andrel="successor-version", pointing to this guide and to the endpoint’s successor.
POST /quote/v2, the headers look like this:
2xx, 4xx, and 5xx) and are listed in Access-Control-Expose-Headers, so browser clients using fetch or XMLHttpRequest can read them cross-origin:
200) responses also include a top-level deprecation object:
429 responses from a retiring endpoint return a route-specific body with the same successor and migrationGuide links. For guidance on reducing your request volume, see Handling Rate Limits.
Migration checklist
- Send
x-api-key(server) or an access token (client) on every/quote/v3call. - Stop sending
useExternalLiquidity,useFallbacks,protocolVersion,useRebalancer, anduserOperationGasOverhead./quote/v3rejects them. - Send
"platform"instead of"relay"insponsoredFeeComponents, and includefeein everyappFeesitem. - Read
status,data, andcheckfrom the step itself instead of fromstep.items[]. - Match step ids
approveandauthorizeinstead ofapproval,authorize1, andauthorize2. - Read fees from the new
feesobject and origin gas fromoriginGas, and allowamountUsdto benull. - Read
step.depositAddressas an object. - Handle errors by
errorCode, and checkwarningswhen you sendfixedRate. - Poll status on
/intents/status/v3and post signatures to/execute/permits/v2, following the endpoints in each step.
Request changes
Authentication
Authentication
/quote/v2 accepted keyless requests. /quote/v3 checks authentication before it validates the body, so a request without a key or token returns 401 with errorCode: "UNAUTHORIZED_QUOTE" whatever its body.Removed parameters
Removed parameters
/quote/v3 rejects parameters it does not know, where /quote/v2 ignored them. Sending any of these returns 400 with errorCode: "INVALID_REQUEST_PARAMS", so remove them before you switch:useExternalLiquidityanduseFallbacks— deprecated routing flags.protocolVersion— obsolete./quote/v2accepts it but no longer uses it.useRebalanceranduserOperationGasOverhead— not part of the public request.
/quote/v2 silently ignored, such as source, fail the same way.Array items. Each item in txs must include to, data, and value; originalTxValue stays optional. Each item in appFees must include fee.Every other /quote/v2 parameter is still accepted, including indicativeQuote, usePermit, useDepositAddress, subsidizeFees, sponsoredFeeComponents, preferredSolverFillCurrency, and preferredSolverDepositCurrency. As in v2, values that convert to the right type are accepted, such as "8453" for originChainId.Validation errors name the field, including nested paths, e.g. body/usePermit should be boolean.Send the body as JSON with Content-Type: application/json. A request with an unsupported content type returns 415 with errorCode: "INVALID_REQUEST_PARAMS".Sponsorship parameters
Sponsorship parameters
/quote/v3 validates the Fee Sponsorship parameters before quoting:maxSubsidizationAmountmust be a nonnegative integer string, such as"0"or"5000000". Other values return400witherrorCode: "INVALID_REQUEST_PARAMS".sponsoredFeeComponentstakesexecution,swap,platform,app, andrent. Useplatformfor the Relay fee: the legacy namerelayreturns400witherrorCode: "INVALID_REQUEST_PARAMS". When omitted, it defaults toexecution,swap,platform, andapp.maxSubsidizationAmountandsubsidizeRent: truenow requiresubsidizeFees: true, likesubsidizationBpsandsponsoredFeeComponents./quote/v2ignored them without it;/quote/v3returns400witherrorCode: "INVALID_REQUEST_PARAMS".subsidizeRent: falseis still allowed.
200 with user-paid fees. Check fees.sponsored and feeSponsorship to see what was sponsored.Response shape
The same bridge quote in v2 and v3, plus a focused diff of what moved. Values are abbreviated.- v2
- v3
- Difference
The full OpenAPI schema lives at api.relay.link/documentation/json.
What changed
Every response change, in the order you are likely to hit it.Steps are flat
Steps are flat
Each step carries
status, data, and check directly. There is no items array: every v2 item becomes its own step, in the same order. Execute steps in array order.Steps no longer carry requestId. Use the top-level requestId.Step ids can repeat. For example, a quote that needs a pre-approval returns two approve steps, and the EIP-3009 permit flow returns two authorize steps.Step ids
Step ids
Tell two steps with the same id apart by their position and
kind, not by id.Status checks and permit submission
Status checks and permit submission
check is { endpoint, method: "GET" }, and endpoint is /intents/status/v3?requestId=<requestId>. /quote/v2 already pointed here; /quote pointed to /intents/status.Signature steps that post to /execute/permits in v2 post to /execute/permits/v2 in v3 (step.data.post.endpoint). Other post endpoints are unchanged. See Submitting permits.Fees
Fees
fees has the same structure as data.fees.quoted on GET /requests/v3. The values can differ for the same request: fees accumulated when the order is solved are not in the quote, and zero values are formatted differently. See Fees in the API.Each component is
{ usd, amount, amountFormatted }, and all five are always present, as "0" when there is no fee. Costs have a negative usd; sponsored is positive.For a same-chain swap the wallet executes itself, no solver executes anything, so fees.execution is "0" and sponsorship never covers execution.Origin gas
Origin gas
originGas is the estimated gas the wallet pays on the origin chain, including required approvals. It is a currency amount: { currency, amount, amountFormatted, amountUsd }. Like every currency amount in v3, amountUsd is null when Relay has no USD price for the currency.It is not part of fees.execution, because the user pays it to the network. originGas is omitted when it is zero, and when the solver pays origin gas through execution fees, as in gasless execution.Fee sponsorship
Fee sponsorship
feeSponsorship now uses the GET /requests/v3 shape:- The
relaycomponent is namedplatform, in bothselectedComponentsandcomponents. - The currency moves to one
feeSponsorship.currency. Amounts insidecomponents,sponsoredTotal, anduserPaysTotalno longer repeat it.
sponsoredFeeComponents uses the same name: send "platform", because "relay" returns 400. See Sponsorship parameters and Fee Sponsorship.Deposit addresses
Deposit addresses
With
useDepositAddress: true, step.depositAddress is an object instead of a string:type is strict or open. This is the same object GET /requests/v3 returns. See Deposit Addresses.Required fields
Required fields
requestId, steps, fees, and details are always present on a 200. Each step always has id, action, description, kind, and status.details keeps every v2 field except expandedPriceImpact. details.rate and details.userBalance are always strings, and EVM addresses in details.sender and details.recipient are lowercase.amountUsd can be null in details.currencyIn, details.currencyOut, details.refundCurrency, details.currencyGasTopup, the details.route currencies, and originGas, when Relay has no USD price for the currency. Treat it as unknown rather than zero.Warnings
Warnings
A successful quote can include a top-level The only code today is
warnings array of { code, message } objects. It is omitted when there is nothing to report.FIXED_RATE_NOT_APPLIED: you sent fixedRate (as input:output, e.g. "1:0.9996"), but the quote is not priced at that rate. The quote still succeeds, and details.isFixedRate does not tell you whether your rate was applied, so check warnings. More codes may be added; ignore codes you don’t recognize. /quote/v2 returns the same field.Errors
Errors
Every error, on every status code (
400, 401, 403, 415, 429, 500, 503), has one shape:errorCode is always set. requestId is set when the error happened after a request id was assigned. When no specific code applies, 401 returns UNAUTHORIZED_QUOTE, 403 returns FORBIDDEN, 429 returns RATE_LIMITED, 503 returns SERVICE_UNAVAILABLE, other 4xx return INVALID_REQUEST_PARAMS, and other 5xx return UNKNOWN_ERROR. 5xx errors carry a generic message, so rely on errorCode.The 400 fields errorData, approxSimulatedBlock, and failedCallData are no longer returned. See Handling Errors.Executing v3 steps
The loop is the same as before, one level shallower: read each step’skind and data, act on it, and follow the endpoints the step gives you. Steps already marked complete need no action. The example below uses viem with a browser wallet. It stops on any error response, switches the wallet to each transaction step’s chain, and reads the receipt from that chain.
Migrating from /price
Send the same request to /quote/v3 with indicativeQuote: true. Like /price, an indicative quote returns no executable steps and saves no request.
steps: [], no protocol object, and the v3 fees, originGas, and details described above. It includes a requestId, but the request is not saved, so you cannot execute or track it. Request an executable quote when the user is ready to proceed.
/price accepted keyless requests. /quote/v3 needs an API key on your server, or an access token from a browser or mobile client.
Submitting permits
POST /execute/permits/v2 takes the same request as /execute/permits: the kind, requestId, and api from the signature step’s post.body, and the signature in the signature query parameter. You do not build this call yourself: /quote/v3 signature steps already point to it.
The response is { message, steps? }. When the permit starts a transaction the wallet must send, such as the swap in a same-chain permit swap, steps holds that step in the v3 flat shape. Its data includes gas and either maxFeePerGas and maxPriorityFeePerGas or gasPrice, and its check points to /intents/status/v3. Run it before the remaining quote steps.
api is required when kind is permit2 or eip3009; the step’s post.body already includes it. A signature that can’t be verified returns 400 with errorCode: "INVALID_SIGNATURE".
Errors follow the v3 shape. 4xx errors can include an errorData object, such as the required and available amounts for an allowance or balance error.
/quote and /quote/v2 steps keep posting to /execute/permits until those endpoints retire.
Status polling
PollGET /intents/status/v3 with the quote’s requestId. It needs no API key, so browser clients can poll it directly.
If you call /quote today, your steps point to GET /intents/status. If you call /intents/status or /intents/status/v2 yourself, switch to /intents/status/v3; both are retiring (see the sunset timeline).
Upgrading RelayKit
RelayKit quotes with/quote/v3 starting with these releases, published on November 24, 2026. Earlier versions call /quote/v2, so upgrade before it retires.
executeSteps in @relayprotocol/relay-sdk 8.1.0 and later already runs flat v3 steps, so step execution keeps working if you fetch /quote/v3 yourself before upgrading.
Authentication
/quote/v3 requires an API key, so every RelayKit setup needs one:
- Server side: pass
apiKeytocreateClient.getQuoteanduseQuotesend it whenbaseApiUrlis the Relay API. - Browser: point
baseApiUrlat a proxy on your backend that addsx-api-key, as the UI kit already requires forGET /requests/v3. Make sure the proxy forwards/quote/v3and/execute/permits/v2.
401 and errorCode: "UNAUTHORIZED_QUOTE". The SDK’s APIError.statusCode now reports that 401.
SDK
getQuotereturns aQuotewith flat steps. Readquote.steps[i].datainstead ofquote.steps[i].items[0].data, andquote.requestIdinstead ofsteps[0].requestId.executeandexecuteGaslessBatchtake aQuote.onProgressand the result ofexecutestill report steps withitems. To convert a quote’s steps to that shape yourself, callnormalizeSteps(quote.steps, quote.requestId).QuoteBodyfollows the request changes: removeuseExternalLiquidity,useFallbacks, and any other extra field such assource, and useplatforminsponsoredFeeComponents.Executefollows the response changes:feesis the v3 breakdown,originGasreplacesfees.gas,depositAddressis an object,QuoteStepIdusesapproveandauthorize, andwarningsandprotocolare added.
Hooks
useQuote and queryQuote call /quote/v3, and QuoteResponse is now Quote, with the flat steps described above. executeQuote works as before. The other hooks are unchanged.
UI kit
- SwapWidget: existing props keep working.
onSwapValidating,onSwapSuccess, andonSwapErrorstill receive anExecutewithitemssteps, but itsfees,originGas,depositAddress, andwarningsfollow v3. Update any callback code that readsfees.relayer,fees.gas, ordepositAddressas a string. - OnrampWidget:
onSuccessandonErrornow receive aQuoteinstead of anExecute. refundToprop:SwapWidgetandOnrampWidgetaccept an optionalrefundToaddress, which they pass to/quote/v3. Set it if you support deposit-address routes that need a destination swap; without it, those quotes fail withrefundTo is required for deposit addresses that require a destination swap.- RelayKitProvider: set
baseApiUrlto your proxy, as described in Authentication. The provider warns whenbaseApiUrlpoints directly at the Relay API.