TPI Integration with Twilio


SMS-Magic is a single-window service for all your messaging needs. To start messaging, you can buy SMS credits, Virtual mobile numbers, shortcodes/longcodes via SMS-Magic, and experience power of messaging solution.

In Addition, SMS-Magic has two offerings – BYOP & BYON which will be helpful for customers who want to adopt SMS-Magic by purchasing user licenses and continue using their existing phone numbers or telecom connections. 

“Bring Your Own Provider” or BYOP  – This offering is for the customers who are already using SMS Aggregator in a standalone way or with Dialers and have long term contracts. They can start using SMS-Magic without discontinuing the existing services. They can connect their existing SMS Provider with the SMS-Magic Platform. 

BYOP enables you to use a phone number provided by an external provider without losing the functional benefits of the SMS-Magic Application. 

Customers already connected with messaging providers such as Twilio, can continue using Native SMS-Magic Application on Salesforce, Zoho, and other CRMs together and give your businesses the best of both worlds. This separation of Application and the underlying messaging provider gives businesses all the features and benefits of the application you know, but use a trusted provider at the messaging layer too. 

TPI Integration with Twilio

SMS-Magic offers a third-party API Integration feature. When an SMS-Magic customer wants to use his own account at SMS Provider like Twilio and wants to use the SMS-Magic App on Salesforce, TPI Integration helps.

The following sections talk about how SMS-Magic TPI integration works with Twilio:


Before you start TPI Integration of Twilio with SMS-Magic, answer the following questions: 

  1. Is it SMS integration Or WhatsApp Integration?
  2. Is MMS enabled for the incoming numbers that you are going to use for different countries? 
  3. Are you going to send messages only in the USA or other countries as well?
  4. If your numbers belong to the master account at Twilio then we need Account SID & Auth token. (
  5. If your numbers belong to sub-account at Twilio then we need the following information: 
    1. Account SID of master account  
    2. Credentials of the sub-account i.e. 
      1. Account SID of sub-account 
      2. AuthToken of sub-account

Twilio Setup to be done by Customer

As a Customer, you need to make sure that the Incoming URL is set up correctly at your Twilio account for all numbers so that you can receive the responses.

Delivery reports of outgoing SMS sent will be synced with CRM as and when received from Twilio.

For Twilio number, Incoming URL should be set to below -:

If the customer is using, SMS Magic USA Server -:

If the customer is using, SMS Magic EU Server -:

Once the incoming URL is set, any incoming message terminating at number should get listed under message logs on Twilio console.

For Twilio-WhatsApp -:

Please configure the Answer URL as follows:

1. SMS-Magic US Server:

2. SMS-Magic EU Server:

SMS-Magic Setup to be done by our CS

For further assistance and to make sure that TPI Integration is working properly, contact our Customer Care Team at

You need to share the Account SID & Auth token with the Customer Success Agent of SMS-Magic. They will set a specific route for that customer on the SMS-Magic Server. Please share information in a secure way, using a key base.

SMS-Magic Customer Support Agent will test incoming and outgoing on a test number to make sure TPI integration is working fine.

Was This Article Helpful?

Important Announcement!

URGENT! Please register the 10-digit business phone number (e.g. 555-555-5555) that your organization uses to send texts to consumers in the U.S. Failure to register may cause heavy penalties and disruption to all your text messaging communications.