Migrating from Twilio to Plivo is a painless process. The two companies’ API structures, implementation mechanisms, XML structure, SMS message processing, and voice call processing are similar. We wrote this technical comparison between Twilio and Plivo APIs so that you can scope the code changes for a seamless migration.
Most of the APIs and features that are available on Twilio are also available on Plivo, and the implementation mechanism is easier as the steps involved are almost identical. This table gives a side-by-side comparison of the two companies’ features and APIs. An added advantage with Plivo is that not only can you code using the familiar API/XML coding method, you can also implement your use cases using PHLO (Plivo High Level Objects), a visual workflow builder that lets you create workflows by dragging and dropping components onto a canvas — no coding required.
Features and APIs | Twilio | Plivo | Similarities | Implementation Interface |
Voice API: Make phone calls | ✅ | ✅ | Request and response variables’ structure |
API PHLO |
Programmatically manage call flows | Twiml | Plivo XML | XML element and its attributes structure |
XML PHLO |
Geo Permissions | ✅ | ✅ | Feature parity | Console |
Number Lookup API | ✅ | ✅ | API Parity | API |
Phone number management | ✅ | ✅ | Feature parity |
API Console |
Call Insights | ✅ | ✅ | Feature parity | Console |
Validating Requests | ✅ | ✅ | Feature parity |
API XML |
Subaccounts | ✅ | ✅ | Feature parity | API |
Speech recognition | ✅ | ✅ | Feature parity | XML |
SSML (Speech Synthesis Markup Language) | ✅ | ✅ | Feature parity |
XML PHLO |
Browser and Mobile SDKs | ✅ | ✅ | Feature parity |
Browser Android iOS |
Transcription | ✅ | ✅ | Feature parity |
API XML PHLO |
Custom SIP Headers | ✅ | ✅ | Feature parity |
API XML PHLO Browser SDK Mobile SDKs |
HTTP callbacks | ✅ | ✅ | Feature parity |
API XML PHLO |
Start by signing up for a free trial account that you can use to experiment with and learn about our services. The free trial account comes with free credits, and you can add more as you go along. You can also add a phone number to your account, or port a number from Twilio to Plivo, to start testing the full range of our voice and SMS features. A page in our support portal walks you through the signup process.
To migrate an existing application from Twilio to Plivo using APIs, follow the voice quickstart guides for one of the seven languages Plivo provides SDKs for: PHP, Node.js, C# (.NET), Java, Python, Ruby, and Go. For another alternative that lets you evaluate Plivo’s SMS APIs and their request and response structure, use our Postman collections.
Let’s take a look at the process of refactoring the code to migrate your app from Twilio to Plivo to set up a simple Python application to make an outbound call by changing just a few lines of code.
Twilio | Plivo |
|
|
Replace the authentication placeholders with authentication credentials from the Twilio or Plivo console.
Alternatively, you can implement the same functionality using one of our PHLO templates. To make an outbound call, you can create a PHLO like this:
You can migrate an application for receiving and handling an incoming call from Twilio to Plivo just as seamlessly, as in this example:
Twilio | Plivo |
|
|
Here again you can implement the same functionality using one of our PHLO templates:
You can migrate an application for forwarding an incoming call from Twilio to Plivo as in this example:
Twilio | Plivo |
|
|
Here again you can implement the same functionality using one of our PHLO templates:
For more information about migrating your voice applications to Plivo, check out our detailed use case guides, available for all seven programming languages and PHLO.
You can migrate applications that serve other use cases too:
If you want to continue using your phone numbers from Twilio, you can port the numbers to Plivo without having any downtime on your services for your customers. Phone number porting must be requested by a phone number’s owner. Here’s an overview of the process for porting a phone number to Plivo:
You can check our number porting guide to initiate the process.
You can rent new phone numbers on the Plivo platform for your migrated applications as well. Plivo provides a self-serve console to rent new numbers and to manage them. You can also use the Phone Numbers API for number management. Our Phone Numbers quickstart guide provides more information.