# Request authentication

<mark style="color:green;">`POST`</mark> `/auth/address-check`

This endpoint is designed to be executed on the server-side as part of our secure authentication process. It validates the integrity and authenticity of a wallet address using a token received during the frontend login procedure. This verification step is crucial for ensuring that the wallet address in question is legitimately associated with the current user session, enhancing the overall security of our system.

#### Request format

To initiate the verification process, a POST request should be sent to this endpoint with a JSON payload containing two key pieces of information: the `wallet` address to be verified and the `token` received from the frontend after the initial login phase.

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

<table><thead><tr><th width="210">Name</th><th>Type</th><th width="278">Description</th><th>Required</th></tr></thead><tbody><tr><td>wallet</td><td>string</td><td>requested amount </td><td>YES</td></tr><tr><td>token</td><td>string</td><td>token for verification</td><td>YES</td></tr></tbody></table>

**Response**

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

```json
{
  "status": 200,
  "valid": <true/false>
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "code": 400,
  "message": <error message>
}
```

{% endtab %}
{% endtabs %}

Once you obtain the token, follow the instructions on this page:


---

# 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.paypangea.com/login-with-paypangea/server-side-verification/request-authentication.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.
