API reference
Quotes
Indicative swap quotes with slippage protection.
Quotes are indicative. When a trade executes, Privy takes its own fresh quote and locks the minimum output, so a quote from this endpoint is never executed directly.
Get a swap quote
/api/v1/quotePublicReturns a fresh indicative quote. Quotes are not executable and are never stored: when a trade executes, Privy takes its own fresh quote server-side and locks the minimum output.
Parameters
inputMintstring · queryrequiredMint to spend.
outputMintstring · queryrequiredMint to receive.
amountstring · queryrequiredRaw input amount in the input token’s smallest unit (lamports for SOL).
slippageBpsinteger · queryoptionalSlippage tolerance in basis points, 10 to 5000. Defaults to
1500.
Response
inputMintstringMint spent.
outputMintstringMint received.
inAmountstringRaw input amount.
outAmountstringExpected raw output amount.
minimumOutAmountstringMinimum raw output after slippage.
slippageBpsintegerSlippage tolerance applied.
priceImpactnumbernullableEstimated price impact as a percentage.
inUsdValuenumbernullableUSD value of the input.
outUsdValuenumbernullableUSD value of the output.
routerstringnullableRouting engine that produced the quote.
quotedAtstring · date-timeWhen the quote was produced.
Errors
curl "https://privy.ac/api/v1/quote?inputMint=So11111111111111111111111111111111111111112&outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount=10000000"{
"data": {
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"inAmount": "10000000",
"outAmount": "1090191",
"minimumOutAmount": "926662",
"slippageBps": 1500,
"priceImpact": -0.0339,
"inUsdValue": 1.0902,
"outUsdValue": 1.0901,
"router": "iris",
"quotedAt": "2026-10-09T21:40:02.118Z"
},
"requestId": "req_8f3a2c91d4e6b07f"
}