Create an Incoming Phone Number
Create an Incoming Phone Number.
Permissions
The API token must include the following scopes: Numbers.
Path Parameters |
---|
AccountSid uuid — REQUIREDThe unique identifier for the account that is associated with this phone number. |
Request Body |
---|
AreaCode string — REQUIREDThe area code of your new number. A new number within this area code will be generated for you. Area code is necessary if phone number is not present. |
PhoneNumber string — REQUIREDThe incoming number in E.164 format. |
AddressSid stringThe unique identifier for the address associated with this phone number. |
FriendlyName stringA formatted version of the number. |
IdentitySid stringThe unique identifier for the identity associated with this phone number. |
SmsApplicationSid stringThe unique identifier for the application associated with SMS handling on this phone number. If |
SmsFallbackMethod stringPossible values: [ Whether the request to |
SmsFallbackUrl stringThe URL to request if errors occur when fetching SmsUrl. |
SmsMethod stringPossible values: [ Whether the request to SmsUrl is a |
SmsUrl stringThe URL to request when an incoming SMS is received. |
StatusCallback stringThe URL to request to pass status updates to. |
StatusCallbackMethod stringPossible values: [ Whether the request to StatusCallback is a |
TrunkSid stringThe unique identifier for the Trunk associated with this phone number. |
VoiceApplicationSid stringThe unique identifier for the application associated with call handling on this phone number. If |
VoiceCallerIdLookup booleanWhether or not to look up a caller's name in the database. |
VoiceFallbackMethod stringPossible values: [ Whether the request to VoiceFallbackUrl is a |
VoiceFallbackUrl stringThe URL to request if errors occur when fetching |
VoiceMethod stringPossible values: [ Whether the request to Url is a |
VoiceReceiveMode stringPossible values: [ Whether this number can receive calls or fax. Possible values are voice or fax. Default is voice. |
VoiceUrl stringThe URL to request when an incoming call is received. |
Responses | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
200 OK
|