Retrieve all voice dialing country permissions for this account

GET /v1/DialingPermissions/Countries

Retrieve all voice dialing country permissions for this account

Query parameters

  • IsoCode string(iso-country-code)

    Filter to retrieve the country permissions by specifying the ISO country code

  • Continent string

    Filter to retrieve the country permissions by specifying the continent

  • CountryCode string

    Filter the results by specified country codes

  • LowRiskNumbersEnabled boolean

    Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: true or false.

  • HighRiskSpecialNumbersEnabled boolean

    Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: true or false

  • HighRiskTollfraudNumbersEnabled boolean

    Filter to retrieve the country permissions with dialing to high-risk toll fraud numbers enabled. Can be: true or false.

  • PageSize integer(int64)

    How many resources to return in each list page. The default is 50, and the maximum is 1000.

    Minimum value is 1, maximum value is 1000.

  • Page integer

    The page index. This value is simply for client state.

    Minimum value is 0.

  • PageToken string

    The page token. This is provided by the API.

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • content array[object]
      Hide content attributes Show content attributes object
      • iso_code string(iso-country-code) | null
      • name string | null

        The name of the country.

      • continent string | null

        The name of the continent in which the country is located.

      • country_codes array[string] | null

        The E.164 assigned country codes(s)

      • low_risk_numbers_enabled boolean | null

        Whether dialing to low-risk numbers is enabled.

      • high_risk_special_numbers_enabled boolean | null

        Whether dialing to high-risk special services numbers is enabled. These prefixes include number ranges allocated by the country and include premium numbers, special services, shared cost, and others

      • high_risk_tollfraud_numbers_enabled boolean | null

        Whether dialing to high-risk toll fraud numbers is enabled. These prefixes include narrow number ranges that have a high-risk of international revenue sharing fraud (IRSF) attacks, also known as toll fraud. These prefixes are collected from anti-fraud databases and verified by analyzing calls on our network. These prefixes are not available for download and are updated frequently

      • url string(uri) | null

        The absolute URL of this resource.

    • meta object
      Hide meta attributes Show meta attributes object
      • first_page_url string(uri)
      • key string
      • next_page_url string(uri) | null
      • page integer
      • page_size integer
      • previous_page_url string(uri) | null
      • url string(uri)
GET /v1/DialingPermissions/Countries
curl \
 --request GET 'https://voice.twilio.com/v1/DialingPermissions/Countries' \
 --user "username:password"
Response examples (200)
{
  "meta": {
    "key": "content",
    "url": "https://voice.twilio.com/v1/DialingPermissions/Countries?IsoCode=US&PageSize=50&Page=0",
    "page": 0,
    "page_size": 50,
    "next_page_url": null,
    "first_page_url": "https://voice.twilio.com/v1/DialingPermissions/Countries?IsoCode=US&PageSize=50&Page=0",
    "previous_page_url": null
  },
  "content": [
    {
      "url": "https://voice.twilio.com/v1/DialingPermissions/Countries/US",
      "name": "United States/Canada",
      "links": {
        "highrisk_special_prefixes": "https://voice.twilio.com/v1/DialingPermissions/Countries/US/HighRiskSpecialPrefixes"
      },
      "iso_code": "US",
      "continent": "NORTH_AMERICA",
      "country_codes": [
        "+1"
      ],
      "low_risk_numbers_enabled": false,
      "high_risk_special_numbers_enabled": false,
      "high_risk_tollfraud_numbers_enabled": false
    }
  ]
}