Quote

Use the documented v1 Quote endpoint to request a provider-specific quote, read output and slippage fields, and decide when to move to Q1 or Swap.

Quote

Use this page when you are maintaining or testing Carbium's older provider-specific quote surface:

GET https://api.carbium.io/api/v1/quote

This endpoint returns quote data for one requested provider. It does not build or submit a transaction.

For most new executable quote flows, start with Q1 instead. Q1 uses GET /api/v2/quote and can return a txn payload when user_account is included.

Part of the Carbium Solana infrastructure stack.


What this endpoint is for

GET /api/v1/quote is useful when your integration needs a quote from a specific documented provider before deciding whether to build a transaction.

Use v1 Quote when you need to...Use another page when you need to...
inspect one provider-specific quotecompare all documented providers
read output amount, minimum received, and price impactrequest an executable Q1 transaction payload
keep an older fromMint / toMint integration workingsign, submit, or confirm a transaction

This page is a reference companion. It keeps the older v1 quote request understandable without replacing the Q1, All Quote, or Swap guides.


Request shape

Method: GET

URL:

https://api.carbium.io/api/v1/quote

Headers:

X-API-KEY: YOUR_API_KEY
accept: text/plain
ParameterRequiredMeaning
fromMintYesInput token mint
toMintYesOutput token mint
amountYesRaw input amount in smallest units
slippageYesSlippage tolerance in basis points
providerYesProvider route to quote
📘

Quote belongs to the older v1 request family. Use fromMint, toMint, amount, slippage, and provider here. Do not send Q1 fields like src_mint, dst_mint, amount_in, or slippage_bps to this endpoint.


Minimal request

curl --request GET \
  --url 'https://api.carbium.io/api/v1/quote?fromMint=So11111111111111111111111111111111111111112&toMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v&amount=1000000&slippage=100&provider=raydium' \
  --header 'X-API-KEY: YOUR_API_KEY' \
  --header 'accept: text/plain'

This example requests a provider-specific SOL -> USDC quote with 100 basis points of slippage.

If you want to compare multiple providers for the same pair and amount, use All Quote.


How to read the response

The guide examples for this surface show a successful quote response with a success flag and a data object.

{
  "success": true,
  "data": {
    "inputMint": "So11111111111111111111111111111111111111112",
    "inAmount": "1000000",
    "outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "outAmount": "1257091",
    "minimumReceived": "1244520",
    "slippage": 100,
    "priceImpactPercent": "0.0131272710219024683117714326"
  }
}
FieldHow to use it
inputMint / outputMintConfirm the quote is for the pair you requested
inAmountConfirm the raw input amount
outAmountRead the expected output amount before slippage
minimumReceivedCheck the slippage-bounded minimum output
slippageConfirm the basis-point tolerance applied to the quote
priceImpactPercentFlag routes that may be too expensive for the trade size

Treat the response as quote data only. It is not a signed transaction, and it is not proof that a swap has landed on-chain.


Where Quote fits in the swap path

Use this endpoint as an early decision step:

  1. get a Swap API key
  2. request a quote for a specific provider
  3. check output amount, minimum received, and price impact
  4. decide whether to compare more providers or build a transaction
  5. move to Q1 or Swap when you need an executable payload
Next needGo to
Current quote -> transaction flowQ1
Provider-by-provider comparisonAll Quote
Older provider-specific transaction buildSwap
Auth, route, or request-shape failure triageSwap API Errors Reference

Common mistakes

SymptomLikely causeFirst fix
401 or missing-key errorThe request did not include a Swap API keySend X-API-KEY from your backend
400 with route or pool failureThe selected provider cannot quote that pair, size, or pathTry All Quote or change provider, pair, or amount
Empty or unexpected response fieldsRequest family mismatchKeep fromMint, toMint, amount, slippage, and provider on the v1 path
Quote succeeds but no transaction appearsThis endpoint only quotesMove to Q1 with user_account or use the documented v1 Swap endpoint

Use API Commands when you are unsure which request family owns the command you need.

🔶

Use Quote for provider-specific v1 pricing checks, then move into All Quote, Q1, or Swap when the integration needs comparison or execution. Platform access starts at carbium.io.