This topic describes how to set up the server for FACE_GUARD.
API description
API operation: FaceGuardRisk
Request methods: POST and GET
Transport protocol: HTTPS
- Important
FACE_GUARD is billed based on the number of successful queries. To avoid duplicate charges, do not resubmit a query for a device token that has already succeeded.
QPS limit: This API is subject to an exclusive queries per second (QPS) limit. For more information, see ID Verification server-side API QPS limits.
Global access endpoints:
NoteAn internal network is a private communication network between Alibaba Cloud products in the same region. If your application server is deployed in an Alibaba Cloud region, you can use the internal endpoint to access the ID Verification service. This provides a more secure and stable network connection.
To meet data collection compliance requirements in different regions, Device Guard provides different data reporting sites. Data is isolated between different sites.
The client specifies different reporting sites by setting CustomUrl and CustomHost. The server must access the domain name that corresponds to the site reported by the client to retrieve the details.
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 debug and integrate, read the Use OpenAPI Explorer to debug and integrate server-side API operations document. It explains how to call API operations on the OpenAPI platform and how to obtain the SDK and its sample code.
You can run this API operation in OpenAPI Explorer for debugging. You can also generate an SDK code sample for this operation.
Request parameters
Parameter | Type | Required | Description | Example |
ProductCode | String | Yes | The product code. Set this to the static field FACE_GUARD. | FACE_GUARD |
MerchantBizId | String | Yes | A custom unique business identifier. It is used to locate and troubleshoot issues. The identifier can be a combination of letters and digits up to 32 characters long. Ensure that it is unique. | e0c34a77f5ac40a5aa5e6ed20c35**** |
DeviceToken | String | Yes | The deviceToken obtained from the client SDK. | Tk9SSUQuMS*****************ZDNmNWY5NzQxOW1o |
BizId | String | No | The unique ID of the current business authentication. It is used with FACE_GUARD for verification during queries. | 1000******0001 |
Response parameters
Name | Type | Description | Example |
RequestId | String | The request ID. | 130A2C10-B9EE-4D84-88E3-5384FF03**** |
Code | String | The return code. A value of Success indicates that the request was successful. For more information about other possible values, 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. | e0c34a77f5ac40a5aa5e6ed20c35**** |
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 Device Guard algorithm. A higher score indicates a higher device risk. Valid values: 0 to 100. | 99 |