Numbers & Inventory

List countries

Retrieve a list of all countries where DID numbers are available.

When to use:

  • Building country selection interface
  • Checking number availability by country
  • Starting the DID purchase flow

countries[].id feeds numbers_countries_cities_index, numbers_countries_regions_index, numbers_countries_locations_index and numbers_countries_cities_dids_index (country_id). countries[].name feeds numbers_search_show (country_name_contains). A country with has_provinces_or_states true lists its states in numbers_countries_regions_index.

get/api/v2/numbers/countries

Request

  • Base URL: https://app.didlogic.com
  • URL: https://app.didlogic.com/api/v2/numbers/countries
  • Auth: HTTP bearer

Response

returns list of available countries

Example response

{
  "countries": [
    {
      "id": 240,
      "name": "United States",
      "short_name": "US"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.