Create an Incoming Phone Number
Purchases an available number and provisions it as an Incoming Phone Number in the account. Search first with Available Phone Numbers, or use SignalWire REST Purchase phone number for a JSON request. To register a number you already own instead of purchasing inventory, use Imported Phone Numbers.
Purchasing a number starts a release hold, so you can’t release it right away. For most Spaces the hold lasts 14 days, with up to 2 early releases each month. See Delete an incoming phone number.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Numbers.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Path parameters
Request
The phone number to purchase in E.164 format. Must start with + followed by 5-17 digits.
Whether the request to SmsFallbackUrl is a GET or a POST. Default is POST.
Whether the request to SmsUrl is a GET or a POST. Default is POST.
The URL to request to pass status updates to. See the Incoming call status callback webhook for the payload your URL will receive.
Whether the request to StatusCallback is a GET or a POST. Default is POST.
Whether the request to VoiceFallbackUrl is a GET or a POST. Default is POST.
Whether the request to VoiceUrl is a GET or a POST. Default is POST.
Whether this number can receive voice calls or faxes. Default is voice.
Response
How incoming calls to this number are handled. laml_webhooks sends calls to voice_url, and laml_application sends them to the application in voice_application_sid. Any other value means the number’s call handler was set outside the Compatibility API.
This field is read-only in the Compatibility API. Setting VoiceUrl or VoiceApplicationSid switches the number to laml_webhooks or laml_application; to choose any other handler, use Update phone number.
The ISO 3166-1 alpha-2 country code for this phone number.
Whether the number is part of a port-in that hasn’t completed. A number pending port-in can’t be assigned to a 10DLC campaign.
Whether the request to SmsFallbackUrl is a GET or a POST.
Whether the request to SmsUrl is a GET or a POST.
Whether the request to StatusCallback is a GET or a POST.
Whether the request to VoiceFallbackUrl is a GET or a POST.
The URL to request if errors occur when fetching Url, or null if not set.
Whether the request to Url is a GET or a POST.
The verification status for toll-free numbers. Only present for toll-free numbers.