Skip to main content
POST
External Buy Quote

Headers

X-Api-Key
string
required

Your API key (configured in credentials)

X-Signature
string
required

HMAC-SHA256 signature (auto-generated) To test manually: HMAC-SHA256 of apiKey + timestamp (or apiKey + timestamp + userId when X-User-Id is required), keyed with your API secret. The HMAC Generator flow computes this for you.

X-Timestamp
string
required

Unix timestamp in seconds (auto-generated) Unix seconds, e.g. Math.floor(Date.now() / 1000). Must match the timestamp used in the X-Signature computation.

X-Request-Id
string
required

Unique request identifier (auto-generated) Any unique string per request, e.g. a UUID.

X-User-Id
string
required

User UUID (set above)

Body

application/json
from_currency
string
required

Fiat currency for the onramp transaction.

to_currency
string
required

Crypto currency for the onramp transaction.

payment_method
string
required

Payment method used to complete the onramp deposit leg.

network
string
required

Network used to transfer the funds to the external wallet as part of the crypto withdrawal leg.

from_amount
number

Fiat amount. Provide exactly one of from_amount or to_amount (not both, not neither).

to_amount
number

Crypto amount. Provide exactly one of from_amount or to_amount (not both, not neither).

Response

Successful response

success
boolean
data
object