All Products
Search
Document Center

Captcha:Scenario management

Last Updated:Mar 31, 2026

A verification scenario is the central configuration unit in Captcha 2.0. Each scenario holds your integration method, CAPTCHA type, and rule status — and produces a Scenario ID that your client uses to trigger CAPTCHA challenges. This page walks you through creating a scenario and managing it after creation.

Integrating Captcha 2.0 involves three stages:

  1. Create a scenario (this page) — configure your integration method and CAPTCHA type, then get a Scenario ID.

  2. Embed the client — add the Captcha 2.0 widget to your web page or app using the Scenario ID.

  3. Validate server-side — verify each CAPTCHA token on your server before processing the user's request.

Prerequisites

Before you begin, ensure that you have:

Create a scenario

Important

Start with Rule Status set to Test Mode. This lets Captcha 2.0 verify connectivity without applying threat policies — so your own actions during integration testing are not flagged as bot behavior. Switch to Official Release only after you confirm the integration works end-to-end.

  1. In the left navigation pane, click Scenarios. On the Scenarios page, click Create Scenario.

  2. In the Create Scenario panel, fill in the following fields and click OK.

    FieldDescription
    Scenario nameEnter a name for the scenario. Must be 1–32 characters and can include Chinese characters, letters, digits, and underscores (_).
    Integration methodSelect how Captcha 2.0 integrates with your platform. See Integration method options below.
    Verification typeSelect the CAPTCHA challenge style. See Verification type options below.
    Rule statusSet the operating mode. Use Test Mode during integration testing, then switch to Official Release when you go live. See Rule status options below.
  3. After the scenario is created, copy the Scenario ID from the scenario list. Pass this ID to your client integration code.

    image.png

Integration method options

The integration method determines where the CAPTCHA runs and which security policy applies by default. The connection type cannot be changed after you save the scenario — if you select the wrong one, delete the scenario and create a new one.

MethodCoverageNotes
Web/H5Client and serverUse for standard web pages and H5 mobile pages. See Web and H5 integration.
Webview+H5 (for App/miniapp Integration)Client, server, and appUse for apps and WeChat mini programs that embed a WebView. See App client integration and Mini Program integration.
WeChat Mini Program Native PluginClient onlyUse for native WeChat mini program integration. Custom policies are not supported for this method. See WeChat Mini Program V2 architecture integration.

Scenario ID reuse: A single Scenario ID can be shared across multiple services, as long as they all use the same integration method. Services with different integration methods require separate scenarios.

Important

Make sure the integration method you select matches how your client actually integrates. A mismatch causes authentication to fail.

Verification type options

TypeInteractionNotes
Invisible CAPTCHANone (frictionless)Runs silently in the background. Requires an Additional Challenge if the invisible check fails. Supported additional challenges: One-click CAPTCHA, Slider CAPTCHA, Puzzle Verification, Image Restoration.
One-click CAPTCHAClick a button
Slider CAPTCHADrag a slider
Puzzle VerificationDrag a slider to complete a puzzle
Image RestorationDrag a slider to restore an image
Important

Invisible CAPTCHA does not support embedded (embed) authentication. Use pop-up (popup) authentication instead.

Rule status options

StatusBehavior
Official Release (default)Captcha 2.0 runs a full threat assessment on each request and returns a pass or fail result.
Test ModeCaptcha 2.0 only checks connectivity. No threat assessment runs. Returns a configurable test result so you can verify your integration logic. Changes from Test Mode to Official Release take about 5 minutes to take effect.

Configurable test results in Test Mode:

Verification typeAvailable test results
Invisible CAPTCHA + One-click CAPTCHA or Slider CAPTCHA (additional challenge)Pass Invisible CAPTCHA / Fail Invisible CAPTCHA and Pass Additional Challenge / Fail Invisible CAPTCHA and Additional Challenge
Invisible CAPTCHA + Puzzle Verification or Image Restoration (additional challenge)Pass Invisible CAPTCHA / Fail Invisible CAPTCHA
One-click CAPTCHAPass Verification / Fail Verification
Slider CAPTCHAPass Verification / Fail Verification
Puzzle VerificationPass Verification / Fail Verification
Image RestorationPass Verification / Fail Verification
Important

Each Captcha call is billed regardless of whether Rule Status is Official Release or Test Mode.

Manage scenarios

After a scenario is created, the Actions column in the scenario list gives you access to the following operations.

Integration guide

Click Integration Guide to view step-by-step instructions and code examples for integrating the scenario.

Edit

Click Modify to update the scenario name, CAPTCHA type, or rule status.

Custom policy

Click Custom Policy to define a custom security policy for the scenario. For details, see Custom policies.

Delete

Click Delete. In the Confirm Delete dialog, enter the Scenario ID, select the risk reminder checkbox, and click OK.

Warning

Deleting a scenario permanently deletes all historical data and causes any Captcha calls that reference this scenario's configuration to fail. Delete only if you are sure you no longer need the scenario.

image

Next steps