Skip to main content
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.
/quote/v3 requires authentication. Send an x-api-key header, or an access token as Authorization: Bearer <token> from a browser or mobile client. Requests without either return 401 with errorCode: "UNAUTHORIZED_QUOTE". See API Keys.

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.
  • Deprecation header — RFC 9745 date, e.g. @1795564800.
  • Sunset header — HTTP-date, e.g. Tue, 23 Feb 2027 00:00:00 GMT.
  • Link header — three lines with rel="deprecation", rel="sunset", and rel="successor-version", pointing to this guide and to the endpoint’s successor.
For POST /quote/v2, the headers look like this:
These headers are attached to every response from a retiring endpoint (2xx, 4xx, and 5xx) and are listed in Access-Control-Expose-Headers, so browser clients using fetch or XMLHttpRequest can read them cross-origin:
Successful (200) responses also include a top-level deprecation object:
Once rate limits are reduced, 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

  1. Send x-api-key (server) or an access token (client) on every /quote/v3 call.
  2. Stop sending useExternalLiquidity, useFallbacks, protocolVersion, useRebalancer, and userOperationGasOverhead. /quote/v3 rejects them.
  3. Send "platform" instead of "relay" in sponsoredFeeComponents, and include fee in every appFees item.
  4. Read status, data, and check from the step itself instead of from step.items[].
  5. Match step ids approve and authorize instead of approval, authorize1, and authorize2.
  6. Read fees from the new fees object and origin gas from originGas, and allow amountUsd to be null.
  7. Read step.depositAddress as an object.
  8. Handle errors by errorCode, and check warnings when you send fixedRate.
  9. Poll status on /intents/status/v3 and post signatures to /execute/permits/v2, following the endpoints in each step.

Request changes

/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.
/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:
  • useExternalLiquidity and useFallbacks — deprecated routing flags.
  • protocolVersion — obsolete. /quote/v2 accepts it but no longer uses it.
  • useRebalancer and userOperationGasOverhead — not part of the public request.
Misspelled parameters, and any other field /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".
/quote/v3 validates the Fee Sponsorship parameters before quoting:
  • maxSubsidizationAmount must be a nonnegative integer string, such as "0" or "5000000". Other values return 400 with errorCode: "INVALID_REQUEST_PARAMS".
  • sponsoredFeeComponents takes execution, swap, platform, app, and rent. Use platform for the Relay fee: the legacy name relay returns 400 with errorCode: "INVALID_REQUEST_PARAMS". When omitted, it defaults to execution, swap, platform, and app.
  • maxSubsidizationAmount and subsidizeRent: true now require subsidizeFees: true, like subsidizationBps and sponsoredFeeComponents. /quote/v2 ignored them without it; /quote/v3 returns 400 with errorCode: "INVALID_REQUEST_PARAMS". subsidizeRent: false is still allowed.
Sponsorship stays best effort. When a requested sponsorship can’t apply, for example when the sponsor wallet is underfunded, the quote still returns 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.
The full OpenAPI schema lives at api.relay.link/documentation/json.
fees has changed meaning. The key fees is reused for a different shape. In v2, fees held gas, relayer, relayerGas, relayerService, app, and subsidized. In v3, fees holds the breakdown v2 returned as details.expandedPriceImpact. Code reading fees.relayer or fees.gas will break.

What changed

Every response change, in the order you are likely to hit it.
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.
Tell two steps with the same id apart by their position and kind, not by id.
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 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.
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.
feeSponsorship now uses the GET /requests/v3 shape:
  • The relay component is named platform, in both selectedComponents and components.
  • The currency moves to one feeSponsorship.currency. Amounts inside components, sponsoredTotal, and userPaysTotal no longer repeat it.
The request parameter sponsoredFeeComponents uses the same name: send "platform", because "relay" returns 400. See Sponsorship parameters and Fee Sponsorship.
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.
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.
A successful quote can include a top-level warnings array of { code, message } objects. It is omitted when there is nothing to report.
The only code today is 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.
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’s kind 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.
For the full lifecycle, including polling intervals and terminal states, see Step Execution.

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.
The response has 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

Poll GET /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 apiKey to createClient. getQuote and useQuote send it when baseApiUrl is the Relay API.
  • Browser: point baseApiUrl at a proxy on your backend that adds x-api-key, as the UI kit already requires for GET /requests/v3. Make sure the proxy forwards /quote/v3 and /execute/permits/v2.
Without a key, quotes fail with 401 and errorCode: "UNAUTHORIZED_QUOTE". The SDK’s APIError.statusCode now reports that 401.

SDK

  • getQuote returns a Quote with flat steps. Read quote.steps[i].data instead of quote.steps[i].items[0].data, and quote.requestId instead of steps[0].requestId.
  • execute and executeGaslessBatch take a Quote. onProgress and the result of execute still report steps with items. To convert a quote’s steps to that shape yourself, call normalizeSteps(quote.steps, quote.requestId).
  • QuoteBody follows the request changes: remove useExternalLiquidity, useFallbacks, and any other extra field such as source, and use platform in sponsoredFeeComponents.
  • Execute follows the response changes: fees is the v3 breakdown, originGas replaces fees.gas, depositAddress is an object, QuoteStepId uses approve and authorize, and warnings and protocol are 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, and onSwapError still receive an Execute with items steps, but its fees, originGas, depositAddress, and warnings follow v3. Update any callback code that reads fees.relayer, fees.gas, or depositAddress as a string.
  • OnrampWidget: onSuccess and onError now receive a Quote instead of an Execute.
  • refundTo prop: SwapWidget and OnrampWidget accept an optional refundTo address, which they pass to /quote/v3. Set it if you support deposit-address routes that need a destination swap; without it, those quotes fail with refundTo is required for deposit addresses that require a destination swap.
  • RelayKitProvider: set baseApiUrl to your proxy, as described in Authentication. The provider warns when baseApiUrl points directly at the Relay API.