# Query facial recognition results
Invoke this API to send a request to the Feishu backend to verify the results of the live person comparison，supporting querying active face comparison and passive face comparison results.
Face comparison access needs to apply for a whitelist, please contact Feishu open platform staff before accessing, email: open-platform@bytedance.com.

## Request

Facts | &nbsp;
---|---
HTTP URL | https://open.feishu.cn/open-apis/face_verify/v1/query_auth_result
HTTP Method | GET

### 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|Mandatory|Description|
|--|-----|--|----|
|req_order_no|string|Yes|The single, unique facial recognition order ID, obtained from the tt.startFaceVerify API|
|open_id|string|No|User’s app ID; use this or the employee_id|
|employee_id|string|No|User's ID under the tenant; use this or the open_id|
|ticket_type|string|No|face comparison mode identifier, can take the value 'verify' or be empty; 'verify' indicates querying active face comparison results, while the default value represents querying passive face comparison results.|
How to obtain `open_id` and `employee_id` (known as `user_id`) can be found in the document: [How to get ID](https://open.feishu.cn/document/home/user-identity-introduction/open-id)

## Response

### Response body
|Parameter|Description|
|--|----|
|code|Response code, anything but 0 indicates failure|
|msg|Response information, response code description|
|data|Service data|
|&emsp;∟auth_state |Verification result. 0: verifying, 1: verification successful, -1: verification failed|
|&emsp;∟auth_timpstamp |Verification time, unix timestamp|

### Response body example
```json
{ 
    "code": 0, 
    "msg": "ok", 
    "data":{
        "auth_state": 0/1/-1,
        "auth_timestamp": 1559714887
    }
}
```

### Error code
|Error code|Description|Troubleshooting suggestions|
|--|-----|--|
|10100|invalid request|check if the request parameter is empty|
|10101|internal error|please retry|