Fetch voice country

GET /v1/Voice/Countries/{IsoCountry}

Voice pricing by country

Path parameters

  • IsoCountry string(iso-country-code) Required

    The ISO country code of the pricing information to fetch.

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
    • country string | null

      The name of the country.

    • iso_country string(iso-country-code) | null
    • outbound_prefix_prices array[object(outbound-prefix-price)] | null

      The list of OutboundPrefixPrice records, which include a list of the prefixes, the friendly_name, base_price, and the current_price for those prefixes.

      Hide outbound_prefix_prices attributes Show outbound_prefix_prices attributes object(outbound-prefix-price)
      • prefixes array[string]
      • base_price number
      • current_price number
      • friendly_name string
    • inbound_call_prices array[object(inbound-call-price)] | null

      The list of InboundCallPrice records.

      Hide inbound_call_prices attributes Show inbound_call_prices attributes object(inbound-call-price)
      • base_price number
      • current_price number
      • number_type string
    • price_unit string(currency) | null

      The currency in which prices are measured, specified in ISO 4127 format (e.g. usd, eur, jpy).

    • url string(uri) | null

      The absolute URL of the resource.

GET /v1/Voice/Countries/{IsoCountry}
curl \
 --request GET 'https://pricing.twilio.com/v1/Voice/Countries/{IsoCountry}' \
 --user "username:password"
Response examples (200)
{
  "url": "https://pricing.twilio.com/v1/Voice/Countries/US",
  "country": "United States",
  "price_unit": "USD",
  "iso_country": "US",
  "inbound_call_prices": [
    {
      "base_price": "0.0085",
      "number_type": "local",
      "current_price": "0.0085"
    },
    {
      "base_price": "0.022",
      "number_type": "toll free",
      "current_price": "0.022"
    }
  ],
  "outbound_prefix_prices": [
    {
      "prefixes": [
        "1907"
      ],
      "base_price": "0.090",
      "current_price": "0.090",
      "friendly_name": "Programmable Outbound Minute - United States - Alaska"
    }
  ]
}