Purchase a phone-number for the account.
Purchase a phone-number for the account.
Path parameters
The SID of the Account that will create the resource.
Response
Created
The SID of the Account that created this IncomingPhoneNumber resource.
The SID of the Address resource associated with the phone number.
Whether the phone number requires an Address registered with Twilio. Can be: none, any, local, or foreign.
The API version used to start a new TwiML session.
Whether the phone number is new to the Twilio platform. Can be: true or false.
The date and time in GMT that the resource was created specified in RFC 2822 format.
The date and time in GMT that the resource was last updated specified in RFC 2822 format.
The string that you assigned to describe the resource.
The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations.
The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.
The phone number's origin. twilio identifies Twilio-owned phone numbers and hosted identifies hosted phone numbers.
The unique string that that we created to identify this IncomingPhoneNumber resource.
The SID of the application that handles SMS messages sent to the phone number. If an sms_application_sid is present, we ignore all sms_*_url values and use those of the application.
The HTTP method we use to call sms_fallback_url. Can be: GET or POST.
The URL that we call when an error occurs while retrieving or executing the TwiML from sms_url.
The HTTP method we use to call sms_url. Can be: GET or POST.
The URL we call when the phone number receives an incoming SMS message.
The URL we call using the status_callback_method to send status information to your application.
The HTTP method we use to call status_callback. Can be: GET or POST.
The SID of the Trunk that handles calls to the phone number. If a trunk_sid is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a trunk_sid will automatically delete your voice_application_sid and vice versa.
The URI of the resource, relative to https://api.twilio.com.
The SID of the application that handles calls to the phone number. If a voice_application_sid is present, we ignore all of the voice urls and use those set on the application. Setting a voice_application_sid will automatically delete your trunk_sid and vice versa.
Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: true or false.
The HTTP method we use to call voice_fallback_url. Can be: GET or POST.
The URL that we call when an error occurs retrieving or executing the TwiML requested by url.
The HTTP method we use to call voice_url. Can be: GET or POST.
The URL we call when the phone number receives a call. The voice_url will not be used if a voice_application_sid or a trunk_sid is set.
The parameter displays if emergency calling is enabled for this number. Active numbers may place emergency calls by dialing valid emergency numbers for the country.
The SID of the emergency address configuration that we use for emergency calling from this phone number.
The status of address registration with emergency services. A registered emergency address will be used during handling of emergency calls from this number.
The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.
The phone number type.