> For the complete documentation index, see [llms.txt](https://docs.thedex.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thedex.cloud/documentation/merchant-preferences/add-wallet-to-whitelist.md).

# Add wallet to whitelist

<mark style="color:green;">`POST`</mark> `https://app.thedex.cloud/api/v1/preferences/merchant/whitelist/wallets/add`

#### Headers

| Name                                             | Type   | Description                        |
| ------------------------------------------------ | ------ | ---------------------------------- |
| X-EX-APIKEY<mark style="color:red;">\*</mark>    | String | Your API key                       |
| X-EX-PAYLOAD<mark style="color:red;">\*</mark>   | String | Body to base64                     |
| X-EX-SIGNATURE<mark style="color:red;">\*</mark> | String | Encrypted body with the secret key |

#### Request Body

```json
{ 
    "wallet":"String"
}
```

**Request JSON attributes**

| Name                                     | Type   | Description    |
| ---------------------------------------- | ------ | -------------- |
| wallet<mark style="color:red;">\*</mark> | String | Wallet address |

**Response Body (Empty JSON)**

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

{% endtab %}

{% tab title="400: Bad Request Api access included preference is turned off. Please turn on it!" %}

{% endtab %}
{% endtabs %}

**Response JSON attributes**

| Name | Type | Description |
| ---- | ---- | ----------- |
| -    | -    | -           |

**Request Curl**

```powershell
curl --location --request POST 'https://app.thedex.cloud/api/v1/preferences/merchant/whitelist/wallets/add' \
--header 'X-EX-APIKEY: <string>' \
--header 'X-EX-PAYLOAD: <string>' \
--header 'X-EX-SIGNATURE: <string>' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
    "wallet": "wallet_address"
}'
```

**Example Curl**

```powershell
curl --location --request POST 'https://app.thedex.cloud/api/v1/preferences/merchant/whitelist/wallets/add' \
--header 'X-EX-APIKEY: abcd1234apikeyexample' \
--header 'X-EX-PAYLOAD: eyJ3YWxsZXQiOiAiMHhlOWMwODAxRjdFYTNBNzFCRjBiYTRlMDI5MWQ4NTVBYTY3RmNkMkFiIn0=' \
--header 'X-EX-SIGNATURE: 8f92bcabc4ff1b3a7df6e2dc2e1bcee24d2f2c791bb7b8ec6d5b5c2e9fa32e1c' \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--data '{
    "wallet": "0xe9c0801F7Ea3A71BF0ba4e0291d855Aa67Fcd2Ab"
}'
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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.thedex.cloud/documentation/merchant-preferences/add-wallet-to-whitelist.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.
