ID Verification supports end-to-end log monitoring. You can query the logs for incomplete facial recognition processes using a TransactionId. The query results can help you analyze the reasons for user churn. This API operation is free of charge.
API description
This API operation queries the complete log of an authentication process.
This API operation can query logs only for solutions that use client-side integration. It does not support solutions that use only server-side integration.
The client-side software development kit (SDK) for authentication must be version 1.2.6 or later. The Web SDK must also be the latest version. We recommend that you use the latest versions available.
Because logs are reported asynchronously during the authentication process, you must wait for the 30-minute validity period of the authentication TransactionId to expire before you query the logs.
By default, ID Verification service records are stored for 30 days. The system automatically deletes expired records. Therefore, you must query authentication records within 30 days after the authentication process is complete.
API operation name: CheckVerifyLog
Request method: POST
Transport protocol: HTTPS
Endpoint:
NoteAn internal same-region endpoint is used for communication between Alibaba Cloud products within the same region. If your business server is deployed in the same Alibaba Cloud region, you can use an internal same-region endpoint to access the ID Verification service for more secure and stable network communication.
Different ID Verification product solutions support different regions. Data is isolated between regions. You must select the API operation domain name that corresponds to the region where your data is located to access it.
Singapore
Public endpoint:
cloudauth-intl.ap-southeast-1.aliyuncs.comInternal same-region endpoint:
cloudauth-intl-vpc.ap-southeast-1.aliyuncs.com
Indonesia
Public endpoint:
cloudauth-intl.ap-southeast-5.aliyuncs.comInternal same-region endpoint:
cloudauth-intl-vpc.ap-southeast-5.aliyuncs.com
China (Hong Kong)
Public endpoint:
cloudauth-intl.cn-hongkong.aliyuncs.comInternal same-region endpoint:
cloudauth-intl-vpc.cn-hongkong.aliyuncs.com
Online debugging and integration
Before you start debugging and integration, review the Use OpenAPI to debug and integrate server-side APIs document to learn how to call API operations on the OpenAPI platform and obtain the SDK and sample code.
You can run this API operation in OpenAPI Explorer to debug it, and generate an SDK code sample.
Request parameters
Name | Type | Required | Description | Example |
MerchantBizId | String | Yes | A custom unique business identifier that you provide. It is used for subsequent troubleshooting. It can be a combination of letters and digits up to 32 characters in length. Make sure it is unique. Note Alibaba Cloud servers do not check the uniqueness of this field's value. To better track requests, we strongly recommend that you ensure the uniqueness of this field. | e0c34a77f5ac40a5aa5e6ed20c****** |
TransactionId | String | Yes | The unique identifier for the entire authentication process. Obtain this value by calling the Initialize API operation. | 80414a5e6ed20c37ac40a7f55a****** |
Response parameters
Name | Type | Description | Example |
RequestId | String | The request ID. | |
Code | String | The return code. | |
Message | String | A detailed description of the return code. | |
Result | Object | The log content. For more information about the parameters, see the Result table below. |
Result
Name | Type | Required | Description |
VerifyStatus | String | Yes | The authentication status. Valid values:
|
LogInfo | List<String> | No | Details of the SDK runtime logs. Format: [
] |
LogInfoEn | List<String> | No | Details of the SDK runtime logs, in English. This field has the same format as LogInfo. |
Passed | String | No Note This parameter is returned only when VerifyStatus is 0. | The final authentication result. Valid values:
|
SubCode | String | No Note This parameter is returned only when VerifyStatus is 0. | The description of the authentication result. For information about the return values, see the SubCode description in the API documentation for the authentication solution you are using. Note For example, if you use the eKYC - Web SDK solution for authentication, see the SubCode description in the documentation for the eKYC - Web SDK - CheckResult API operation. |
InterruptPage | String | No | The last page the user was on when the authentication was interrupted. Valid values:
|
InterruptPageEn | String | No | The last page displayed when the authentication is interrupted. The valid English values are: The following unordered list shows the transformed values:
|
VerifyErrorCode | String | No | The error code for the authentication interruption:
|
LogStatisticsInfo | String | No | Details of the SDK runtime log statistics, in a JSON string format. For more information, see the LogStatisticsInfo table below. |
ExtInfo | String | No | An extension field. This is reserved. |
LogStatisticsInfo
Name | Type | Meaning | Example |
pageStayTimeInfo | Map<String,Long> | The duration the user stayed on each page, in milliseconds. Pages:
Note The duration refers to the time from when a page is rendered and displayed until the user navigates to the next page or closes the current page. | |
hasFaceOverTimes | Boolean | Indicates whether a retry pop-up appeared during the liveness detection process. | true |
faceOverTimes | Long | The number of times the user clicked Retry during the liveness detection process. | 2 |
hasOcrOverTimes | Boolean | Indicates whether the OCR process was retried. A retry occurs if the user recaptures and submits a certificate image after the server-side verification of the previous image fails. | false |
ocrOverTimes | Long | The number of times the user clicked Retry during the OCR certificate capture process. | 0 |
hasOcrEdit | Boolean | Indicates whether the user clicked to edit field information on the OCR page. | true |
ocrEditTimes | Long | The number of OCR edits. An edit is counted each time the user edits information and clicks Submit for server-side verification. | 1 |
hasOcrEditOverTimes | Boolean | Indicates whether the OCR editing process was retried. | false |
ocrEditOverTimes | Long | The number of OCR editing retries. | 0 |
hasOcrPermissionRefuse | Boolean | Indicates whether camera permission was denied for OCR. | false |
hasFacePermissionRefuse | Boolean | Indicates whether camera permission was denied for liveness detection. | false |
Return codes
HTTP status code | Code | Message description |
200 | Success | Request successful. |
400 | MissingParameter | Parameter cannot be empty. |
InvalidParameter | Invalid parameter. | |
TransactionIdInvalid | Invalid Transaction ID. | |
403 | Forbidden.RAMUserAccessDenied | You need to grant the RAM user the AliyunAntCloudAuthFullAccess permission. For more information, see Authorize RAM users to access the service. |
Forbidden.AccountAccessDenied | Ensure that you have activated ID verification and your account has no overdue payment. | |
Throttling.Api | API request is blocked due to throttling. | |
404 | ProcessNotCompleted | The entire authentication process is not completed. |
500 | InternalError | Internal system error. Provide feedback to engineers for troubleshooting. |