Fetch voice number

GET /v1/Voice/Numbers/{Number}

Voice pricing for a specific phone number

Path parameters

  • Number string(phone-number) Required

    The phone number 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
    • number string(phone-number) | null

      The phone number.

    • country string | null

      The name of the country.

    • iso_country string(iso-country-code) | null
    • outbound_call_price object(outbound-call-price) | null

      The OutboundCallPrice record, which includes a list of origination_prefixes and the base_price and current_price for those prefixes.

      Hide outbound_call_price attributes Show outbound_call_price attributes object(outbound-call-price) | null
      • base_price number
      • current_price number
    • inbound_call_price object(inbound-call-price) | null

      The InboundCallPrice record. If null, the Phone Number is not a Twilio number owned by this account.

      Hide inbound_call_price attributes Show inbound_call_price attributes object(inbound-call-price) | null
      • 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/Numbers/{Number}
curl \
 --request GET 'https://pricing.twilio.com/v1/Voice/Numbers/{Number}' \
 --user "username:password"
Response examples (200)
{
  "url": "https://pricing.twilio.com/v1/Voice/Numbers/+987654321",
  "number": "+987654321",
  "country": "Iran",
  "price_unit": "USD",
  "iso_country": "IR",
  "inbound_call_price": {
    "base_price": null,
    "number_type": null,
    "current_price": null
  },
  "outbound_call_price": {
    "base_price": "0.255",
    "current_price": "0.255"
  }
}