Hosted SMS
| cURL | .NET | Portal |Overview Hosted SMS allows you to bring your own number onto the Telnyx platform for SMS and MMS use only. The number remains with your current voice provider for voice services, but routes all inbound and outbound SMS and MMS messages through the Telnyx network. This is especially useful for landline numbers that normally would not have messaging capabilities. Telnyx can supplement the voice capabilities of that number by adding messaging functionality without affecting voice services. Hosted numbers must go through a verification process to ensure that you are the authorized user for that number and have the authority to make changes to the number’s messaging routing. To complete the verification, we need two documents: a signed Letter of Authorization (LOA) and the most recent bill from your current voice provider clearly showing your information and the number to be hosted with Telnyx.
Hosting numbers with Telnyx is not the same as porting a number, but they both have a similar process.
Not all numbers are capable of being Hosted with Telnyx.
cURL
Setting up your first Hosted SMS number
Check phone number eligibility for hosted messaging
Before creating a hosted SMS order, you can check if your phone numbers are eligible for hosted messaging.Example response
The eligibility check returns a status for each phone number. Only numbers with
"eligible": true and "eligible_status": "eligible" can be used for hosted messaging. Possible status values and descriptions are included in the eligibility check table.Table of eligible statuses for Hosted SMS Order
| eligible_status | description |
|---|---|
| billing_account_check_failed | Billing check failed. Try again or check billing. |
| billing_account_is_abolished | Account is abolished in billing. |
| eligible | Number is eligible for creating a Hosted SMS order. |
| number_can_not_be_active_in_your_account | Active numbers in your account are not allowed. |
| number_can_not_be_in_telnyx | Number already exists on the Telnyx platform and cannot be hosted. |
| number_can_not_be_repeated | Duplicate numbers are not allowed. |
| number_can_not_be_wireless | Wireless numbers are not allowed. |
| number_can_not_hosted_with_a_telnyx_subscriber | Number is already hosted with a Telnyx subscriber and cannot be hosted again. |
| number_is_not_a_us_number | Numbers outside the United States are not allowed. |
| number_is_not_a_valid_routing_number | Number is not a valid local routing number. |
| number_is_not_in_e164_format | Number must be in E.164 format. |
| numbers_can_not_be_validated | Numbers could not be validated. Try again or contact support. |
Create a hosted SMS order
This creates a new hosted sms number order:Example response
The numbers in this order are created in a pending status. They will remain that way until you validate the phone numbers and submit the necessary authorization documents. Once the Telnyx team reviews and approves your order, the status will change to
successful.eligible_status field in the response to see the reason for the error.
Validate phone numbers
This is a prerequisite for Uploading authorization documents.
1. Create the verification codes
The first request generates the verification codes for the phone numbers in your order. The verification codes are sent to the respective phone numbers. Request:201 without content if everything is successful and the verification codes are sent to the phone numbers. In this example, SMS codes will be sent to +15005550108 and +15005550921.
2. Validate the verification codes
The second request validates the verification codes for the phone numbers in your order. The verification codes must be created in step 1. They will be sent to the phone numbers using the specified verification method. Request:verified or rejected status for each phone number. If you receive a rejected status, please check the phone number and the verification code. If everything is correct, the status of your phone numbers will be ownership_successful.
Uploading authorization documents
Validate phone numbers is a prerequisite for this.
- Letter of Authorization
- The most recent bill from your voice provider
Example response
Right now, these numbers will not be visible in the Telnyx Portal. They will however be visible when using the Telnyx API.
Notifications
This section describes how the notifications are handled for Hosted SMS Orders.- All notifications are sent to the Webhook URLs configured in your Messaging Profile.
- Any change in the status of your Hosted SMS Order will trigger a notification. These changes include:
- Order created
- Order deleted
- Phone number ownership verified
- Phone number deleted
- LOA uploaded
- Order activated successfully
- Order activation failed: failed statuses are described in order and numbers failed statuses
- Add user configured notifications for email and portal to receive email and portal notifications.
Webhooks notifications
The JSON structure received in the webhooks is the following:User configured notifications for Email and Portal
In the Advanced Features - Notifications page you can configure email and portal notifications for Hosted SMS Orders status changes.- Create a New Notification Profile with a name using the “New Profile” button.
- Create a New Channel with Email: click the “New Channel” button, select the above profile, select email, and enter your notification email address.
- Create Notification Settings: click the “New Settings” button, select “Messaging Hosted SMS Activity”, and select the above profile.
Example of email and portal notification for Hosted SMS Order deleted (only text)
Order and Numbers activation failed statuses
You can have failed statuses for both the order and its numbers. The possible failed statuses are:| Order Status | Description |
|---|---|
| carrier_rejected | Losing carrier rejected a number porting request. |
| failed | Order has been closed. Contact support for more information. |
| ineligible_carrier | A number from the losing carrier cannot be ported to Telnyx. |
| Number Status | Description |
|---|---|
| failed | Number has been closed. Contact support for more information. |
| failed_carrier_rejected | Losing carrier rejected a number porting request. |
| failed_ineligible_carrier | Number from the losing carrier cannot be ported to Telnyx. |
| failed_number_already_hosted | Number is already in Telnyx and cannot be hosted. |
| failed_number_not_found | Number is not in Telnyx and cannot be hosted. |
| failed_timeout | Timed out while activating the number. |
.NET
Setting up your first Hosted SMS number
Create a hosted SMS order
This creates a new hosted sms number order:Example response
The numbers in this order are created in a pending status. They will remain that way until you submit the necessary authorization documents. Once the Telnyx team reviews your order and approves it, the status will change to
successful.Uploading authorization documents
You need to upload two documents in PDF format:- Letter of Authorization
- The most recent bill from your voice provider
Example response
Right now, these numbers will not be visible in the Telnyx Portal. They will however be visible when using the Telnyx API.
Portal
Setting up your first Hosted SMS Number
Create a hosted SMS order
- On the Mission Control Portal, click on to Numbers.
- Navigate to Hosted SMS
- Click on Add New Order

- Enter the number(s) you wish to host with Telnyx in +E.164 format
- The system will automatically check the eligibility of the entered phone numbers. Only eligible numbers can be used for hosted messaging.
- Choose the Message Profile you’d like to add to the number(s)
- Click on Create Order. You will automatically route to the next page where you need to upload your Authorization Documentation.

- Upload your LOA
- Upload your Bill
- Click on Submit

Right now, these numbers will not be visible in the Telnyx Portal. They will however be visible when using the Telnyx API.