curl --request POST \
--url https://api.skia.money/api/quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"expiry": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.skia.money/api/quote"
payload = {
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"expiry": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tokenIn: '<string>',
tokenOut: '<string>',
amountIn: '<string>',
expiry: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.skia.money/api/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.skia.money/api/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tokenIn' => '<string>',
'tokenOut' => '<string>',
'amountIn' => '<string>',
'expiry' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.skia.money/api/quote"
payload := strings.NewReader("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountIn\": \"<string>\",\n \"expiry\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.skia.money/api/quote")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountIn\": \"<string>\",\n \"expiry\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skia.money/api/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountIn\": \"<string>\",\n \"expiry\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"quote": {
"quoteId": "<string>",
"chainId": "ethereum",
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"amountOut": "<string>",
"rate": "<string>",
"fee": "<string>",
"expiry": "2023-11-07T05:31:56Z",
"unsignedIntent": {
"signerWallet": "<string>",
"signerToken": "<string>",
"signerAmount": "<string>",
"senderWallet": "<string>",
"senderToken": "<string>",
"senderAmount": "<string>",
"protocolFee": "<string>",
"nonce": "<string>",
"expiry": "<string>",
"makerSignature": "<string>",
"signatureType": 0
},
"signerWallet": "<string>",
"signerToken": "<string>",
"signerAmount": "<string>",
"senderToken": "<string>",
"senderAmount": "<string>",
"protocolFee": "<string>",
"dynamicFeeApplied": "<string>",
"tier": "Bronze",
"layer": "sovereign",
"settlementMode": "on-chain",
"settlementNetwork": {
"key": "<string>",
"chainIdNumeric": 123,
"explorerUrl": "<string>"
}
},
"payment": {
"paymentId": "<string>",
"payer": "<string>",
"amount": "<string>",
"currency": {
"tokenAddress": "<string>",
"symbol": "<string>"
},
"status": "pending",
"timestamp": "2023-11-07T05:31:56Z",
"validatedAgainstSupportedTokens": true
}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}Edge paid quote (pay-and-resubmit lane)
The Edge-layer monetized quote. Without a consumable payment the server answers 402 with an X-Payment-Request header carrying a SkiaPaymentRequest (legacy wire name x402Version; NOT the x402 standard — a custom pay-and-resubmit flow, C3 DELIBERATE-NO for Phase 1). Payment settles out of band; verify via POST /api/payment/verify, then resubmit. C3a/C3b hardening fields (expiresAt, requestBinding) are validated whenever present.
curl --request POST \
--url https://api.skia.money/api/quote \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"expiry": "2023-11-07T05:31:56Z"
}
'import requests
url = "https://api.skia.money/api/quote"
payload = {
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"expiry": "2023-11-07T05:31:56Z"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
tokenIn: '<string>',
tokenOut: '<string>',
amountIn: '<string>',
expiry: '2023-11-07T05:31:56Z'
})
};
fetch('https://api.skia.money/api/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.skia.money/api/quote",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tokenIn' => '<string>',
'tokenOut' => '<string>',
'amountIn' => '<string>',
'expiry' => '2023-11-07T05:31:56Z'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.skia.money/api/quote"
payload := strings.NewReader("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountIn\": \"<string>\",\n \"expiry\": \"2023-11-07T05:31:56Z\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.skia.money/api/quote")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountIn\": \"<string>\",\n \"expiry\": \"2023-11-07T05:31:56Z\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.skia.money/api/quote")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tokenIn\": \"<string>\",\n \"tokenOut\": \"<string>\",\n \"amountIn\": \"<string>\",\n \"expiry\": \"2023-11-07T05:31:56Z\"\n}"
response = http.request(request)
puts response.read_body{
"quote": {
"quoteId": "<string>",
"chainId": "ethereum",
"tokenIn": "<string>",
"tokenOut": "<string>",
"amountIn": "<string>",
"amountOut": "<string>",
"rate": "<string>",
"fee": "<string>",
"expiry": "2023-11-07T05:31:56Z",
"unsignedIntent": {
"signerWallet": "<string>",
"signerToken": "<string>",
"signerAmount": "<string>",
"senderWallet": "<string>",
"senderToken": "<string>",
"senderAmount": "<string>",
"protocolFee": "<string>",
"nonce": "<string>",
"expiry": "<string>",
"makerSignature": "<string>",
"signatureType": 0
},
"signerWallet": "<string>",
"signerToken": "<string>",
"signerAmount": "<string>",
"senderToken": "<string>",
"senderAmount": "<string>",
"protocolFee": "<string>",
"dynamicFeeApplied": "<string>",
"tier": "Bronze",
"layer": "sovereign",
"settlementMode": "on-chain",
"settlementNetwork": {
"key": "<string>",
"chainIdNumeric": 123,
"explorerUrl": "<string>"
}
},
"payment": {
"paymentId": "<string>",
"payer": "<string>",
"amount": "<string>",
"currency": {
"tokenAddress": "<string>",
"symbol": "<string>"
},
"status": "pending",
"timestamp": "2023-11-07T05:31:56Z",
"validatedAgainstSupportedTokens": true
}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}{
"code": "<string>",
"message": "<string>",
"retryable": true,
"details": {}
}Authorizations
TESTNET posture: simulated signature bearer — the token is the caller's 0x (address-as-identity; no per-request signature verification). Real EIP-191/EIP-712-verified bearers + SIWE (EIP-4361) sessions for the hosted UI arrive in v1.7.0. The settlement security boundary is the EIP-712 Order signature verified by SwapERC20 on-chain, not this credential. See docs/auth-posture-testnet.md.
Body
App-chain key. 8 live + 4 dormant (taiko/bsc/polygon/hyperevm — wire-accepted only; no deployment; the SDK refuses them client-side; hyperevm is staged with its deployment pre-verified in simulation — mainnet id 999 probe-verified, testnet 998). monad joined LIVE in v0.4.5 via DEPLOYMENT REPRODUCTION (canonical set replayed from the recovered salts/initcodes by a non-original wallet, 2026-11-19, battery green): mainnet id 143, testnet id 10143 — both probe-verified via eth_chainId (rpc.monad.xyz / rpc-testnet.monadinfra.com). ROBINHOOD MAINNET FACT (probe-verified 2026-11-19): Robinhood Chain mainnet EXISTS — id 4663 (eth_chainId 0x1237); the testnet id 46630 remains the settlement + alias lane pre-mainnet-integration. ALIAS DISCIPLINE (R4-26): where numeric EIP-155 ids are accepted (MCP layer), they resolve to TESTNET settlementChainIdNumeric values only — mainnet labels are forbidden pre-mainnet (MCP schema v0.1.2 carries the same sentence); the MCP numeric alias additions (4663 / 143 / 10143 / 998 / 999) are queued for the v0.1.4 regen so runtime and docs move together.
ethereum, arbitrum, base, robinhood, mantle, ink, xlayer, monad, taiko, bsc, polygon, hyperevm