REST Resource: projects.apps.recaptchaEnterpriseConfig

Resource: RecaptchaEnterpriseConfig

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

JSON representation
{"name":string,"tokenTtl":string,"siteKey":string}
Fields
name

string

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

projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig
tokenTtl

string (Duration format)

Specifies the duration for which App Check tokens exchanged from reCAPTCHA Enterprise tokens will be valid. If unset, a default value of 1 hour 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".

siteKey

string

The score-based site keycreated in reCAPTCHA Enterprise used toinvoke reCAPTCHA and generate the reCAPTCHA tokens for your application.

Important: This isnot thesiteSecret (as it is in reCAPTCHA v3), but rather your score-based reCAPTCHA Enterprise site key.

Methods

batchGet

Atomically gets theRecaptchaEnterpriseConfigs for the specified list of apps.

get

Gets theRecaptchaEnterpriseConfig for the specified app.

patch

Updates theRecaptchaEnterpriseConfig 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.