API Reference
API Reference
OpenAPI-driven reference for the xPath REST API.
Overview
Fundamentals of the xPath API.
Base URL
xPath's API follows REST principles and is served over HTTPS.
The base URL for all API endpoints is:
https://api.xpath.rath.fiAuthentication
xPath requires an API key via the custom HTTP header api-key.
- Every request must include
api-key. - Missing or invalid keys return
401.
For API key access, fill out the form.
If integrating directly with the API, send the header like this:
curl --request GET \
--url 'https://api.xpath.rath.fi/quote?fromChain=8453&toChain=42161&fromToken=0x4200000000000000000000000000000000000006&toToken=0xaf88d065e77c8cC2239327C5EDb3A432268e5831&amount=1000000000000000000&sender=0x1111111111111111111111111111111111111111&routeMode=suggested' \
--header 'api-key: YOUR_API_KEY'