# 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 |


---

# 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://talque.gitbook.io/public/sso/oauth2-flow/authorized-requests.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.
