Rate this page:

Programmable Messaging

Send messages to customers across preferred channels like SMS, MMS, and WhatsApp with one API. Find the documentation, sample code, and developer tools you need to build your solution for alerts, notifications, promotions, marketing messages, and more. Let’s get building.

Choose your messaging channel
Buy a Twilio phone number or port your phone number to Twilio.
Twilio servers
Send a message using the Programmable Messaging REST API.
Your app

const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = require('twilio')(accountSid, authToken);

      .create({from: '+15557122661', body: 'Ahoy, world!', to: '+15558675310'})
      .then(message => console.log(message.sid));
View complete examples
Twilio sends the "Ahoy, world!" text message to the recipient.
Ahoy, world!

Choose your messaging channel

Programmable Messaging offers high deliverability, increased engagement, and compliance solutions on your messaging channel of choice.

No matter the channel, you only need one API for your transactional messaging. Choose your messaging channel and start onboarding today.


Send your first message.

Jump to a quickstart for your messaging channel of choice:

Solutions for your use case

Build for your use cases with Messaging Services. 

Messaging Services allow you to configure multiple senders, compliance options, and features all in one place.

Messaging Services

Streamline and scale your messaging applications with Messaging Services.

Messaging Services Features

Learn more

You've got an idea in mind. Lets get it to production. 

Pick the docs that are right for you. These reference docs, tutorials, and onboarding guides will get you across the deploy line, straight to HTTP 200 OK. 

SMS Regulatory Compliance

Ensure your messages are delivered by complying with your country's regulations

Thank you for your feedback!

Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

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

Thanks for your feedback!