getSupportedCountries()
method. The country code format currently supported is the two-letter format described in ISO 3166-1 alpha-2.searchAvailablePhoneNumbers()
method and provide the two-character ISO country code.searchAvailablePhoneNumbers()
method and provide the two-character country code and prefix digits.searchAvailablePhoneNumbers()
method and provide the two-character country code and latitude/longitude. This function finds geographically close numbers within miles. Applies to only phone numbers in the US and Canada.searchAvailablePhoneNumbers()
return a AvailablePhoneNumberResult
(iOS) / PhoneNumberSearchResult
(Android) on success. The result contains a list of available numbers and the country code / prefix used in the search.provisionPhoneNumber()
method. Provisioning a phone number to a Sudo makes it available to communicate with other phone numbers, such as sending and receiving SMS and MMS messages.PhoneNumber
type is returned when a phone number is provisioned. This type is expected in other places where a phone number is used, such as sending an SMS/MMS message.deletePhoneNumber()
method. This method expects an E.164 phone number format formatted phone number string. The phone number must have already been provisioned for this to succeed.getPhoneNumber()
method.listPhoneNumbers()
method. This method supports paging using the limit
and nextToken
parameters, and optionally filters by sudo id.listPhoneNumbers()
call is a TelephonyListToken as described below.getPhoneNumbers()
method, a list token object is returned which includes a list of phone numbers and a paging token used to retrieve the next set of results.