Skip to main content

List available phone numbers

GET 
/available_phone_numbers

List available phone numbers

Request

Query Parameters

    filter object

    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]

Responses

200: Successful response with a list of available phone numbers.

default: Unexpected error

Request samples


curl -L 'https://api.telnyx.com/v2/available_phone_numbers' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'

Response samples


{
"data": [
{
"record_type": "available_phone_number",
"phone_number": "+19705555098",
"vanity_format": "",
"best_effort": false,
"quickship": true,
"reservable": true,
"region_information": [
{
"region_type": "country_code",
"region_name": "US"
}
],
"cost_information": {
"upfront_cost": "3.21",
"monthly_cost": "6.54",
"currency": "USD"
},
"features": [
{
"name": "sms"
},
{
"name": "voice"
}
]
}
],
"meta": {
"total_results": 100,
"best_effort_results": 50
}
}