{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/google-identity-platform/json-schema/google-identity-platform-google-cloud-identitytoolkit-v2-recaptcha-config-schema.json",
  "title": "GoogleCloudIdentitytoolkitV2RecaptchaConfig",
  "description": "Configuration for reCAPTCHA",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/google-identity-platform-v2-api-openapi.yml#/components/schemas/GoogleCloudIdentitytoolkitV2RecaptchaConfig",
  "properties": {
    "recaptchaKey": {
      "type": "string",
      "description": "The reCAPTCHA Enterprise key resource name, e.g. \"projects/{project}/keys/{key}\". This will only be returned when the reCAPTCHA enforcement state is AUDIT or ENFORCE on at least one of the reCAPTCHA providers."
    },
    "recaptchaEnforcementState": {
      "type": "array",
      "description": "The reCAPTCHA enforcement state for the providers that GCIP supports reCAPTCHA protection.",
      "items": {
        "$ref": "#/$defs/GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState"
      }
    },
    "useSmsTollFraudProtection": {
      "description": "Whether to use the rCE sms toll fraud protection risk score for reCAPTCHA phone provider.",
      "type": "boolean"
    },
    "useSmsBotScore": {
      "description": "Whether to use the rCE bot score for reCAPTCHA phone provider.",
      "type": "boolean"
    }
  },
  "type": "object",
  "$defs": {
    "GoogleCloudIdentitytoolkitV2RecaptchaEnforcementState": {
      "properties": {
        "enforcementState": {
          "type": "string",
          "description": "The reCAPTCHA enforcement state for the provider.",
          "enum": [
            "ENFORCEMENT_STATE_UNSPECIFIED",
            "OFF",
            "AUDIT",
            "ENFORCE"
          ]
        },
        "provider": {
          "enum": [
            "RECAPTCHA_PROVIDER_UNSPECIFIED",
            "EMAIL_PASSWORD_PROVIDER",
            "PHONE_PROVIDER"
          ],
          "type": "string",
          "description": "The provider that has reCAPTCHA protection."
        }
      },
      "type": "object",
      "description": "Enforcement states for reCAPTCHA protection."
    }
  }
}