Maps recipient country code and sender ID to hash values of an SMS message and message segments.
HTTP request
POST https://verifiedsms.googleapis.com/v1/{parent=countryCodes/*/smsOrigins/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
"countryCodes/{countryCode}/smsOrigins/{smsOrigin}" where {countryCode} is a ISO 3166 Alpha-2 country code of the recipient and {smsOrigin} is the URL-encoded phone number that will send the SMS message. This can be a long code (E.164 format), a short code, a national code, or an alphanumeric code. For example, if the recipient's country code is If the recipient's country code is If the recipient's country code is If the recipient's country code is |
Request body
The request body contains an instance of Sms
.
Response body
If successful, the response body contains data with the following structure:
Information about an SMS message. Includes name, origin, and hash codes.
JSON representation | |
---|---|
{
"name": string,
"hashCodes": [
{
object( |
Fields | |
---|---|
name |
This field is set by Verified SMS. Don't include it when you register a message. This field resolves to "countryCodes/{countryCode}/smsOrigins/{smsOrigin}", where {countryCode} is the country ISO-2 code of the recipient, and {smsOrigin} is your sender ID. |
hashCodes[] |
SMS hash codes for all algorithms. |
SmsHashCode
Hash codes for an SMS message and its segments.
JSON representation | |
---|---|
{ "fullMessageHashCode": string, "segmentsHashCodes": [ string ], "hashCodeVersion": string } |
Fields | |
---|---|
fullMessageHashCode |
Hash code for a full SMS message. A base64-encoded string. |
segmentsHashCodes[] |
Hash codes for SMS message segments. May be empty if the message is shorter than 140 bytes or if segments don't need verification (i.e. the carrier support SMS segments, and the client correctly assembles segmints as a single message). A base64-encoded string. |
hashCodeVersion |
Algorithm version for SMS message hash code. For example, |