Domain name for API request: faceid.tencentcloudapi.com.
This API is used to apply for a token before calling the Identity Verification SDK service each time. This token is required for initiating the verification process and getting the result after the verification is completed.
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: ApplySdkVerificationToken. |
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. |
CheckMode | No | Integer | The verification mode. Valid values: 1: OCR + liveness detection + face comparison 2: Liveness detection + face comparison 3: Liveness detection Default value: 1 |
SecurityLevel | No | Integer | The security level of the verification. Valid values: 1: Video-based liveness detection 2: Motion-based liveness detection 3: Reflection-based liveness detection 4: Motion- and reflection-based liveness detection Default value: 4 |
IdCardType | No | String | The identity document type. Valid values: 1. HK (default): Identity card of Hong Kong (China) 2. ML: Malaysian identity card 3. IndonesiaIDCard: Indonesian identity card 4. PhilippinesVoteID: Philippine voters ID card 5. PhilippinesDrivingLicense: Philippine driver's license 6. PhilippinesTinID: Philippine TIN ID card 7. PhilippinesSSSID: Philippine SSS ID card 8. PhilippinesUMID: Philippine UMID card 9. MLIDPassport: Passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions 10..MacaoIDCard: Macao ID Card 11.ThailandIDCard: Thailand ID Card 12.MainlandIDCard: Mainland ID Card 13.SingaporeIDCard: Singapore ID Card 14.JapanIDCard: Japan ID Card 15.MLDrivingLicense: Malaysian Driving License 16.IndonesiaDrivingLicense: Indonesia Driving License 17.ThailandDrivingLicense: Thailand Driving License 18.SingaporeDrivingLicense: Singapore Driving License 19.JapanDrivingLicense: Japan Driving License 20.TaiWanIDCard:Taiwan ID Card 21.HMTPermit: exit/entry permit (card) for traveling to and from Hong Kong, Macao, or Taiwan |
CompareImage | No | String | The Base64-encoded value of the photo to compare, which is required only when CheckMode is set to 2 . |
DisableChangeOcrResult | No | Boolean | Whether to forbid the modification of the OCR result by users. Default value: false (modification allowed). (Currently, this parameter is not applied.) |
DisableCheckOcrWarnings | No | Boolean | Whether to disable the OCR warnings. Default value: false (not disable), where OCR warnings are enabled and the OCR result will not be returned if there is a warning.This feature applies only to Hong Kong (China) identity cards, Malaysian identity cards, and passports. |
Extra | No | String | A passthrough field, which is returned together with the verification result and can contain up to 1,024 bits. |
ActionList | No | String | This interface is used to control th action sequences. Action types are as follows: "blink" "mouth" "nod" "shake" You can choose 1-2 actions out of the four. Single action example: "blink" Multiple action example: "blink,mouth" The default value is blink. The different action types passed in this parameter take effect only when the SecurityLevel is 2 or 4; otherwise, the interface reports an error. |
Parameter Name | Type | Description |
---|---|---|
SdkToken | String | The token used to identify an SDK-based verification process. It is valid for 7,200s and can be used to get the verification result after the process is completed. |
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 verification token.
POST / HTTP/1.1
Host: faceid.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ApplySdkVerificationToken
<Common request parameters>
{
"CheckMode": 1,
"SecurityLevel": 4,
"NeedVerifyIdCard": true,
"Extra": "fewfewf",
"IdCardType": "HK"
}
{
"Response": {
"SdkToken": "A561B769-C347-4724-A69A-6C3B3483E107",
"RequestId": "d73c0c05-f7ff-419c-84cb-0756303b1925"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
There is no error code related to the API business logic. For other error codes, please see Common Error Codes.
本页内容是否解决了您的问题?