Method: challenge.generate

  • Generates a new Verified Access challenge using a POST request to a specified endpoint.

  • Requires an empty request body and returns a JSON response containing the generated challenge as a base64-encoded string.

  • Utilizes gRPC Transcoding for the URL structure and needs authorization with the https://www.googleapis.com/auth/verifiedaccess scope.

Generates a new challenge.

HTTP request

POST https://verifiedaccess.googleapis.com/v2/challenge:generate

The URL uses gRPC Transcoding syntax.

Request body

The request body must be empty.

Response body

Result message for VerifiedAccess.GenerateChallenge.

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

JSON representation
{
  "challenge": string
}
Fields
challenge

string (bytes format)

Generated challenge, the bytes representation of SignedData.

A base64-encoded string.

Authorization scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/verifiedaccess

For more information, see the OAuth 2.0 Overview.