GET
/
getPaths
Get Paths
curl --request GET \
  --url https://api-v2.swaps.xyz/api/getPaths \
  --header 'x-api-key: <api-key>'
{
  "paths": [
    {
      "chainId": 123,
      "tokens": "all",
      "supportsExactAmountIn": true,
      "supportsExactAmountOut": true,
      "amountLimits": {
        "minAmount": "<string>",
        "maxAmount": "<string>"
      }
    }
  ],
  "timestamp": "<string>"
}

Authorizations

x-api-key
string
header
required

Limited demo key for API Playground: 5c951bc81da566bbd030ba8e20724063.

Query Parameters

srcChainId
number
required

Source chain ID

srcToken
string
required

Source token address

dstChainId
number

Optional destination chain ID

dstToken
string

Optional destination token address

excludeBridgeIds
enum<string>[]

Bridge IDs to exclude from routing

excludeDexIds
string[]

DEX IDs to exclude from routing

DEX identifier (depends on integration)

Response

200
application/json

Paths response

The response is of type object.