# Nonce

Nonce is a random string used to authenticate the users. The nonce that is not used is cleared at regular intervals.

<mark style="color:green;">`POST`</mark> `/api/auth/nonce`

#### Request Body

| Name                                              | Type   | Description                                                                                                                                                                                                               |
| ------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| wallet\_address<mark style="color:red;">\*</mark> | String | Public wallet address                                                                                                                                                                                                     |
| profile                                           | Object | <p>Only the first time a profile is accepted</p><p></p><p>{</p><p>   name: "User name",</p><p>   email: "user email address",</p><p>   custom: \[</p><p>    { name: "field\_name", value: "value }</p><p>   ]</p><p>}</p> |

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

```javascript
{
   "nonce": "GEVGREGER"
}
```

{% endtab %}

{% tab title="400: Bad Request " %}

```javascript
{
    "error": "Wallet address not found on allowlist"
}
```

{% endtab %}
{% endtabs %}
