Communications API

A comprehensive communications API for connecting people through software.

Send with precise control over every aspect of your message or share control with Twilio and up-level your comms with data-driven optimizations.

1

Buy a Twilio phone number or port your phone number to Twilio.

Twilio Servers

2

Send a message using the Twilio Communications API

1const accountSid = process.env.TWILIO_ACCOUNT_SID;
2const authToken = process.env.TWILIO_AUTH_TOKEN;
3const client = require('twilio')(accountSid, authToken);
4
5client.messages
6 .send({
7 to: {
8 address: '+14153902337',
9 channel: 'phone'
10 },
11 content: {
12 text: 'Ahoy, world!'
13 }
14 })

3

Twilio sends the “Ahoy, world!” text message to the recipient.

Ahoy, world!


SMS and MMS

Send and receive text and media messages programmatically. SMS messages don’t require an app or internet, and have the highest open rates.

Build an application in minutes that sends your first SMS message with Twilio.


RCS

Send text and media messages from your brand—not from a phone number—programmatically. RCS supports rich content (like cards or carousels), read receipts, and more.