> For the complete documentation index, see [llms.txt](https://learn.layerswap.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learn.layerswap.io/api/api-integration/deprecated-v1-api-reference.md).

# DEPRECATED - V1 API Reference&#x20;

### Endpoints

<https://api.layerswap.io/>

### Swagger

<https://api.layerswap.io/swagger>

### Authorization

For accessing Layerswap Partner API endpoints your app(s) API KEY (retrieved from [Partner Setup](/api/partner-setup.md)) should be provided in `X-LS-APIKEY` header:

`--header 'X-LS-APIKEY: {YOUR_APP_APIKEY}'`

### Endpoints

<table><thead><tr><th width="197">Name</th><th width="93">Method</th><th width="128">Auth</th><th>Url</th></tr></thead><tbody><tr><td><a href="/pages/9rnGU8VCZsmKPq9k2jj4">Get Available Networks</a></td><td>GET</td><td>No</td><td>https://api.layerswap.io/api/available_networks</td></tr><tr><td><a href="/pages/VcOAyXuKRKBfFko9XFAy">Get Available Routes</a></td><td>GET</td><td>No</td><td>https://api.layerswap.io/api/available_routes</td></tr><tr><td><a href="/pages/NAScIzBzaIyMVkAaPcKr">Get Swap Rate</a></td><td>GET</td><td>No</td><td>https://api.layerswap.io/api/swap_rate</td></tr><tr><td><a href="/pages/6OSkWxVjTtnSlHzC4Hox">Create Swap</a></td><td>POST</td><td>Yes</td><td>https://api.layerswap.io/api/swaps</td></tr><tr><td><a href="/pages/qxhql8pPeEK3RBA7lwol">Create Fast Swap</a></td><td>POST</td><td>No</td><td>https://api.layerswap.io/api/swaps/fast</td></tr><tr><td><a href="/pages/cl1ZMnk7rRZQa3DXcjcG">Prepare Swap</a></td><td>POST</td><td>Yes</td><td>https://api.layerswap.io/api/swaps/{id}/prepare</td></tr><tr><td><a href="/pages/1GKnVJYYvP9sWCfpnjYX">Get Swap</a></td><td>GET</td><td>Yes</td><td>https://api.layerswap.io/api/swaps/{id}</td></tr><tr><td><a href="/pages/oiQBTyQ5d7tSyjc1HY6D">Cancel Swap</a></td><td>DELETE</td><td>Yes</td><td>https://api.layerswap.io/api/swaps/{id}</td></tr></tbody></table>
