> 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/quickstart.md).

# Quickstart

A simple integration workflow:

* Get [supported sources/networks](/api/api-integration/deprecated-v1-api-reference/get-available-networks.md),[ available routes](/api/api-integration/deprecated-v1-api-reference/get-available-routes.md) and [swap fees](/api/api-integration/deprecated-v1-api-reference/get-swap-rate.md)

* [Create Swap](/api/api-integration/deprecated-v1-api-reference/create-swap.md) using the Layerswap API&#x20;

* Layerswap will monitor the source network for a transaction and will try to match it with the corresponding swap

* Once the transaction is matched and added to the swap, Layerswap will initiate a counterparty transaction to the `destination_address`

* (Optionally) Poll via [Get Swap](/api/api-integration/deprecated-v1-api-reference/get-swap.md) endpoint to see if the matching transaction Input was added to the swap

* If the [webhook is configured](/api/api-integration/webhooks.md), Layerswap will deliver a swap status update notification to the partner-specified URL

## Starter Kit

**Postman Collection:**&#x20;

<https://github.com/layerswap/layerswap-sdk-starter-kit/blob/main/postman_collection.json> \
\
**End-to-End Backend + Frontend Integration:**&#x20;

[https://github.com/layerswap/layerswap-sdk-starter-kit/](https://github.com/layerswap/layerswap-sdk-starter-kit/blob/main/postman_collection.json)

**Swagger docs:**&#x20;

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

## Examples to get started

#### Get Available Networks

```sh
curl -X 'GET' \
  'https://api.layerswap.io/api/available_networks' \
  -H 'accept: application/json'
```

#### Create Swap

```sh
curl --location 'https://api.layerswap.io/api/swap' \
--header 'X-LS-APIKEY: {YOUR_APP_APIKEY}' \
--header 'Content-Type: application/json' \
--data '{
    "source": "ETHEREUM_MAINNET",
    "destination": "IMX_MAINNET",
    "amount": 0.001,
    "asset": "ETH",
    "source_address": "0x690B9A9E9aa1C9dB991C7721a92d351Db4FaC990",
    "destination_address": "0xe688b84b23f322a994A53dbF8E15FA82CDB71127",
    "refuel": false,
    "reference_id": "1"
}'
```
