carrierLookup

Returns information about a destination phone number, including whether the number type and whether it is valid, the carrier, and more.

Samples


fun main() { 
   //sampleStart 
   // Call the CarrierLookup operation to get information about a customer provided phone number,
// including if the number is valid. The service accepts phone numbers with various formatting characters and
// returns the number in E164 format.
val resp = pinpointSmsVoiceV2Client.carrierLookup {
    phoneNumber = "+1 (555) 555-5333"
} 
   //sampleEnd
}