Stay organized with collections
Save and categorize content based on your preferences.
Resource: RecaptchaEnterpriseConfig
An app's reCAPTCHA Enterprise configuration object. This configuration is used by ExchangeRecaptchaEnterpriseToken to validate reCAPTCHA tokens issued to apps by reCAPTCHA Enterprise. It also controls certain properties of the returned AppCheckToken, such as its ttl.
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-05 UTC."],[],[],null,["# REST Resource: projects.apps.recaptchaEnterpriseConfig\n\nResource: RecaptchaEnterpriseConfig\n-----------------------------------\n\nAn app's reCAPTCHA Enterprise configuration object. This configuration is used by [ExchangeRecaptchaEnterpriseToken](/docs/reference/appcheck/rest/v1beta/projects.apps/exchangeRecaptchaEnterpriseToken#google.firebase.appcheck.v1beta.TokenExchangeService.ExchangeRecaptchaEnterpriseToken) to validate reCAPTCHA tokens issued to apps by reCAPTCHA Enterprise. It also controls certain properties of the returned [`AppCheckToken`](/docs/reference/appcheck/rest/v1beta/AppCheckToken), such as its [ttl](/docs/reference/appcheck/rest/v1beta/AppCheckToken#FIELDS.ttl).\n\n| JSON representation |\n|-------------------------------------------------------------------|\n| ``` { \"name\": string, \"tokenTtl\": string, \"siteKey\": string } ``` |\n\n| Fields ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. The relative resource name of the reCAPTCHA Enterprise configuration object, in the format: projects/{project_number}/apps/{app_id}/recaptchaEnterpriseConfig |\n| `tokenTtl` | `string (`[Duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.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\"`. |\n| `siteKey` | `string` The score-based site key [created in reCAPTCHA Enterprise](https://cloud.google.com/recaptcha-enterprise/docs/create-key#creating_a_site_key) used to [invoke reCAPTCHA and generate the reCAPTCHA tokens](https://cloud.google.com/recaptcha-enterprise/docs/instrument-web-pages) for your application. Important: This is *not* the `siteSecret` (as it is in reCAPTCHA v3), but rather your score-based reCAPTCHA Enterprise site key. |\n\n| Methods ------- ||\n|-------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ### [batchGet](/docs/reference/appcheck/rest/v1beta/projects.apps.recaptchaEnterpriseConfig/batchGet) | Atomically gets the [RecaptchaEnterpriseConfig](/docs/reference/appcheck/rest/v1beta/projects.apps.recaptchaEnterpriseConfig#RecaptchaEnterpriseConfig)s for the specified list of apps. |\n| ### [get](/docs/reference/appcheck/rest/v1beta/projects.apps.recaptchaEnterpriseConfig/get) | Gets the [RecaptchaEnterpriseConfig](/docs/reference/appcheck/rest/v1beta/projects.apps.recaptchaEnterpriseConfig#RecaptchaEnterpriseConfig) for the specified app. |\n| ### [patch](/docs/reference/appcheck/rest/v1beta/projects.apps.recaptchaEnterpriseConfig/patch) | Updates the [RecaptchaEnterpriseConfig](/docs/reference/appcheck/rest/v1beta/projects.apps.recaptchaEnterpriseConfig#RecaptchaEnterpriseConfig) for the specified app. |"]]