> 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"
}'
```
