Domain name for API request: faceid.intl.tencentcloudapi.com.
Before each call to the Web verification service, you need to call this API to obtain a BizToken and save it for initiating the verification process. After the verification is completed, the BizToken is used to obtain the result information. The BizToken is valid for 10 minutes.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
| Parameter Name | Required | Type | Description |
|---|---|---|---|
| Action | Yes | String | Common Params. The value used for this API: ApplyWebVerificationBizTokenIntl. |
| Version | Yes | String | Common Params. The value used for this API: 2018-03-01. |
| Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
| RedirectURL | Yes | String | The Web redirect URL after verification, including the protocol header, host name, and path, for example, https://www.tencentcloud.com/products/faceid. |
| CompareImageBase64 | No | String | Base64-encoded string of the comparison photo. The Data URI scheme header needs to be removed from the encoded string, and the size cannot exceed 8 MB. |
| Extra | No | String | Business passthrough parameter, with a maximum length of 1,000 characters. It is returned in the GetWebVerificationResultIntl API. |
| RuleId | No | String | Id generated in the console configuration |
| Config | No | WebVerificationConfigIntl | Related configurations of the custom verification page. |
| Parameter Name | Type | Description |
|---|---|---|
| BizToken | String | The token that identifies a Web verification process, valid for 10 minutes. After the process is completed, this token can be used to obtain the verification result information. |
| VerificationURL | String | The URL of the current verification process. After it is returned to the browser frontend, open this URL to start the verification process. |
| RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to apply for a Web verification service Token.
POST / HTTP/1.1
Host: faceid.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ApplyWebVerificationBizTokenIntl
<Common request parameters>
{
"RedirectURL": "https://www.tencentcloud.com/products/faceid",
"Config": {
"CheckMode": 1,
"IDCardType": "MainlandIDCard"
}
}
{
"Response": {
"BizToken": "584D404C-F1C3-401C-961E-78C6EF90BDDB",
"VerificationURL": "https://intl-test.faceid.qq.com/reflect/?token=584D404C-F1C3-401C-961E-78C6EF90BDDB",
"VerificationUrl": "https://intl-test.faceid.qq.com/reflect/?token=584D404C-F1C3-401C-961E-78C6EF90BDDB",
"RequestId": "1334f124-317f-4ea0-969e-19fba57f568a"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
| Error Code | Description |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| InvalidParameterValue | Parameter value error. |
| RequestLimitExceeded | The number of requests exceeds the frequency limit. |
| UnauthorizedOperation.ActivateError | Service activation error. |
| UnauthorizedOperation.Activating | The service is being activated. |
| UnauthorizedOperation.Arrears | The account is in arrears. |
| UnauthorizedOperation.Nonactivated | The service is not activated. |
フィードバック