Skip to main content
GET
List available routes for a pair

Overview

/leokit/routes returns the protocols that can swap a given from_assetto_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 an Api-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_seconds is 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/quote or streaming quotes.

Authorizations

Api-Key
string
header
required

Demo API-Key (Sandbox): 7037d2b3-9c76-4f62-b730-c544f7570fa4

Query Parameters

from_asset
string
required
to_asset
string
required

Response

Routes for the pair.

data
object
required