# Request User Verification

If you want your White Label users to verify the provided emails then you can use the following example to do so. To use this however you need to have enabled account verification in the [Platform Settings](https://console.lootlocker.com/settings/platforms/white_label_login).

{% tabs %}
{% tab title="Unity" %}
{% hint style="warning" %}
This requires you to have enabled Account Verification in [Platform Settings](https://console.lootlocker.com/settings/platforms/white_label_login).
{% endhint %}

```csharp
// Remember to use the LootLocker namespace in the top of your file.
using LootLocker.Requests;

// This code should be placed in a handler when the user verifies their email.
int userId = 1234;
LootLockerSDKManager.WhiteLabelRequestVerification(userId, (response) =>
{
    if (!response.success)
    {
        Debug.Log("error requesting account verification");

        return;
    }

    Debug.Log("account verification requested successfully");
});
```

{% endtab %}

{% tab title="Unreal" %}
{% hint style="warning" %}
This requires that you have [set up the Unreal SDK in your game.](/the-basics/unreal-quick-start.md)
{% endhint %}

{% hint style="warning" %}
This requires you to have enabled Account Verification in [Platform Settings](https://console.lootlocker.com/settings/platforms/white_label_login).
{% endhint %}

<figure><img src="/files/QrTh9UD6sdKiDqT1pPFO" alt="Shows an example of how to implement account verification for a White Label user in Unreal Blueprints - see link: https://blueprintue.com/blueprint/mhgc3j5y/"><figcaption><p><a href="https://blueprintue.com/blueprint/mhgc3j5y/">Blueprint example of account verification for a White Label User</a></p></figcaption></figure>

Above is an example of how to implement account verification for a White Label user using blueprints in Unreal Engine. For an example you can copy and paste into your editor, [look here](https://blueprintue.com/blueprint/mhgc3j5y/).

**Input**

You need to exchange the `TriggerWhiteLabelUserVerification`event for whatever event you want to use to trigger the login flow.

You also need to replace the node `REPLACE: Input` with the users id.

**Output**

We recommend branching the completed events on the success flag, and if you do this you will probably want to add error handling in case the request fails as well as what (if any) continued actions you want on success.
{% endtab %}

{% tab title="Godot" %}
{% hint style="warning" %}
This requires you to have enabled Account Verification in [Platform Settings](https://console.lootlocker.com/settings/platforms/white_label_login).
{% endhint %}

```gdscript

var response = await LL_WhiteLabel.RequestVerification.new("an-email").send()
if(!response.success) :
    # Request failed, handle errors
    pass
else:
    # Request succeeded, use response as applicable in your game logic
    pass
```

{% endtab %}

{% tab title="REST" %}

```bash
curl -X POST "https://api.lootlocker.io/white-label-login/request-verification" \
  -H "domain-key: 11aaa11" \
  -H "is-development: true" \
  -H "Content-Type: application/json" \
  -d "{\"user_id\": 406}"
```

This will return a 204 without a body response.
{% endtab %}
{% endtabs %}


---

# 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.lootlocker.com/players/white-label-login/how-to/request-user-verification.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.
