Update: Twilio’s official APIs are now available on RapidAPI. Be sure to check them out.
It’s the new year! Why not kick 2017 off with a side project? We’re wrapping up our #12DaysOfAPIs series that profile cool APIs to test. Today, we’re covering Twilio’s primary messaging and voice call API.
Twilio is the dominant API company when it comes to texting and voice calls.
Source: GIPHY
Rather than build an app’s text functionality from scratch, you can use the Twilio API to send text (or multimedia) messages. Similarly, if you need to programmatically make actual phone calls, Twilio lets you integrate real-time phone calls into applications.
While Twilio offers multiple APIs, we broke down the various functionalities into two API packages:
Twilio’s primary API is likely where you will start any side project, while the Copilot API is more useful for scaling an existing project. We have packages for both APIs on our marketplace, so that you can make test calls from within your browser (more on how in a bit). Check them out here (Twilio, Twilio Copilot).
One of the things we love about Twilio’s API is its ubiquitous use cases.
The most obvious use case for Twilio is the text messaging feature (aka the sendSMS
and sendMMS
endpoints). Texting is the most widely used app on smartphones, with 97% of Americans using a text app at least once a day. It’s no wonder that developers are incorporating text messages more and more into their scripts.
Source: GIPHY
Here are some of the many ways that developers are incorporating Twilio’s texting functionality into their programs:
As for the voice side of things, Twilio has some interesting case studies on the phone side as well. For example, the Democratic National Committee used the Twilio voice API to power their voter hotline.
1. Set Up: Getting the Twilio Credentials
Now that we’ve given you all these project ideas, we bet you’re anxious to get started. You can make Twilio API calls right within your browser using our API package.
The Twilio API package is relatively easy to use with only three endpoints (makeCall
, sendSms
, sendMms
). However, to use the Twilio API, you have to get an account and a number of account details (accountSID
, accountToken
, messagingSID
and a Twilio phone number). Getting these details can be a little complicated, so we wrote a tutorial. Check it out here to get set up.
2. Scaling the Twilio API: Free and Paid models
The Twilio API has a pay-as-you-go pricing model (for when you actually want to invite users to your app), but also offers a free developer testing environment. The developer model allows you to get a Twilio phone number for making a phone call and sending text or multimedia messages to one phone number.
For example, we built a TextAGIF project we built with Twilio free API and the GIPHY API.
In that project, we could send GIFs from a Twilio phone number to a single developer phone number. The free developer account let us send the multimedia message to the single developer phone number, but not any others (which would require payments).
Like we said, you can do a lot with the Twilio API, but pairing it with other APIs really takes it to the next level. RapidAPI lets you call multiple APIs through one portal. Here are some projects you could build with the Twilio API through RapidAPI:
Need more ideas? Browse all the APIs on the marketplace here. Let us know what you build in the comments below!
We're thrilled to announce the latest update to the Rapid Enterprise API Hub (version 2024.3)!…
Are you curious about what your API consumers are searching for? Is your Hub effectively…
The RapidAPI team is excited to announce the February 2024 update (version 2024.2) for the…
This January's release brings exciting features and improvements designed to empower you and your developers.…
Rapid API is committed to providing its users with the best possible experience, and the…
In today's fast-paced digital world, APIs (Application Programming Interfaces) have become the backbone of modern…
View Comments
Cost?
Hi Celia Dunn,
You can view Twilio's API pricing here: https://www.twilio.com/pricing
One of the latest voice analysis platforms that I’ve seen is Mercury. This comes from the hedge fund world so there appears to be quite a lot of substance behind it. Simple REST interface .. maybe helpful! https://www.helioslife.enterprises/documentation/mercury