# Obtain information of reviewees

Obtain information of individuals selected for projects (including uninitiated projects) during the performance cycle

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/performance/v2/reviewees/query
HTTP Method | POST
Rate Limit | [20 per minute](https://open.feishu.cn/document/ukTMukTMukTM/uUzN04SN3QjL1cDN)
Supported app types | Custom App、Store App
Required scopes<br>**To use this API, you must have at least 1 of the listed scopes.**<br>Enable any scope from the list | Manage performance information(performance:performance)<br>View performance information(performance:performance:readonly)<br>Get cycle participant info(performance:semester_user:read)
Required field scopes | **Notice**：The response body of the API contains the following sensitive fields, and they will be returned only after corresponding scopes are added. If you do not need the fields, it is not recommended that you request the scopes.<br>Obtain user ID(contact:user.employee_id:readonly)

### Request header

Parameter | Type | Required | Description
---|---|---|---
Authorization | string | Yes | `tenant_access_token`<br>**Value format**: "Bearer `access_token`"<br>**Example value**: "Bearer t-7f1bcd13fc57d46bac21793a18e560"<br>[How to choose and get access token](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-choose-which-type-of-token-to-use)
Content-Type | string | Yes | **Fixed value**: "application/json; charset=utf-8"

### Query parameters

Parameter | Type | Required | Description
---|---|---|---
user_id_type | string | No | User ID categories<br>**Example value**: open_id<br>**Optional values are**:<br>- open_id：Identifies a user to an app. The same user has different Open IDs in different apps. [How to get Open ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-openid)<br>- union_id：Identifies a user to a tenant that acts as a developer. A user has the same Union ID in apps developed by the same developer, and has different Union IDs in apps developed by different developers. A developer can use Union ID to link the same user's identities in multiple apps.[How to get Union ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-union-id)<br>- user_id：Identifies a user to a tenant. The same user has different User IDs in different tenants. In one single tenant, a user has the same User ID in all apps （including store apps）. User ID is usually used to communicate user data between different apps. [How to get User ID](https://open.feishu.cn/document/uAjLw4CM/ugTN1YjL4UTN24CO1UjN/trouble-shooting/how-to-obtain-user-id)<br><md-enum-item key="people_admin_id" ><br>**Default value**: `open_id`<br>**When the value is `user_id`, the following field scopes are required**:<br>Obtain user ID(contact:user.employee_id:readonly)
page_token | string | No | Page identifier. It is not filled in the first request, indicating traversal from the beginning; when there will be more groups, the new page_token will be returned at the same time, and the next traversal can use the page_token to get more groups<br>**Example value**: eVQrYzJBNDNONlk4VFZBZVlSdzlKdFJ4bVVHVExENDNKVHoxaVdiVnViQT0=
page_size | int | No | paging size<br>**Example value**: 30<br>**Default value**: `20`<br>**Data validation rules**:<br>- Value range: `1` ～ `50`

### Request body

Parameter | Type | Required | Description
---|---|---|---
semester_id | string | Yes | Cycle ID, only 1 cycle is allowed to be queried at a time, semester_id can be obtained through the [[Get Cycle](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v1/semester/list)] interface<br>**Example value**: "6992035450862224940"
user_ids | string\[\] | No | User ID, the type needs to be consistent with the user_id_type in the query parameters. If not specified, it will by default return the information of all reviewees in this semester.<br>**Example value**: ["ou_3245842393d09e9428ad4655da6e30b3"]<br>**Data validation rules**:<br>- Length range: `0` ～ `50`
activity_ids | string\[\] | No | The project ID list can be obtained through [get the project list](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/performance-v2/activity/query)<br>Interface to obtain and query the information of the evaluated person under the specified project<br>**Example value**: ["7266780609384392723"]

### Request body example
```json
{
    "semester_id": "6992035450862224940",
    "user_ids": [
        "ou_3245842393d09e9428ad4655da6e30b3"
    ],
    "activity_ids": [
        "7266780609384392723"
    ]
}
```

## Response

### Response body

Parameter | Type | Description
---|---|---
code | int | Error codes, fail if not zero
msg | string | Error descriptions
data | \- | \-
semester_id | string | Cycle ID
reviewees | reviewee\[\] | List of evaluates
reviewee_user_id | user | Assessor ID
open_id | string | User's open_id
user_id | string | The user's user_id, the value is consistent with user_id_type
activity_ids | string\[\] | Projects in which the person being evaluated is involved
reviewprofile_url | string | Link to the performance details page of the reviewee during this semester. If the involved project has not been initiated, then it would be empty.
has_more | boolean | Whether the response body has more parameters
page_token | string | Page identifier, when has_more is true, a new page_token will also be returned. Otherwise, page_token will not be returned

### Response body example
```json
{
    "code": 0,
    "msg": "success",
    "data": {
        "semester_id": "7291278856547794964",
        "reviewees": [
            {
                "reviewee_user_id": {
                    "open_id": "od-asd2dasdasd",
                    "user_id": "ou-ux987dsf6x"
                },
                "activity_ids": [
                    "7376847302857555971"
                ],
                "reviewprofile_url": "https://performance.feishu.cn/perf/profile?rootReviewId=7380183500051202067"
            }
        ],
        "has_more": true,
        "page_token": "eVQrYzJBNDNONlk4VFZBZVlSdzlKdFJ4bVVHVExENDNKVHoxaVdiVnViQT0="
    }
}
```

### Error code

HTTP status code | Error code | Description | Troubleshooting suggestions
---|---|---|---
500 | 1580101 | internal error | Internal error, please try again later, it still appears You can [consult customer service](https://applink.feishu.cn/client/helpdesk/open?id=6626260912531570952&extra=%7B%22channel%22%3A14%2C%22created_at%22%3A1614493146%2C%22scenario_id%22%3A6885151765134622721%2C%22signature%22%3A%22ca94c408b966dc1de2083e5bbcd418294c146e98%22%7D)
400 | 1580102 | param is invalid | Request parameter error. Check if the request parameters are valid
400 | 1580105 | invalid semester ID | Semester ID does not exist
400 | 1580107 | page token invalid | The page token does not exist, please check if the page_token imported parameter is correct. Suggestion: The `page_token` returned by this API is already URL-encoded. Some debugging platforms (e.g., the Feishu Open Platform API Explorer) re-encode it, which causes this error. Try URL-decoding the `page_token` first before passing it as a parameter.
400 | 1580108 | page token expired | The page token has expired, please retrieve page_token
400 | 1580901 | tenant no licnese | The tenant has no performance seat, please contact the tenant administrator to open a performance seat.

