API

Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

An Application Programming Interface (API) is provided by a service or program so that others may use the features and functions of the system. APIs are like a contract that describes how a consumer will make requests of the system, and what they will receive in return.

More on APIs

An API defines the means by which the consumer of the API invokes functions and receives data in return from the provider of the API. There are many different kinds of APIs, from the Swift APIs provided by iOS to build mobile apps, to RESTful APIs provided by Twilio that allow developers to send SMS and do tons of other things.

Incoming SMS Diagram

Twilio, as an API company, provides many different kinds of APIs to our customers to help them build applications that communicate. Check out the API reference for a full listing of the types of APIs Twilio provides for developers to use. Primarily, Twilio provides REST APIs and software APIs for developers to interact with in order to do fun things like answer phone calls, make video calls, or instantly synchronize data between two clients.

REST APIs

A REST API allows systems to communicate with one another and invoke functions over the Internet.

Software APIs

In a typical software program, you will use a combination of a programming language's built-in features and syntax along with APIs provided either by the language's standard library or libraries created and published by third parties. Twilio provides libraries for many popular programming languages that allow developers on those platforms to more easily consume our services.

Here's an example of using Twilio's helper libraries to send an SMS message using different languages.

Loading Code Sample...
      
      
      
      

      Don't know an API from an IPA? Talk to an expert, or get some help from our support team.