Rate this page:

Programmable Voice

With Twilio, you can quickly make and receive voice calls in your application. We provide the docs, code samples, helper libraries, and developer tools you need on your journey. You bring your imagination. Let’s build something amazing together.

Make your first voice call
When your phone number receives an incoming call, Twilio will send an HTTP request to your server at /answer.
Twilio servers
Your app tells Twilio how to respond with a text to speech response.
Your app
from flask import Flask
from twilio.twiml.voice_response import VoiceResponse
app = Flask(__name__)

@app.route("/answer", methods=['GET', 'POST'])
def answer_call():
    resp = VoiceResponse()
    resp.say("Twilio's always there when you call!")
    return str(resp)

if __name__ == "__main__":
Twilio gets the instructions from your app and sends the voice response.
Twilio's always there when you call!

Get Started

With just a few lines of code, you’ll make your first outgoing phone call with the Voice API. Add a few more and your app can respond to incoming callers. Choose your programming language to get started.

Ahoy, World!

Make your first call. Jump to a Quickstart in the language of your choice:

Build your App

You’ve got an idea in mind. Let’s get it to production.

Pick the docs that are right for you. These short tutorials, sample apps, and API reference docs will get you from dream to HTTP 200 OK.

Advanced Features

Your application is unique, but you’re not alone – we’ve got the building blocks you need to grow and scale. Use Twilio with your current VoIP system, debug call issues, find the right data, and queue and modify calls. Deploy your app with confidence.

Twilio’s Voice Insights takes your apps to the next level and helps you target the right improvements. Surface jitter, mean opinion score, and latency issues while monitoring the carrier and hang-up data you need to improve your service.

Build a Conversational IVR using machine learning and natural language understanding with Twilio Autopilot.

Rate this page:

Thank you for your feedback!

We are always striving to improve our documentation quality, and your feedback is valuable to us. Please select the reason(s) for your feedback or provide additional information about how we can improve:

Sending your feedback...
🎉 Thank you for your feedback!
Something went wrong. Please try again.

Thanks for your feedback!

Refer us and get $10 in 3 simple steps!

Step 1

Get link

Get a free personal referral link here

Step 2

Give $10

Your user signs up and upgrade using link

Step 3

Get $10

1,250 free SMSes
OR 1,000 free voice mins
OR 12,000 chats
OR more