Fetch available phone number country

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json

Country codes with available phone numbers

Path parameters

  • AccountSid string Required

    The SID of the Account requesting the available phone number Country resource.

  • CountryCode string(iso-country-code) Required

    The ISO-3166-1 country code of the country to fetch available phone number information about.

Responses

  • OK

    Hide response attributes Show response attributes object
    • beta boolean | null

      Whether all phone numbers available in the country are new to the Twilio platform.

    • country string | null

      The name of the country

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

      The ISO-3166-1 country code of the country.

    • subresource_uris object(uri-map) | null

      A list of related resources identified by their relative URIs

    • uri string(uri) | null

      The URI of the Country resource, relative to https://api.twilio.com

GET /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json
curl \
 -X GET https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json \
 --user "username:password"
Response examples (200)
{
  "beta": true,
  "country": "string",
  "country_code": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}
Response examples (200)
{
  "beta": true,
  "country": "string",
  "country_code": "string",
  "subresource_uris": {},
  "uri": "https://example.com"
}