Menu

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?

Programmable SMS

Twilio makes sending and receiving SMS easy. Find the documentation, sample code, and developer tools you need to build exactly what you want, fast. We’ll handle the complexity of mobile carrier and global regulations. Let’s get building.

Send your first message
When your phone number receives an incoming message, Twilio will send an HTTP request to your server at /sms
1
Twilio servers
Your app tells Twilio how to respond with a text message
2
Your app

const MessagingResponse =
  require("twilio").twiml.MessagingResponse;

  app.post("/sms", (req, res) => {
    const twiml = new MessagingResponse();
    twiml.message("Thanks for signing up!");
    res.end(twiml.toString());
  });
View complete examples
Twilio gets the instructions from your app and sends the text message
3
Thanks for signing up!

Get Started

"Ahoy, World" is a few lines of code away. Choose your programming language and dive in. We’ve got helper libraries and Quickstarts to get you sending SMS and MMS in your web app, fast.

Ahoy, World!

Send your first message. 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 guides, sample app tutorials, and API reference docs will get you across the deploy line, straight to HTTP 200 OK.

Guides

Step-by-step instructions for how to build common features:

Sample App Tutorials

API Reference

Advanced Features

Give your app the power to be successful in the wild. These features will help you build for resiliency, scale for traffic, fight fraud and expand internationally. Deploy with confidence.

Twilio Copilot tackles challenges before they make it to your error logs. Increase your message delivery rates, find the right phone number to pair with specific users, and scale your message volume.

Message Successfully delivered