Domain name for API request: captcha.intl.tencentcloudapi.com.
This API is used to check the ticket results of verification codes for Web and APP.
A maximum of 1000 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: DescribeCaptchaResult. |
| Version | Yes | String | Common Params. The value used for this API: 2019-07-22. |
| Region | No | String | Common Params. This parameter is not required. |
| CaptchaType | Yes | Integer | Fixed value: 9. |
| Ticket | Yes | String | User verification ticket returned by the frontend callback function |
| UserIp | Yes | String | Public network IP of the verification |
| Randstr | Yes | String | Random string returned by the frontend callback function |
| CaptchaAppId | Yes | Integer | Captcha appId. Log in to the verification code console. In the [Key] column of the verification list, you can see CaptchaAppId. |
| AppSecretKey | Yes | String | Captcha application key. Log in to the verification code console, and view AppSecretKey in the [Key] column of the verification list. AppSecretKey is a key for server-side verification of verification code tickets. Keep it confidential and do not leak it to third parties. |
| BusinessId | No | Integer | Reserved field |
| SceneId | No | Integer | Reserved field |
| MacAddress | No | String | mac address or unique device identifier |
| Imei | No | String | Mobile device number |
| NeedGetCaptchaTime | No | Integer | Whether to return the time when the frontend obtains the verification code. Value: 1: need to return |
| Parameter Name | Type | Description |
|---|---|---|
| CaptchaCode | Integer | 1 OK verification passed |
| CaptchaMsg | String | Description and error message |
| EvilLevel | Integer | In non-perception mode, this parameter returns the verification result: |
| GetCaptchaTime | Integer | Frontend verification code retrieval time, Timestamp Format |
| EvilBitmap | Integer | Interception type |
| SubmitCaptchaTime | Integer | Time of submitting the verification code |
| DeviceRiskCategory | String | Device risk category |
| Score | Integer | Verification code score Value range: 0-100. Higher scores indicate higher risk |
| 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. |
Invoice verification
POST / HTTP/1.1
Host: captcha.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeCaptchaResult
<Common request parameters>
{
"CaptchaAppId": 199999164,
"CaptchaType": 9,
"NeedGetCaptchaTime": 1,
"Randstr": "@Vki",
"UserIp": "127.0.0.1",
"Ticket": "tr03XaCUZPAlPdIMqv17yvcfdXCzkqvLE09AbCA4ghlWfD8hkySfbU2TZVCyoOCjNI84pAYEMopKv7Uh8XwQDSE9DC0xJpXVC7kmlPENlbFINs_N937qkoEmU6Pl8e-9EkFQzvrrwsZOTKQ*",
"AppSecretKey": "E4kwK9AcXQMHkktiItyMEyQPn"
}
{
"Response": {
"CaptchaCode": 0,
"CaptchaMsg": "not valid",
"EvilLevel": 0,
"GetCaptchaTime": 1729583235,
"SubmitCaptchaTime": 1729583239,
"EvilBitmap": 0,
"RequestId": "7c370964-7deb-4008-8b29-47e87e60c1e0"
},
"retcode": 0,
"retmsg": "success"
}
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. |
| MissingParameter | Parameters are missing. |
| UnauthorizedOperation.ErrAuth | Authentication failed. |
| UnauthorizedOperation.Unauthorized | Operation not authorized/No valid package/The account is overdue |
Apakah halaman ini membantu?
Anda juga dapat Menghubungi Penjualan atau Mengirimkan Tiket untuk meminta bantuan.
masukan