> For the complete documentation index, see [llms.txt](https://talque.gitbook.io/public/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://talque.gitbook.io/public/sso/oauth2-flow/authorized-requests.md).

# Authorized Requests

With the access token, you can make authorized requests for user information according to the scope(s) of the grant.

## Retrieve User Information

<mark style="color:green;">`POST`</mark> `https://www.talque.com/oauth2/info`

This endpoint returns the user information according to the scope(s) of the grant

#### Headers

| Name          | Type   | Description                          |
| ------------- | ------ | ------------------------------------ |
| Authorization | string | Must be "Bearer " + the access token |

{% tabs %}
{% tab title="200 Return a JSON-encoded dictionary" %}

```javascript
{
    "firstName": "Werner"
    "lastName": "Heisenberg",
    "email": "wh@example.com",
    "companyName": "Max Planck Institute for Physics",
    "jobTitle": "Professor",
    "photo": "https://example.com/path/to/photo.jpg",
    "ctime": -2148253200000,
}
```

{% endtab %}
{% endtabs %}

The response json fields depend on the scope of the grant. Currently. these are

| Key         | Value  | Note                                          | Scope   |
| ----------- | ------ | --------------------------------------------- | ------- |
| email       | string | The validated email address                   | EMAIL   |
| firstName   | string | User fist (given) name                        | PROFILE |
| lastName    | string | User last (family) name                       | PROFILE |
| companyName | string | Employment details                            | PROFILE |
| jobTitle    | string | Employment details                            | PROFILE |
| photo       | string | Serving url of profile photo                  | PROFILE |
| ctime       | number | Account creation time as javascript timestamp | PROFILE |
