Method: userKeys.batchGet

Gets public keys for specified users.

Use these keys to generate shared secrets with an agent's private key and create messages hashes.

HTTP request

POST https://verifiedsms.googleapis.com/v1/userKeys:batchGet

The URL uses gRPC Transcoding syntax.

Request body

The request body contains data with the following structure:

JSON representation
{
  "phoneNumbers": [
    string
  ]
}
Fields
phoneNumbers[]

string

User phone numbers in E.164 format. For example, +12223334444.

Maximum 10,000 values per API call.

Response body

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

Response to request for user public keys.

JSON representation
{
  "userKeys": [
    {
      object (UserKey)
    }
  ]
}
Fields
userKeys[]

object (UserKey)

List of user public keys.

Authorization Scopes

Requires the following OAuth scope:

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

For more information, see the OAuth 2.0 Overview.

UserKey

A user's public key.

JSON representation
{
  "phoneNumber": string,
  "publicKey": string
}
Fields
phoneNumber

string

A user's phone number in E.164 format. For example, +12223334444.

publicKey

string (bytes format)

A public key value, with a size of 120 bytes, created with elliptic curve NIST P-384.

A base64-encoded string.