Buy

Returns a list of cities for countries where has_provinces_or_states is false.

get/v1/buy/countries/{country_id}/cities

Request

  • Base URL
    https://api.wavix.com
  • URL
    https://api.wavix.com/v1/buy/countries/{country_id}/cities
  • Auth
    HTTP bearer

Path parameters

country_idinteger required
Example:1891

The unique ID of the country.

Query parameters

text_enabled_onlyboolean

When true, returns only cities that offer text-enabled numbers.

Response

Returns the list of cities.

Example response

{
  "cities": [
    {
      "id": 3213,
      "name": "Paris"
    }
  ]
}

Changes

    • breaking

      the response's body type changed from no type to object for status

    • info

      removed subschema #2 from the response body allOf list for the response status

    • info

      added the non-success response with the status

    • info

      added the required property to the response with the status