List of AvailablePhoneNumber resources by country
GET/Accounts/:AccountSid/AvailablePhoneNumbers/:IsoCountry
Returns a list of URIs to phone number resources available to the account in the US ISO country, categorized by type (Local, Toll-Free, Mobile, etc).
Permissions
The API token must include the following scopes: Numbers.
Request
Path Parameters
AccountSid uuidrequired
The Project ID that uniquely identifies the Account to retrieve.
IsoCountry stringrequired
The ISO country code of the number.
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
uri string
The URI for the API call.
beta boolean
New numbers on SignalWire are marked as beta
. Possible values are true
or false
.
country string
The country the number is from.
country_code string
The ISO country code of the number.
subresource_uris
object
local string
The URI of the subresource
toll_free string
The URI of the subresource
{
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/AvailablePhoneNumbers/US/Local",
"beta": true,
"country": "United States",
"country_code": "US",
"subresource_uris": {
"local": "/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/AvailablePhoneNumbers/US/Local",
"toll_free": "/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/AvailablePhoneNumbers/US/Local"
}
}
Loading...