tencent cloud

APIs

DocumentationAPIsCaptchaConsole v2.0 APIsModifyCaptchaInfoInternational

ModifyCaptchaInfoInternational

Download
Focus Mode
Font Size
Last updated: 2026-09-08 19:37:05

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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:

  • 1: Experience-oriented
  • 2: Balanced
  • 3: Security-focused

Default value: 1

UserSetCapType No String

Verification method

Enumeration values:

  • 1: Invisible verification. UserSetCapType input 1, DisableInvisibleSwitch must
  • 2: Slide verification
  • 8: Graphical verification
  • 9: Voice verification
DefendMode No String

Interception mode

Enumeration values:

  • notify: perception mode
  • block: interception mode
CheckAppidSwitch No Integer

Whether to enable captcha encryption. 0: Off. 1: On

CheckIvSwitch No Integer

Whether to enable Non-repeating IV

Enumeration values:

  • 0: Off
  • 1: On

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:

  • 0: One-Click Verification
  • 1: Always verify
  • 2: Invisible verification. DisableInvisibleSwitch input 2, UserSetCapType must be 1
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

3. Output Parameters

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.

4. Example

Example1 Request and return example

Modify verification code info

Input Example

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": "**"
}

Output Example

{
    "Response": {
        "RequestId": "b28640bd-7d81-4a6f-b659-be0a2a383f52",
        "Data": null,
        "CaptchaCode": 11000,
        "CaptchaMsg": ""
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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

Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback