Retrieve all voice dialing country permissions for this account

GET /v1/DialingPermissions/Countries

TODO: Resource-level docs

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

    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.

Responses

  • 200

    OK

    Hide response attributes Show response attributes object
    • content array[object]
      Hide content attributes Show content attributes array[object]
      • 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)

      • high_risk_special_numbers_enabled boolean | null

        Whether dialing to high-risk special services numbers is enabled

      • high_risk_tollfraud_numbers_enabled boolean | null

        Whether dialing to high-risk toll fraud numbers is enabled, else false

      • iso_code string(iso-country-code) | null

        The ISO country code

      • low_risk_numbers_enabled boolean | null

        Whether dialing to low-risk numbers is enabled

      • name string | null

        The name of the country

      • 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)
      • page integer
      • page_size integer
      • previous_page_url string(uri)
      • url string(uri)
GET /v1/DialingPermissions/Countries
curl \
 -X GET https://voice.twilio.com/v1/DialingPermissions/Countries \
 --user "username:password"
Response examples (200)
{
  "content": [
    {
      "continent": "string",
      "country_codes": [
        "string"
      ],
      "high_risk_special_numbers_enabled": true,
      "high_risk_tollfraud_numbers_enabled": true,
      "iso_code": "string",
      "links": {},
      "low_risk_numbers_enabled": true,
      "name": "string",
      "url": "https://example.com"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}
Response examples (200)
{
  "content": [
    {
      "continent": "string",
      "country_codes": [
        "string"
      ],
      "high_risk_special_numbers_enabled": true,
      "high_risk_tollfraud_numbers_enabled": true,
      "iso_code": "string",
      "links": {},
      "low_risk_numbers_enabled": true,
      "name": "string",
      "url": "https://example.com"
    }
  ],
  "meta": {
    "first_page_url": "https://example.com",
    "key": "string",
    "next_page_url": "https://example.com",
    "page": 42,
    "page_size": 42,
    "previous_page_url": "https://example.com",
    "url": "https://example.com"
  }
}