Twilio: Voip schemas
2 Twilio schemas with complete fields and constraints.
← Voip operations · All schemas
List Available Phone Number Voip — request body — query
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | Additional keys: not allowed |
AreaCode | integer | Optional | |
Contains | string | Optional | |
SmsEnabled | boolean | Optional | |
MmsEnabled | boolean | Optional | |
VoiceEnabled | boolean | Optional | |
ExcludeAllAddressRequired | boolean | Optional | |
ExcludeLocalAddressRequired | boolean | Optional | |
ExcludeForeignAddressRequired | boolean | Optional | |
Beta | boolean | Optional | |
NearNumber | string | Optional | Format: phone-number |
NearLatLong | string | Optional | |
Distance | integer | Optional | |
InPostalCode | string | Optional | |
InRegion | string | Optional | |
InRateCenter | string | Optional | |
InLata | string | Optional | |
InLocality | string | Optional | |
FaxEnabled | boolean | Optional | |
PageSize | integer | Optional | Format: int64 Maximum: 1000 Minimum: 1 |
Page | integer | Optional | Minimum: 0 |
PageToken | string | Optional |
List Available Phone Number Voip — response body — available phone numbers item
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
address_requirements | JSON | Optional | |
address_requirements (anyOf 1) | string | Alternative | The type of [Address](https://www.twilio.com/docs/usage/api/address) resource the phone number requires. Can be: `none`, `any`, `local`, or `foreign`. `none` means no address is required. `any` means an address is required, but it can be anywhere in the world. `local` means an address in the phone number's country is required. `foreign` means an address outside of the phone number's country is required. |
address_requirements (anyOf 2) | null | Alternative | |
beta | JSON | Optional | |
beta (anyOf 1) | boolean | Alternative | Whether the phone number is new to the Twilio platform. Can be: `true` or `false`. |
beta (anyOf 2) | null | Alternative | |
capabilities | JSON | Optional | |
capabilities (anyOf 1) | object | Alternative | The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are: `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. Format: phone-number-capabilities |
capabilities (anyOf 1).fax | boolean | Optional | |
capabilities (anyOf 1).mms | boolean | Optional | |
capabilities (anyOf 1).sms | boolean | Optional | |
capabilities (anyOf 1).voice | boolean | Optional | |
capabilities (anyOf 2) | null | Alternative | |
friendly_name | JSON | Optional | |
friendly_name (anyOf 1) | string | Alternative | A formatted version of the phone number. Format: phone-number |
friendly_name (anyOf 2) | null | Alternative | |
iso_country | JSON | Optional | |
iso_country (anyOf 1) | string | Alternative | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of this phone number. Format: iso-country-code |
iso_country (anyOf 2) | null | Alternative | |
lata | JSON | Optional | |
lata (anyOf 1) | string | Alternative | The [LATA](https://en.wikipedia.org/wiki/Local_access_and_transport_area) of this phone number. Available for only phone numbers from the US and Canada. |
lata (anyOf 2) | null | Alternative | |
latitude | JSON | Optional | |
latitude (anyOf 1) | JSON | Alternative | |
latitude (anyOf 1) (anyOf 1) | number | Alternative | The latitude of this phone number's location. Available for only phone numbers from the US and Canada. |
latitude (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
latitude (anyOf 2) | null | Alternative | |
locality | JSON | Optional | |
locality (anyOf 1) | string | Alternative | The locality or city of this phone number's location. |
locality (anyOf 2) | null | Alternative | |
longitude | JSON | Optional | |
longitude (anyOf 1) | JSON | Alternative | |
longitude (anyOf 1) (anyOf 1) | number | Alternative | The longitude of this phone number's location. Available for only phone numbers from the US and Canada. |
longitude (anyOf 1) (anyOf 2) | string | Alternative | Pattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$ |
longitude (anyOf 2) | null | Alternative | |
phone_number | JSON | Optional | |
phone_number (anyOf 1) | string | Alternative | The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number. Format: phone-number |
phone_number (anyOf 2) | null | Alternative | |
postal_code | JSON | Optional | |
postal_code (anyOf 1) | string | Alternative | The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada. |
postal_code (anyOf 2) | null | Alternative | |
rate_center | JSON | Optional | |
rate_center (anyOf 1) | string | Alternative | The [rate center](https://en.wikipedia.org/wiki/Telephone_exchange) of this phone number. Available for only phone numbers from the US and Canada. |
rate_center (anyOf 2) | null | Alternative | |
region | JSON | Optional | |
region (anyOf 1) | string | Alternative | The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada. |
region (anyOf 2) | null | Alternative |