- Resource: Key
- WebKeySettings
- IntegrationType
- ChallengeSecurityPreference
- AndroidKeySettings
- IOSKeySettings
- AppleDeveloperId
- ExpressKeySettings
- TestingOptions
- TestingChallenge
- WafSettings
- WafService
- WafFeature
- Methods
Resource: Key
A key used to identify and configure applications (web and/or mobile) that use reCAPTCHA Enterprise.
JSON representation |
---|
{ "name": string, "displayName": string, "labels": { string: string, ... }, "createTime": string, "testingOptions": { object ( |
Fields | |
---|---|
name |
Identifier. The resource name for the Key in the format |
display |
Required. Human-readable display name of this key. Modifiable by user. |
labels |
Optional. See Creating and managing labels. An object containing a list of |
create |
Output only. The timestamp corresponding to the creation of this key. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
testing |
Optional. Options for user acceptance testing. |
waf |
Optional. Settings for WAF |
Union field platform_settings . Platform-specific settings for this key. The key can only be used on a platform for which the settings are enabled. platform_settings can be only one of the following: |
|
web |
Settings for keys that can be used by websites. |
android |
Settings for keys that can be used by Android apps. |
ios |
Settings for keys that can be used by iOS apps. |
express |
Settings for keys that can be used by reCAPTCHA Express. |
WebKeySettings
Settings specific to keys that can be used by websites.
JSON representation |
---|
{ "allowAllDomains": boolean, "allowedDomains": [ string ], "allowAmpTraffic": boolean, "integrationType": enum ( |
Fields | |
---|---|
allow |
Optional. If set to true, it means allowedDomains are not enforced. |
allowed |
Optional. Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: 'example.com' or 'subdomain.example.com' |
allow |
Optional. If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type. |
integration |
Required. Describes how this key is integrated with the website. |
challenge |
Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE and SCORE_AND_CHALLENGE. |
IntegrationType
Enum that represents the integration types for web keys.
Enums | |
---|---|
INTEGRATION_TYPE_UNSPECIFIED |
Default type that indicates this enum hasn't been specified. This is not a valid IntegrationType, one of the other types must be specified instead. |
SCORE |
Only used to produce scores. It doesn't display the "I'm not a robot" checkbox and never shows captcha challenges. |
CHECKBOX |
Displays the "I'm not a robot" checkbox and may show captcha challenges after it is checked. |
INVISIBLE |
Doesn't display the "I'm not a robot" checkbox, but may show captcha challenges after risk analysis. |
ChallengeSecurityPreference
Enum that represents the possible challenge frequency and difficulty configurations for a web key.
Enums | |
---|---|
CHALLENGE_SECURITY_PREFERENCE_UNSPECIFIED |
Default type that indicates this enum hasn't been specified. |
USABILITY |
Key tends to show fewer and easier challenges. |
BALANCE |
Key tends to show balanced (in amount and difficulty) challenges. |
SECURITY |
Key tends to show more and harder challenges. |
AndroidKeySettings
Settings specific to keys that can be used by Android apps.
JSON representation |
---|
{ "allowAllPackageNames": boolean, "allowedPackageNames": [ string ], "supportNonGoogleAppStoreDistribution": boolean } |
Fields | |
---|---|
allow |
Optional. If set to true, allowedPackageNames are not enforced. |
allowed |
Optional. Android package names of apps allowed to use the key. Example: 'com.companyname.appname' |
support |
Optional. Set to true for keys that are used in an Android application that is available for download in app stores in addition to the Google Play Store. |
IOSKeySettings
Settings specific to keys that can be used by iOS apps.
JSON representation |
---|
{
"allowAllBundleIds": boolean,
"allowedBundleIds": [
string
],
"appleDeveloperId": {
object ( |
Fields | |
---|---|
allow |
Optional. If set to true, allowedBundleIds are not enforced. |
allowed |
Optional. iOS bundle ids of apps allowed to use the key. Example: 'com.companyname.productname.appname' |
apple |
Optional. Apple Developer account details for the app that is protected by the reCAPTCHA Key. reCAPTCHA leverages platform-specific checks like Apple App Attest and Apple DeviceCheck to protect your app from abuse. Providing these fields allows reCAPTCHA to get a better assessment of the integrity of your app. |
AppleDeveloperId
Contains fields that are required to perform Apple-specific integrity checks.
JSON representation |
---|
{ "privateKey": string, "keyId": string, "teamId": string } |
Fields | |
---|---|
private |
Required. Input only. A private key (downloaded as a text file with a .p8 file extension) generated for your Apple Developer account. Ensure that Apple DeviceCheck is enabled for the private key. |
key |
Required. The Apple developer key ID (10-character string). |
team |
Required. The Apple team ID (10-character string) owning the provisioning profile used to build your application. |
ExpressKeySettings
This type has no fields.
Settings specific to keys that can be used for reCAPTCHA Express.
TestingOptions
Options for user acceptance testing.
JSON representation |
---|
{
"testingScore": number,
"testingChallenge": enum ( |
Fields | |
---|---|
testing |
Optional. All assessments for this Key return this score. Must be between 0 (likely not legitimate) and 1 (likely legitimate) inclusive. |
testing |
Optional. For challenge-based keys only (CHECKBOX, INVISIBLE), all challenge requests for this site return nocaptcha if NOCAPTCHA, or an unsolvable challenge if CHALLENGE. |
TestingChallenge
Enum that represents the challenge option for challenge-based (CHECKBOX, INVISIBLE) testing keys.
Enums | |
---|---|
TESTING_CHALLENGE_UNSPECIFIED |
Perform the normal risk analysis and return either nocaptcha or a challenge depending on risk and trust factors. |
NOCAPTCHA |
Challenge requests for this key always return a nocaptcha, which does not require a solution. |
UNSOLVABLE_CHALLENGE |
Challenge requests for this key always return an unsolvable challenge. |
WafSettings
Settings specific to keys that can be used for WAF (Web Application Firewall).
JSON representation |
---|
{ "wafService": enum ( |
Fields | |
---|---|
waf |
Required. The WAF service that uses this key. |
waf |
Required. The WAF feature for which this key is enabled. |
WafService
Web Application Firewalls supported by reCAPTCHA.
Enums | |
---|---|
WAF_SERVICE_UNSPECIFIED |
Undefined WAF |
CA |
Cloud Armor |
FASTLY |
Fastly |
CLOUDFLARE |
Cloudflare |
AKAMAI |
Akamai |
WafFeature
Supported WAF features. For more information, see https://cloud.google.com/recaptcha/docs/usecase#comparison_of_features.
Enums | |
---|---|
WAF_FEATURE_UNSPECIFIED |
Undefined feature. |
CHALLENGE_PAGE |
Redirects suspicious traffic to reCAPTCHA. |
SESSION_TOKEN |
Use reCAPTCHA session-tokens to protect the whole user session on the site's domain. |
ACTION_TOKEN |
Use reCAPTCHA action-tokens to protect user actions. |
EXPRESS |
Use reCAPTCHA WAF express protection to protect any content other than web pages, like APIs and IoT devices. |
Methods |
|
---|---|
|
Adds an IP override to a key. |
|
Creates a new reCAPTCHA Enterprise key. |
|
Deletes the specified key. |
|
Returns the specified key. |
|
Get some aggregated metrics for a Key. |
|
Returns the list of all keys that belong to a project. |
|
Lists all IP overrides for a key. |
|
Migrates an existing key from reCAPTCHA to reCAPTCHA Enterprise. |
|
Updates the specified key. |
|
Removes an IP override from a key. |
|
Returns the secret key related to the specified public key. |