API Reference

Get in-depth information about Twilio's REST APIs and SDKs. Authentication, parameters, response formats, and errors - find it all here.

Twilio REST API

The Twilio REST API allows you to query meta-data about your account, phone numbers, calls, text messages, and recordings. You can also do some fancy things like initiate outbound calls and send text messages.

TwiML

TwiML is a set of instructions you can use to tell Twilio what to do when you receive an incoming call or SMS.

IP Messaging

Twilio IP Messaging makes it easy for you to add chat features into your web and native mobile applications without building or scaling a real-time backend.

Programmable Video

Twilio Video makes it easy for you to add multi-party video calling into your web and native mobile applications quickly.

Twilio Client (VoIP)

Twilio Client extends the power of Twilio beyond the traditional telephone network. In the past, the only way to transport audio into and out of Twilio was via PSTN using telephones. With Twilio Client you are no longer restricted to building Twilio applications that rely on interacting with traditional telephones. And best of all, your existing applications will already work with Twilio Client.

Notify API Reference

Notify provides a high level API for multi-channel notifications over SMS, Apple Push Notifications, Google Cloud Messaging, and Facebook Messenger, with more to come.

Lookups REST API

The Lookups subdomain provides an API to retrieve additional information about a phone number. Lookups currently supports retrieval of Region-specific phone number formatting, Carrier Information and Caller Name information.

Pricing REST API

The Pricing REST resource provides a simple API to pull real time, account-specific pricing for Twilio's voice, messaging and phone number products.

TaskRouter

Twilio TaskRouter is a system for distributing tasks such as phone calls, leads, support tickets, and other work items to the people and processes that can best handle them

Network Traversal Service

Twilio’s Network Traversal Service is a globally distributed STUN/TURN service that helps you deploy more reliable peer-to-peer communications applications.

Elastic SIP Trunking

Twilio Elastic SIP Trunking is a cloud-based solution that provides connectivity for IP-based communications infrastructure to connect to the PSTN, for making and receiving telephone calls to the 'rest of the world' via any broadband internet connection.

Programamable Voice - SIP

Connect your SIP endpoints to Twilio and start building voice apps with Twilio’s APIs and application stack. Also, once you’ve connected with Twilio, you can route your calls to any phone, browser, mobile app, or any other SIP endpoint. And best of all, SIP already works with all your existing Twilio apps.

Monitor REST API

Documentation for alerts and events in the Monitor REST API.

Debugging Errors

Writing an application on Twilio is easy as pie. But here are a few tips we've found helpful...

Security and Availability

Twilio supports encryption to protect communications between Twilio and your web application. Just specify an HTTPS url.

2008 REST and TwiML API

The 2008 version of the Twilio API is deprecated. You can download an archive of the documentation content for that version of the API here. We recommend that you use the latest REST API and TwiML API if at all possible.