PWA Studio only. Learn more
recaptchaFormConfig query
The recaptchaFormConfig
query returns information about the reCaptcha configuration for the specified form type. You can use the recaptchaV3Config
query to return a list of form types.
Syntax
recaptchaFormConfig(formType: ReCaptchaFormEnum!): ReCaptchaConfigOutput
References
The recaptchaFormConfig
reference provides detailed information about the types and fields defined in this mutation.
Example usage
The following query returns information about the reCaptcha configuration for the CONTACT form:
Request:
Copied to your clipboardquery {recaptchaFormConfig(formType:CONTACT) {is_enabledconfigurations {re_captcha_typebadge_positionwebsite_keythemelanguage_codeminimum_scorevalidation_failure_messagetechnical_failure_message}}}
Response:
If reCaptcha is enabled for the specified form type, the response contains full configuration details.
Copied to your clipboard{"data": {"recaptchaFormConfig": {"is_enabled": true,"configurations": {"re_captcha_type": "RECAPTCHA_V3","badge_position": "inline","website_key": "testtest","theme": "light","language_code": "en","minimum_score": 0.5,"validation_failure_message": "Validation Failure Message","technical_failure_message": "Technical Failure Message"}}}}
Otherwise, the configurations
object contains a null response:
Copied to your clipboard{"data": {"recaptchaFormConfig": {"is_enabled": false,"configurations": null}}}