Skip to main content
GET
Find a route

Authorizations

Authorization
string
header
required

Session JWT (browsers receive it as an httpOnly cookie from POST /auth/verify; 15 min, silently renewed via POST /auth/refresh), or a long-lived API token (ss_…) minted at POST /api-tokens. API tokens work on data and trading endpoints and can request WebSocket tickets; token management and admin endpoints accept session JWTs only.

Query Parameters

token_in
string
required

Input token ID

token_out
string
required

Output token ID

amount_in
string

Optional positive canonical decimal amount for output estimation

pool_key
string

Optional pool key. The route uses only this pool, as a single hop, with no fallback.

Response

Best swap route (max 3 hops)

data
object
required