Note: This article is only relevant for self-managed headless projects.
This article explains how to implement reCAPTCHA with member authentication using the REST API.
You'll learn how to:
Use a 3rd-party library like Google reCAPTCHA to implement the reCAPTCHA or choose to implement it yourself using Google's APIs.
You can choose to always require reCAPTCHA verification or only require it for suspected bots.
Important
When implementing a reCAPTCHA:
'6Ld0J8IcAAAAANyrnxzrRlX1xrrdXsOmsepUYosy''6LdoPaUfAAAAAJphvHoUoOob7mx0KDlXyXlgrx5v'For example, implement a visible reCAPTCHA widget with Google reCAPTCHA:
Call the Register V2 or Login V2 endpoint with the appropriate reCAPTCHA token returned to your reCAPTCHA implementation.
When always requiring reCAPTCHA verification, send the token using the captcha_tokens.Recaptcha property.
When only requiring reCAPTCHA verification for suspected bots, send the token using the captcha_tokens.InvisibleRecaptcha property.