This topic describes how to configure your server for FACE_GUARD_PRO.
API description
API operation: FaceGuardRisk
Request method: POST or GET
Protocol: HTTPS
- Important
FACE_GUARD_PRO is billed per successful query. To avoid duplicate charges, do not submit the same Device Token for a query more than once after a successful response.
This API operation has a dedicated QPS limit. For more information, see QPS limits for ID Verification server-side API operations.
Global endpoints:
NoteAn internal network is a private communication network between Alibaba Cloud products within the same region. If your business server is deployed in an Alibaba Cloud region, you can use the internal same-region endpoint to access the ID Verification service. This provides more secure and stable network communication.
To meet data collection compliance requirements in different regions, Device Guard provides different data reporting sites. Data is isolated between these sites.
The client specifies a reporting site by setting the CustomUrl and CustomHost parameters. The server-side must use the domain name that corresponds to the site reported by the client to query and retrieve detailed information.
Singapore
Public network:
cloudauth-intl.ap-southeast-1.aliyuncs.comInternal network:
cloudauth-intl-vpc.ap-southeast-1.aliyuncs.com
Indonesia
Public network:
cloudauth-intl.ap-southeast-5.aliyuncs.comInternal network:
cloudauth-intl-vpc.ap-southeast-5.aliyuncs.com
China (Hong Kong)
Public network:
cloudauth-intl.cn-hongkong.aliyuncs.comInternal network:
cloudauth-intl-vpc.cn-hongkong.aliyuncs.com
US (Silicon Valley)
Public network:
cloudauth-intl.us-west-1.aliyuncs.comInternal network:
cloudauth-intl-vpc.us-west-1.aliyuncs.com
Germany (Frankfurt)
Public network:
cloudauth-intl.eu-central-1.aliyuncs.comInternal network:
cloudauth-intl-vpc.eu-central-1.aliyuncs.com
Malaysia (Kuala Lumpur)
Public endpoint:
cloudauth-intl.ap-southeast-3.aliyuncs.comInternal endpoint:
cloudauth-intl-vpc.ap-southeast-3.aliyuncs.com
Online testing and integration
Before you debug and integrate an API operation, see Debug and integrate server-side API operations using OpenAPI Explorer for information about how to call API operations and obtain SDKs and sample code in OpenAPI Explorer.
You can run this API operation in OpenAPI Explorer to test it and generate SDK sample code.
Request parameters
Parameter | Type | Required | Description | Example |
ProductCode | String | Yes | The product code. Set this to the static field FACE_GUARD_PRO. | FACE_GUARD_PRO |
MerchantBizId | String | Yes | A unique business identifier that you define. It is used for troubleshooting. The identifier can be up to 32 characters in length and can contain letters and digits. Ensure that the identifier is unique. | e0c34a77f5ac40a5aa5e6ed2******** |
DeviceToken | String | Yes | The deviceToken obtained from the client SDK. | Tk9SSUQuMS*****************ZDNmNWY5NzQxOW1o |
BizId | String | No | The unique ID of the current authentication. It is used with FACE_GUARD_PRO for verification during queries. | 1000******0001 |
Response parameters
Name | Type | Description | Example |
RequestId | String | The request ID. | 130A2C10-B9EE-4D84-88E3-5384******** |
Code | String | The return code. A value of 200 indicates that the API operation responded successfully. To determine the detailed authentication result, expand the Return codes section below. | Success |
Message | String | A detailed description of the return code. | success |
Result.TransactionId | String | The unique identifier for the entire authentication flow. | e0c34a77f5ac40a5aa5e6ed2******** |
Result.RiskTags | String | The device risk tags. Multiple risk tags are separated by commas ( | ROOT,VPN,HOOK |
Result.RiskExtends | String | Extended information. This is empty by default. | |
Result.GuardRiskScore | Double | The device risk probability predicted by the Face Guard algorithm. A higher score indicates a higher device risk. Valid values: 0 to 100. | 99 |