> For the complete documentation index, see [llms.txt](https://docs.oswap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.oswap.io/guides/custom-linking.md).

# Custom linking

## Get front page

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/`

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/
```

{% endtab %}
{% endtabs %}

## Get specific swap pair

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/swap/:identifier`

#### Path Parameters

| Name       | Type   | Description                                                                                |
| ---------- | ------ | ------------------------------------------------------------------------------------------ |
| identifier | string | Load the input asset and output asset from pool or load output asset from encoded asset ID |

#### Query Parameters

| Name    | Type    | Description                                                 |
| ------- | ------- | ----------------------------------------------------------- |
| reverse | boolean | Flips the input asset with output asset if it has any value |

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/swap/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H?reverse=1 <!-- pool address -->
https://oswap.io/#/swap/P+bT6OZY/eR765RrBORfAUl27FU/pAU10GMkuLc3s9U= <!-- not encoded, no url parameters -->
https://oswap.io/#/swap/P-bT6OZY_eR765RrBORfAUl27FU_pAU10GMkuLc3s9U <!-- base64url -->
https://oswap.io/#/swap/P%2BbT6OZY%2FeR765RrBORfAUl27FU%2FpAU10GMkuLc3s9U%3D <!-- encodeURIComponent -->
```

{% endtab %}
{% endtabs %}

## Swap and send to address

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/send/:poolAddress`

#### Path Parameters

| Name        | Type   | Description                                     |
| ----------- | ------ | ----------------------------------------------- |
| poolAddress | string | Load the input asset and output asset from pool |

#### Query Parameters

| Name    | Type    | Description                                                 |
| ------- | ------- | ----------------------------------------------------------- |
| reverse | boolean | Flips the input asset with output asset if it has any value |
| to      | string  | Wallet address                                              |

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/send?to=FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF <!-- just "to" address -->
https://oswap.io/#/send/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H?reverse=1&to=FAB6TH7IRAVHDLK2AAWY5YBE6CEBUACF <!-- pool address with "to" address -->
```

{% endtab %}
{% endtabs %}

## Create new pool with asset

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/create-pool/:assetId`

#### Path Parameters

| Name    | Type   | Description                 |
| ------- | ------ | --------------------------- |
| assetId | string | Unit ID of asset definition |

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/create-pool/P+bT6OZY/eR765RrBORfAUl27FU/pAU10GMkuLc3s9U= <!-- not encoded -->
https://oswap.io/#/create-pool/P-bT6OZY_eR765RrBORfAUl27FU_pAU10GMkuLc3s9U <!-- base64url -->
https://oswap.io/#/create-pool/P%2BbT6OZY%2FeR765RrBORfAUl27FU%2FpAU10GMkuLc3s9U%3D <!-- encodeURIComponent -->
```

{% endtab %}
{% endtabs %}

## Add liquidity to pool (both assets)

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/add-liquidity/:poolAddress`

#### Path Parameters

| Name        | Type   | Description        |
| ----------- | ------ | ------------------ |
| poolAddress | string | Address of pool AA |

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/add-liquidity
https://oswap.io/#/add-liquidity/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H
```

{% endtab %}
{% endtabs %}

## Add liquidity to pool (one asset)

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/add-liquidity-2/:poolAddress`

#### Path Parameters

| Name        | Type   | Description        |
| ----------- | ------ | ------------------ |
| poolAddress | string | Address of pool AA |

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/add-liquidity-2/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H
```

{% endtab %}
{% endtabs %}

## Remove liquidity from pool

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/remove-liquidity/:poolAddress`

#### Path Parameters

| Name        | Type   | Description        |
| ----------- | ------ | ------------------ |
| poolAddress | string | Address of pool AA |

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/remove-liquidity/AR3SHS7SFH3PF6ZM6UIF7HWIV44TZ46H
```

{% endtab %}
{% endtabs %}

## Get all pools

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/pools`

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/pools
```

{% endtab %}
{% endtabs %}

## Get pools that contain specific asset

<mark style="color:blue;">`GET`</mark> `https://oswap.io/#/asset/:assetId`

#### Path Parameters

| Name    | Type   | Description                 |
| ------- | ------ | --------------------------- |
| assetId | string | Unit ID of asset definition |

{% tabs %}
{% tab title="200 " %}

```markup
https://oswap.io/#/asset/P+bT6OZY/eR765RrBORfAUl27FU/pAU10GMkuLc3s9U= <!-- not encoded -->
https://oswap.io/#/asset/P-bT6OZY_eR765RrBORfAUl27FU_pAU10GMkuLc3s9U <!-- base64url -->
https://oswap.io/#/asset/P%2BbT6OZY%2FeR765RrBORfAUl27FU%2FpAU10GMkuLc3s9U%3D <!-- encodeURIComponent -->
https://oswap.io/#/asset/base <!-- Obyte Bytes -->
```

{% endtab %}
{% endtabs %}
