# 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"
}'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.layerswap.io/api/api-integration/quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
