Gets public keys for specified users.
Only users enabled for Verified SMS will have a public key.
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/enabledUserKeys:batchGet
The URL uses gRPC Transcoding syntax.
Request body
The request body contains data with the following structure:
JSON representation | |
---|---|
{ "phoneNumbers": [ string ] } |
Fields | |
---|---|
phoneNumbers[] |
User phone numbers in E.164 format. For example, 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 ( |
Fields | |
---|---|
userKeys[] |
List of enabled user public keys. Users not enabled will not have a public key. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/verifiedsms
For more information, see the OAuth 2.0 Overview.
EnabledUserKey
A public key of an enabled user.
This object includes a public key of Verified SMS user who is enabled on the platform. Users not enabled for Verified SMS will not have a public key.
JSON representation | |
---|---|
{ "phoneNumber": string, "publicKey": string } |
Fields | |
---|---|
phoneNumber |
A user's phone number in E.164 format. For example, |
publicKey |
A public key value, with a size of 120 bytes, created with elliptic curve NIST P-384. A base64-encoded string. |