- HTTP request
- Query parameters
- Request body
- Response body
- Authorization scopes
- RecaptchaEnforcementState
- RecaptchaProvider
- EnforcementState
- Try it!
Gets parameters needed for reCAPTCHA analysis.
HTTP request
GET https://identitytoolkit.googleapis.com/v2/recaptchaConfig
The URL uses gRPC Transcoding syntax.
Query parameters
| Parameters | |
|---|---|
| tenantId | 
 The id of a tenant. | 
| clientType | 
 reCAPTCHA Enterprise uses separate site keys for different client types. Specify the client type to get the corresponding key. | 
| version | 
 The reCAPTCHA version. | 
Request body
The request body must be empty.
Response body
Configuration for reCAPTCHA
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| {
  "recaptchaEnforcementState": [
    {
      object ( | 
| Fields | |
|---|---|
| recaptchaEnforcementState[] | 
 The reCAPTCHA enforcement state for the providers that GCIP supports reCAPTCHA protection. | 
| recaptchaKey | 
 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. | 
| useSmsBotScore | 
 Whether to use the rCE bot score for reCAPTCHA phone provider. | 
| useSmsTollFraudProtection | 
 Whether to use the rCE sms toll fraud protection risk score for reCAPTCHA phone provider. | 
Authorization scopes
Requires one of the following OAuth scopes:
- https://www.googleapis.com/auth/identitytoolkit
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
RecaptchaEnforcementState
Enforcement states for reCAPTCHA protection.
| JSON representation | 
|---|
| { "provider": enum ( | 
| Fields | |
|---|---|
| provider | 
 The provider that has reCAPTCHA protection. | 
| enforcementState | 
 The reCAPTCHA enforcement state for the provider. | 
RecaptchaProvider
The GCIP providers that support reCAPTCHA protection.
| Enums | |
|---|---|
| RECAPTCHA_PROVIDER_UNSPECIFIED | reCAPTCHA provider not specified | 
| EMAIL_PASSWORD_PROVIDER | Email password provider | 
| PHONE_PROVIDER | Phone auth provider | 
EnforcementState
Enforcement states for reCAPTCHA protection per provider.
| Enums | |
|---|---|
| ENFORCEMENT_STATE_UNSPECIFIED | Enforcement state has not been set. | 
| OFF | Unenforced. | 
| AUDIT | reCAPTCHA assessment is created, result is not used to enforce. | 
| ENFORCE | reCAPTCHA assessment is created, result is used to enforce. |