> For the complete documentation index, see [llms.txt](https://docs.en.omnibridge.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.en.omnibridge.pro/intent/swap-api.md).

# SWAP API

The integration process for Intent Trading is the same as the general OmniBrider API integration. The only difference is that some APIs require additional request parameters. For other APIs, please refer to the interfaces described in the **Integration** section above.

### 1. Exchange Rate Query API

#### API Endpoint

```id="m5r8qs"
GET https://{host}/api/v1/getBaseInfo
```

#### Additional Request Parameter

| Parameter | Required | Description |
| --------- | -------- | ----------- |
| protocols | Yes      | `intent`    |

#### Response

The response format remains unchanged.

***

### 2. Create Order API

#### API Endpoint

```id="x7n2kp"
POST https://{host}/api/v2/accountExchange
```

#### Additional Request Parameter

| Parameter | Required | Description |
| --------- | -------- | ----------- |
| protocols | Yes      | `intent`    |

#### Response

The response format remains unchanged.
