Method: getRecaptchaParams

Gets parameters needed for generating a reCAPTCHA challenge.

HTTP request

GET https://identitytoolkit.googleapis.com/v1/recaptchaParams

The URL uses gRPC Transcoding syntax.

Request body

The request body must be empty.

Response body

Response message for v1.getRecaptchaParams.

If successful, the response body contains data with the following structure:

JSON representation
{
  "kind": string,
  "recaptchaStoken": string,
  "recaptchaSiteKey": string,
  "producerProjectNumber": string
}
Fields
kind
(deprecated)

string

recaptchaStoken
(deprecated)

string

recaptchaSiteKey

string

The reCAPTCHA v2 site key used to invoke the reCAPTCHA service. Always present.

producerProjectNumber

string

The producer project number used to generate PIA tokens

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/identitytoolkit
  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.