REST Resource: projects.apps.recaptchaConfig

Resource: RecaptchaConfig

This REST resource is deprecated; it has been renamed toRecaptchaV3Config.

An app's reCAPTCHA v3 configuration object. This configuration is used byapps.exchangeRecaptchaToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA v3. It also controls certain properties of the returnedAppCheckToken, such as itsttl.

JSON representation
{"tokenTtl":string,"name":string,"siteSecret":string,"siteSecretSet":boolean}
Fields
tokenTtl

string (Duration format)

Specifies the duration for which App Check tokens exchanged from reCAPTCHA tokens will be valid. If unset, a default value of 1 day is assumed. Must be between 30 minutes and 7 days, inclusive.

A duration in seconds with up to nine fractional digits, ending with 's'. Example:"3.5s".

name

string

Required. The relative resource name of the reCAPTCHA v3 configuration object, in the format:

projects/{project_number}/apps/{app_id}/recaptchaConfig
siteSecret

string

Required. Input only. The site secret used to identify your service for reCAPTCHA v3 verification.

For security reasons, this field will never be populated in any response.

siteSecretSet

boolean

Output only. Whether thesiteSecret field was previously set. Since we will never return thesiteSecret field, this field is the only way to find out whether it was previously set.

Methods

batchGet
(deprecated)

Atomically gets theRecaptchaConfigs for the specified list of apps.

get
(deprecated)

Gets theRecaptchaConfig for the specified app.

patch
(deprecated)

Updates theRecaptchaConfig for the specified app.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-09-25 UTC.