Import a Phone Number
Registers a phone number you already own so it can route communications through the project while remaining externally hosted. Use Create an Incoming Phone Number to purchase from SignalWire inventory, or SignalWire REST Import phone number for a JSON request.
Note: This is a Partner API. To enable it on your SignalWire Space, contact Sales.
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 import in E.164 format. Must start with + followed by 5-30 digits.
The capabilities to enable for this phone number. If not provided, defaults to all capabilities (sms, voice, fax, mms). If provided, must include at least one capability.
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.