Domain name for API request: captcha.intl.tencentcloudapi.com.
Change the captcha configuration, including basic, appearance, and security settings such as captcha name, prompt language, and validation type.
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: ModifyCaptchaInfoInternational. |
| Version | Yes | String | Common Params. The value used for this API: 2019-07-22. |
| Region | No | String | Common Params. This parameter is not required. |
| CaptchaAppId | Yes | String | Captcha appid |
| AppName | No | String | Captcha name |
| VerifyRank | No | String | Verification level Enumeration values:
Default value: 1 |
| UserSetCapType | No | String | Verification method Enumeration values:
|
| DefendMode | No | String | Interception mode Enumeration values:
|
| 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 |
| DisableInvisibleSwitch | No | String | Verification mechanism: '0' One-Click Verification, '1' Always verify, '2' Invisible verification Enumeration values:
|
| VerifyDomain | No | String | Web domain name Only valid when ChannelInfo is web |
| VerifyBundleId | No | String | app BundleId Valid only when ChannelInfo is ios |
| VerifyPackage | No | String | app package Valid only when ChannelInfo is android |
| Tags.N | No | Array of String | Resource tag, key&value format |
| CheckBoxStyle | No | String | Checkbox display method. '0': minimalist mode, '1': full mode, '2': not set |
| 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. |
Modify verification code info
POST / HTTP/1.1
Host: captcha.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: ModifyCaptchaInfo
<Common request parameters>
{
"CaptchaAppId": "179****56",
"NoVerifyRule": "\"1\"",
"Domain": "\"www.appid.com\"",
"UserSetCapType": "\"17\"",
"AppName": "\"web-1\"",
"VerifyRank": "\"3\"",
"SceneType": "\"6\"",
"CaptchaLanguage": "\"2052\"",
"VerifyDomain": ""*******.com\"",
"VerifyBundleId": "\"com*******\"",
"VerifyPackage": "**"
}
{
"Response": {
"RequestId": "b28640bd-7d81-4a6f-b659-be0a2a383f52",
"Data": null,
"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 |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
| UnauthorizedOperation.ErrAuth | Authentication failed. |
| UnauthorizedOperation.Unauthorized | Operation not authorized/No valid package/The account is overdue |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback