List available phone numbers
Searches the Telnyx inventory for available phone numbers. Filters support number patterns, location, number type, features, reservability, and other inventory constraints; the response includes matching numbers and search metadata.
Query parameters
Consolidated filter parameter (deepObject style). Originally: filter[phone_number], filter[locality], filter[administrative_area], filter[country_code], filter[national_destination_code], filter[rate_center], filter[phone_number_type], filter[features], filter[limit], filter[best_effort], filter[quickship], filter[reservable], filter[exclude_held_numbers]
Response
Successful response with a list of available phone numbers.
Example response
{
"data": [
{
"best_effort": false,
"cost_information": {
"currency": "USD",
"monthly_cost": "6.54",
"upfront_cost": "3.21"
},
"features": [
{
"name": "sms"
},
{
"name": "voice"
}
],
"phone_number": "+19705555098",
"quickship": true,
"record_type": "available_phone_number",
"region_information": [
{
"region_name": "US",
"region_type": "country_code"
}
],
"reservable": true,
"vanity_format": ""
}
],
"meta": {
"best_effort_results": 50,
"total_results": 100
},
"metadata": {
"best_effort_results": 50,
"total_results": 100
}
}Changes
Changed in 2 of the 61 revisions of this API.20515
- ▲
the response property
errors/items/codebecame optional for the status400response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status401response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status404response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status422response-property-became-optional
- ▲
the response property
errors/items/codebecame optional for the status500response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status400response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status401response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status404response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status422response-property-became-optional
- ▲
the response property
errors/items/titlebecame optional for the status500response-property-became-optional
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status400response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status404response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status422response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed frominteger/int32tostring/for status500response-property-type-changed
- ○
added the optional property
errors/items/meta/urlto the response with the400statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the401statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the404statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the422statusresponse-optional-property-added
- ○
added the optional property
errors/items/meta/urlto the response with the500statusresponse-optional-property-added
This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status400response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status401response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status404response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status422response-property-type-changed
- ▲
the
errors/items/coderesponse's property type/format changed fromstring/tointeger/int32for status500response-property-type-changed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the400statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the401statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the404statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the422statusresponse-optional-property-removed
- ●
removed the optional property
errors/items/meta/urlfrom the response with the500statusresponse-optional-property-removed
- ○
the response property
errors/items/codebecame required for the status400response-property-became-required
- ○
the response property
errors/items/codebecame required for the status401response-property-became-required
- ○
the response property
errors/items/codebecame required for the status404response-property-became-required
- ○
the response property
errors/items/codebecame required for the status422response-property-became-required
- ○
the response property
errors/items/codebecame required for the status500response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status400response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status401response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status404response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status422response-property-became-required
- ○
the response property
errors/items/titlebecame required for the status500response-property-became-required
This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲