# Monetization

To monetize your integration, follow the steps below to register and set up your affiliate configuration.

### Step 1: Register in the SwapKit Partner's Dashboard

To request an API Key registration, please [contact us here](https://partnerships.swapkit.dev/) and schedule a short call with us.

### Step 2: Configure the API Key

The API key must be configured with specific addresses to monetize the integration. After connecting your wallet, you should register an affiliate identifier for each of the three cross-chain providers:

* **THORName** for THORChain
* **MAYAName** for MAYAChain
* **Chainflip Broker** for Chainflip
* **NEAR name** for NEAR.

**THORName and MAYAName**

* **THORName** and **MAYAName** are aliases to your address similar to ENS in the Ethereum chain. For our usecase, they must have a maximum of **three characters**, including letters and the characters `-_+`.
* You can select a preferred asset among those traded on the respective provider so that the fees are automatically be received in that asset.
* The payout address can be customized if you prefer a different address from the one that registered the alias.

### Step 3: Set Affiliate fee tiers

You can define **affiliate fee tiers** in their configuration. Each fee tier is based on transaction value (in USD), and a different fee in **basis points (bps)** can be set for each tier. 1 bps equals 0.01%.\
The fee tiers can be applied globally or specifically for each provider.

<figure><img src="/files/Y70GA7Sw8zQ57s0wYp6l" alt=""><figcaption><p>Example of tier settings.</p></figcaption></figure>

### Step 4: Monetize API requests

When making requests to the `/swap`  endpoint, use the **`x-api-key`** header with the generated API key. The affiliate fee tier will be applied automatically, ensuring you earn the configured fees for each transaction. There is no need to pass the specific affiliate settings when requesting a `/swap` if it is already set up using our dashboard.


---

# 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://docs.swapkit.dev/monetization.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.
