Skip to main content
POST
Get quotes

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Quote parameters.

fromToken
string
required

Input token mint address.

Required string length: 1 - 256
Pattern: ^[!-~]+$
toToken
string
required

Output token mint address.

Required string length: 1 - 256
Pattern: ^[!-~]+$
fromAmount
string
required

Input amount in the token's base units.

Maximum string length: 78
Pattern: ^[1-9]\d*$
integratorFeeBps
integer

Integrator fee in basis points, 0–100 (25 = 0.25%). Fees must be enabled for your API key and the rate must stay within your approved limit. For a positive rate, provide integratorFeeRecipientAddress. Omit both fee fields or use 0 for no fee; 0 requires no fee setup or recipient. Charged in the input token. Currently supported only by rfq-fill for supported tokenized stocks against USDC; positive fees exclude all other routes, which appear in unavailableRoutes as integrator_fee_not_supported. Invalid fee terms return 400 invalid_request; unavailable fee access returns 400 integrator_fee_unavailable.

Required range: 0 <= x <= 100
integratorFeeRecipientAddress
string

Solana wallet receiving the integrator fee. Required with a positive integratorFeeBps. With 0 bps, a configured recipient can select an attribution override without charging a fee; otherwise default attribution applies. Use a fee recipient address approved for your API key. Passing this field without integratorFeeBps returns 400.

fromAddress
string

Wallet address sending the input token.

Required string length: 1 - 256
Pattern: ^[!-~]+$
toAddress
string

Wallet address receiving the output token.

Required string length: 1 - 256
Pattern: ^[!-~]+$

Response

Available quotes from the supported routes.

success
enum<boolean>
required
Available options:
true
data
object
required
timestamp
string
required
requestId
string
required

Identifies this request; also sent as the X-Request-Id header. Quote it when asking Sunrise about a request.