/
v3.0.11Get access

validateTurnstile

Validates a Turnstile CAPTCHA response token to verify user

Request parameters:

NameDescriptionTypeValuesDefault
token
The action name or context for which the Turnstile token was generatedstring--
action
The response token received from the Turnstile CAPTCHA widget after user interactionstring--

Call example:

validateTurnstile({
  token: 'sdasdasd......',
  action: 'register_user'
})

Response examples:

{
  result: 0,
  result_text: null,
  details: []
}