# \[API] Get User Info

## Get User Info

<mark style="color:green;">`POST`</mark> `[UIAS-SERVER-HOST]/api/v3/user/info`

#### Request Body

| Name      | Type   | Description       |
| --------- | ------ | ----------------- |
| token     | string | redirectURL token |
| appId     | string | your app id       |
| appSecret | string | your app secret   |

{% tabs %}
{% tab title="200 success to found user info" %}
{% tabs %}
{% tab title="JSON" %}

```http
{"code":200,"message":"success","data":{"userInfo":{"id":167993976311808,"userName":"super","nickName":"小生蚝","status":1,"roleId":"df5237c0-1a46-8bcb-7e15-35f16e3630fe","phone":"13300000000","email":"test@test.com","extraParam":[],"createTime":"2020-07-12 10:24:32","lastLogin":"2021-08-22 12:40:35","roleName":"超级管理员","userGroup":[{"group_id":336118017470464,"name":"生蚝科技开发者"}],"userGroupIds":[336118017470464]}},"tips":"成功","requestTime":1629609174}
```

{% endtab %}
{% endtabs %}
{% endtab %}

{% tab title="404 Token not found" %}
{% tabs %}
{% tab title="JSON" %}

```
{"code":404,"message":"Token not found","data":[],"tips":"Token不存在","requestTime":1629609078}
```

{% endtab %}
{% endtabs %}
{% endtab %}
{% endtabs %}


---

# 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://zjhit0409.gitbook.io/oystertech/master.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.
