> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leokit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Integrating LeoKit

> Step-by-step guide to add cross-chain swaps to your app

Add cross-chain swaps to your wallet or app in minutes.

### 1. Get Your API Key

Log in to the [LeoKit Dashboard](https://dash.leokit.dev/admin/login) → **API Keys** → Create New Key.

Copy the key and keep it secure — you'll use it in every request.

### 2. Fetch a Quote

Call the `/quote` endpoint to get the best routes across all protocols.

```bash theme={null}
curl -H "Api-Key: YOUR_API_KEY" \
  "https://api.leokit.dev/quote?from_asset=ETH.ETH&to_asset=BTC.BTC&amount=1000000000000000000&origin=0x0000000000000000000000000000000000000000&destination=bc1q00000000000000000000000000000000000000"
```

See full details in [Get Quote](/api-reference/endpoint/get-quote).

### 3. Display the QuoteParse the response and show users:

* Expected output amount
* Route (e.g., "via THORChain")
* Your fee (added on top)

Use the quote with the highest expectedAmountOutNum or preferred flags (FASTEST, CHEAPEST).

### 4. Execute the Swap

When ready, use /swap to perform the transaction.

Full details in [Generate Deposit](/api-reference/endpoint/generate-deposit) and [Transaction Status](/api-reference/endpoint/transaction-status).

### Test It Out

Try live swaps powered by LeoKit at LeoDex.io.

Questions? Reach out via the [landing page](https://leokit.dev/).
