search_available_phone_numbers
(**kwargs)¶Searches for phone numbers that can be ordered. For US numbers, provide at least one of the following search filters: AreaCode
, City
, State
, or TollFreePrefix
. If you provide City
, you must also provide State
. Numbers outside the US only support the PhoneNumberType
filter, which you must use.
See also: AWS API Documentation
Request Syntax
response = client.search_available_phone_numbers(
AreaCode='string',
City='string',
Country='string',
State='string',
TollFreePrefix='string',
PhoneNumberType='Local'|'TollFree',
MaxResults=123,
NextToken='string'
)
City
. Only applies to the US.dict
Response Syntax
{
'E164PhoneNumbers': [
'string',
],
'NextToken': 'string'
}
Response Structure
(dict) --
E164PhoneNumbers (list) --
List of phone numbers, in E.164 format.
NextToken (string) --
The token used to retrieve the next page of search results.
Exceptions
Chime.Client.exceptions.BadRequestException
Chime.Client.exceptions.ForbiddenException
Chime.Client.exceptions.AccessDeniedException
Chime.Client.exceptions.UnauthorizedClientException
Chime.Client.exceptions.ThrottledClientException
Chime.Client.exceptions.ServiceUnavailableException
Chime.Client.exceptions.ServiceFailureException