Domain name for API request: captcha.intl.tencentcloudapi.com.
Create a captcha: You can create multiple Captcha based on different business needs. Each verification has different client types and security policies. The limit for new Captcha is 50.
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: CreateCaptchaInfoInternational. |
| Version | Yes | String | Common Params. The value used for this API: 2019-07-22. |
| Region | No | String | Common Params. This parameter is not required. |
| AppName | Yes | String | Captcha name |
| ChannelInfo | Yes | String | Client type Enumeration values:
Default value: web |
| VerifyRank | No | String | Verification level Enumeration values:
Default value: 1 |
| UserSetCapType | No | String | Validation type Enumeration values:
|
| DefendMode | No | String | Interception mode Enumeration values:
Default value: notify |
| Tags.N | No | Array of String | Resource tag, key&value format |
| DisableInvisibleSwitch | No | String | Verification mechanism Enumeration values:
|
| VerifyDomain | No | String | web domain name Only valid when ChannelInfo is web |
| VerifyBundleId | No | String | app BundleId Only valid when ChannelInfo is ios |
| VerifyPackage | No | String | app package Only valid when ChannelInfo is android |
| CheckAppidSwitch | No | Integer | Whether to enable captcha encryption. 0: Off. 1: On |
| CheckIvSwitch | No | Integer | Whether to enable non-repeating IV Enumeration values:
Input 1 is allowed only when CheckAppidSwitch is 1 |
| CheckBoxStyle | No | String | Checkbox display method Enumeration values:
|
| Parameter Name | Type | Description |
|---|---|---|
| Data | Integer | Result data. |
| CaptchaCode | Integer | Captcha status code |
| CaptchaMsg | String | Captcha information |
| 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. |
Create a verification code
POST / HTTP/1.1
Host: captcha.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreateCaptchaInfo
<Common request parameters>
{
"UserSetCapType": "13",
"AppName": "aaa",
"VerifyRank": "3",
"ChannelInfo": "web",
"VerifyDomain": "\"*******.com\"",
"VerifyBundleId": "\"com.*******",
"VerifyPackage": "\"com.******\""
}
{
"Response": {
"RequestId": "63ade1a9-eae8-49d4-b8be-bf803bfffdbe",
"Data": 179000008,
"CaptchaCode": 11000,
"CaptchaMsg": ""
}
}
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 |
|---|---|
| AuthFailure.UnauthorizedOperation | Request not authorized by CAM. |
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| UnauthorizedOperation.ErrAuth | Authentication failed. |
| UnauthorizedOperation.Unauthorized | Operation not authorized/No valid package/The account is overdue |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários