API Reference
API Reference
OpenAPI-driven reference for the xPath REST API.
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'End-to-End Transaction Example
Follow a complete xPath flow from quote to execution and status tracking.
Get all supported chains
Returns the xPath supported chain set, including native token metadata, public RPC and explorer URLs, xPath contract address, and enabled routing features for Base, Arbitrum, and HyperEVM.