Fetch the Inbound Processing Region assigned to a phone number.

GET /v2/PhoneNumbers/{PhoneNumber}

Fetch the Inbound Processing Region assigned to a phone number.

Path parameters

  • PhoneNumber string Required

    The phone number in E.164 format

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

      The phone number in E.164 format

    • url string(uri) | null

      The absolute URL of the resource.

    • sid string | null

      A 34 character string that uniquely identifies the Inbound Processing Region assignments for this phone number.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^QQ[0-9a-fA-F]{32}$.

    • account_sid string | null

      The unique SID identifier of the Account.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • friendly_name string | null

      A human readable description of the Inbound Processing Region assignments for this phone number, up to 64 characters.

    • voice_region string | null

      The Inbound Processing Region used for this phone number for voice.

    • date_created string(date-time) | null

      The date that this phone number was assigned an Inbound Processing Region, given in ISO 8601 format.

    • date_updated string(date-time) | null

      The date that the Inbound Processing Region was updated for this phone number, given in ISO 8601 format.

GET /v2/PhoneNumbers/{PhoneNumber}
curl \
 --request GET 'https://routes.twilio.com/v2/PhoneNumbers/{PhoneNumber}' \
 --user "username:password"
Response examples (200)
{
  "sid": "QQaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://routes.twilio.com/v2/PhoneNumbers/+18001234567",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "phone_number": "+18001234567",
  "voice_region": "au1",
  "friendly_name": "friendly_name"
}