List available routes for a pair
Endpoint Details
List Routes
List protocols capable of swapping a given asset pair (respects client modularity settings)
GET
List available routes for a pair
Overview
/leokit/routes returns the protocols that can swap a given from_asset → to_asset pair, along with metadata for each (estimated time, intent-based or not, same-chain requirement). The response respects per-client disabled_protocols configured in the LeoKit Dashboard.
Use this for UI like a “swap-via” picker, or to pre-filter protocols before requesting quotes.
Endpoint
Request
Authentication
Authentication is optional. With anApi-Key, the response is filtered by your client’s modularity settings (disabled protocols/chains). Without one, all globally-enabled protocols are returned.
Query Parameters
Response
Success (200)
Field Reference
Route Object
Caching
Responses are cached for 60 seconds (Cache-Control: public, max-age=60).
Errors
Examples
Public request (all enabled protocols)
Authenticated request (filtered by client config)
Notes
- Protocol metadata is static per protocol —
estimated_secondsis an average, not a real-time measurement. - Internal protocol variants (e.g.
thorchain-aggregator-swapout) are filtered out of the response. - For full per-protocol live quotes, follow up with
/leokit/quoteor streaming quotes.