> For the complete documentation index, see [llms.txt](https://truecaller4developers.gitbook.io/truecaller-sdk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://truecaller4developers.gitbook.io/truecaller-sdk/android/oauth-sdk-3.0/integration-steps/integrating-with-your-backend/fetching-user-profile.md).

# Fetching User Profile

Make a network call to fetch the userInfo using access token from step 14. The response would be corresponding to the scopes granted by the user.

<mark style="color:blue;">`GET`</mark> `https://oauth-account-noneu.truecaller.com/v1/userinfo`

#### Headers

| Name                                            | Type                      | Description                                                      |
| ----------------------------------------------- | ------------------------- | ---------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | "Bearer \<ACCESS\_TOKEN>" | Insert access token from the previous step - fetching user token |

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

&#x20;   “sub”: “13627101294235520",\
&#x20;   “given\_name”: “abc”,\
&#x20;   “family\_name”: “xyz”,\
&#x20;   “gender”: “male/female”, \
&#x20;   “birthdate”: “YYYY-MM-DD”, \
&#x20;   “picture”: “<https://www.truecaller.com/xyz”,\\>
&#x20;   “email”: “<pqr@gmail.com>”,\
&#x20;   “phone\_number”: “91xxxxxxxxxx",\
&#x20;   “phone\_number\_verified”: true,\
&#x20;   “phone\_number\_country\_code”: “IN”,\
&#x20;   “address”:\
&#x20;    {\
&#x20;       “locality”: “Bangalore”,\
&#x20;       “postal\_code”: “5xxxxx"\
&#x20;   }

}<br>
{% endtab %}

{% tab title="401: Unauthorized If authentication type is not bearer token" %}
{\
&#x20; "status": 40110,\
&#x20; "message": "Wrong authentication type"\
}
{% endtab %}

{% tab title="404: Not Found Profile information is not present for the user" %}
{\
&#x20; "status": 40409,\
&#x20; "message": "Profile not found"\
}
{% endtab %}

{% tab title="500: Internal Server Error Failed to validate token due toserver error" %}
{\
&#x20; "status": 50010,\
&#x20; "message": "Auth service error"\
}
{% endtab %}

{% tab title="401: Unauthorized Token in invalid/ expired" %}
{\
&#x20; "error": 40110,\
&#x20; "error\_description": "Unauthorized"\
}
{% endtab %}

{% tab title="422: Unprocessable Entity openid scope missing in initial request" %}
{\
&#x20; "error": 42201,\
&#x20; "error\_description": "Missing profile data"\
}
{% endtab %}

{% tab title="500: Internal Server Error Unexpected error at server side" %}
{\
&#x20; "error": 50001,\
&#x20; "error\_description": \<reason>\
}
{% endtab %}
{% endtabs %}

**Sample cURL request :**&#x20;

```
curl --location --request GET 'https://oauth-account-noneu.truecaller.com/v1/userinfo' \
--header 'Authorization: Bearer testtoken'
```

<br>
