Phone Number Search

List available phone number blocks

Searches the Telnyx inventory for available contiguous phone-number blocks. Results can be filtered by locality, country, national destination code, and number type.

get/available_phone_number_blocks

Query parameters

country_codestring

Filter phone numbers by country.

localitystring

Filter phone numbers by city.

national_destination_codestring

Filter by the national destination code of the number.

phone_number_type'local' | 'toll_free' | 'mobile' | 'national' | 'shared_cost'

Filter phone numbers by number type.

Consolidated filter parameter (deepObject style). Originally: filter[locality], filter[country_code], filter[national_destination_code], filter[phone_number_type]

Response

Successful response with a list of available phone numbers blocks.

Example response

{
  "data": [
    {
      "cost_information": {
        "currency": "USD",
        "monthly_cost": "6.54",
        "upfront_cost": "3.21"
      },
      "features": [
        {
          "name": "sms"
        },
        {
          "name": "voice"
        }
      ],
      "phone_number": "+19705555000",
      "range": 10,
      "record_type": "available_phone_number_block",
      "region_information": [
        {
          "region_name": "US",
          "region_type": "country_code"
        }
      ]
    }
  ],
  "meta": {
    "best_effort_results": 50,
    "total_results": 100
  }
}

Changes

Changed in 2 of the 61 revisions of this API.20515

  • 1571b0380bd7155See the full diff
    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the response property // became optional for the status

      response-property-became-optional

    • the // response's property type changed from integer to string, and format from int32 to no format for status

      response-property-type-changed

    • the // response's property type changed from integer to string, and format from int32 to no format for status

      response-property-type-changed

    • the // response's property type changed from integer to string, and format from int32 to no format for status

      response-property-type-changed

    • the // response's property type changed from integer to string, and format from int32 to no format for status

      response-property-type-changed

    • the // response's property type changed from integer to string, and format from int32 to no format for status

      response-property-type-changed

    • added the optional property /// to the response with the status

      response-optional-property-added

    • added the optional property /// to the response with the status

      response-optional-property-added

    • added the optional property /// to the response with the status

      response-optional-property-added

    • added the optional property /// to the response with the status

      response-optional-property-added

    • added the optional property /// to the response with the status

      response-optional-property-added

    This revision also has 64 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 8f5f4e5379945510See the full diff
    • the // response's property type changed from string to integer, and format from no format to int32 for status

      response-property-type-changed

    • the // response's property type changed from string to integer, and format from no format to int32 for status

      response-property-type-changed

    • the // response's property type changed from string to integer, and format from no format to int32 for status

      response-property-type-changed

    • the // response's property type changed from string to integer, and format from no format to int32 for status

      response-property-type-changed

    • the // response's property type changed from string to integer, and format from no format to int32 for status

      response-property-type-changed

    • removed the optional property /// from the response with the status

      response-optional-property-removed

    • removed the optional property /// from the response with the status

      response-optional-property-removed

    • removed the optional property /// from the response with the status

      response-optional-property-removed

    • removed the optional property /// from the response with the status

      response-optional-property-removed

    • removed the optional property /// from the response with the status

      response-optional-property-removed

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    • the response property // became required for the status

      response-property-became-required

    This revision also has 41 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog