# Obtain User Info

Once the access token is obtained, it can be used to fetch the authenticated user’s information from the UAE PASS User Info API secured with bearer token (Access token obtained from previous step).

#### <mark style="color:orange;">User Info API</mark>

#### <mark style="color:orange;">Request</mark>

<mark style="color:green;">`GET`</mark> <mark style="color:green;">`https://stg-id.uaepass.ae/idshub/userinfo`</mark>

**Headers**

| Name          | Value                                           |
| ------------- | ----------------------------------------------- |
| Content-Type  | application/x-www-form-urlencoded               |
| Authorization | Bearer {access token received in previous step} |

<mark style="color:orange;">**Response**</mark>

{% hint style="success" %}
This response may change as per the scope and list of attributes allowed to share with your application)
{% endhint %}

{% tabs %}
{% tab title="200" %}
{% code overflow="wrap" %}

```json
{
"sub": "UAEPASS/7a05992e-3244-49d3-bcbc-7894cefvse53", 
"fullnameAR": "ساوميا,,,,شارما ,,", 
"gender": "Male", 
"mobile": "9715145678890",
"lastnameEN": "ABC", 
"fullnameEN": "Ram,,,,ABC,,",
"uuid": "7a05992e-3244-49d3-bcbc-7894c8fcaer5", 
"lastnameAR": "شارما ",
"idn": "78414567885323", 
"nationalityEN": "IND",
"firstnameEN": "Rami", 
"userType": "SOP3",
"nationalityAR": "هندى ", 
"firstnameAR": "ساوميا ",
"email": "abcdfggd1234@gmail.com"
}
```

{% endcode %}
{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}

{% hint style="danger" %}
Please make sure to validate the user info received after face authentication is same as logged in user through default UAE PASS authentication.
{% endhint %}


---

# 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.uaepass.ae/facial-biometric-transactions-confirmation/web-integration/integration-steps/obtain-user-info.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.
