POST
/
sessions
/
quote
curl -X POST https://api.stableyard.fi/v2/sessions/quote \
  -H "Authorization: Bearer sy_pub_*" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 5000000,
    "currency": "USDC",
    "destination": "acc_merchant",
    "sourceChain": "base",
    "sourceToken": "USDC"
  }'
{
  "fees": {
    "total": 25000,
    "totalFormatted": "0.025",
    "stableyard": 15000,
    "partner": 10000
  },
  "route": {
    "sourceChain": "base",
    "destChain": "polygon",
    "estimatedSeconds": 30
  },
  "paymentMethods": [
    {
      "type": "crypto",
      "chain": "base",
      "chainId": 8453,
      "tokens": ["USDC"]
    }
  ],
  "requestId": "req_abc123"
}
Get a quote for fees, routing, and estimated settlement time without creating a session. Can also be called on an existing session via POST /sessions/:id/quote. Auth: sy_secret_* | sy_pub_*
amount
number
required
Payment amount in smallest unit. Minimum: 100000
currency
string
Token currency. Default: USDC
destination
string
required
Destination account
sourceChain
string
Source chain name
sourceToken
string
Source token
executionMode
string
standard or boosted
slippageBps
number
Slippage tolerance in basis points. Default: 50
curl -X POST https://api.stableyard.fi/v2/sessions/quote \
  -H "Authorization: Bearer sy_pub_*" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 5000000,
    "currency": "USDC",
    "destination": "acc_merchant",
    "sourceChain": "base",
    "sourceToken": "USDC"
  }'
{
  "fees": {
    "total": 25000,
    "totalFormatted": "0.025",
    "stableyard": 15000,
    "partner": 10000
  },
  "route": {
    "sourceChain": "base",
    "destChain": "polygon",
    "estimatedSeconds": 30
  },
  "paymentMethods": [
    {
      "type": "crypto",
      "chain": "base",
      "chainId": 8453,
      "tokens": ["USDC"]
    }
  ],
  "requestId": "req_abc123"
}