A user sends an SMS to your Twilio number
Build Powerful SMS Apps
The sky is the limit. If you can imagine it, you can probably build it on Twilio. See how »
We Have Short Codes
Send high volumes of SMS with the same great API, and documentation.
See for yourself »
An API Made for Humans
We heart APIs, and we built ours to be simple, powerful, and scalable.
See some code »
You're in Good Company
Big companies and one-man shops rely on Twilio to scale as their need grows.
See their stories »
Customer notifications.
Automatically send an SMS notification to users when an action occurs in your app's business logic. See how Media Temple and Ebay use Twilio SMS for notifications.
Group messaging.
With Twilio SMS it's easy as pie. With instant phone number provisioning your app can buy and assign phone numbers and send & receive SMS messages to groups of users.
Multi-factor authentication.
Make your users' web authentication more secure by adding a second factor SMS. See how Intuit secures user's sensitive personal data with Twilio SMS.
Interactive polling.
Quickly ask your users questions and get responses in realtime over Twilio SMS. See how Salesforce powers interactive feedback at conferences
Phone Numbers
Use the same Twilio phone numbers for SMS as you do phone calls. Great for applications that enable person to person messaging such as group texting.
Short Codes
When you need to send large volumes of SMS, short codes provide you the high message throughput needed. Great for applications that need to send marketing SMS messages.
"Using Twilio, we are able to close more transactions helping both ticket buyers and sellers"
// Download the twilio-php library from twilio.com/docs/libraries
require('Services/Twilio.php');
// Find your credentials at twilio.com/user/account
$client = new Services_Twilio('ACxxxxx', 'YYYY');
$message = $client->account->sms_messages->create(
'+14085551234', // From a Twilio number in your account
'+12125551234', // Text any number
"Hello monkey!"
);
# Download the twilio-python library from twilio.com/docs/libraries
from twilio.rest import TwilioRestClient
# Get your sid and auth token at twilio.com/user/account
client = TwilioRestClient("ACXXXXXXXXXXX", "YYYYYYYYYYYYYYY")
client.sms.messages.create(
# From a Twilio number you own
from_="+15105551234",
# Text any number
to="+12125551234",
body="Ahoy hoy!")
# Download the twilio-ruby library from twilio.com/docs/libraries require 'twilio-ruby' # find your credentials at twilio.com/user/account account_sid = 'AC043dcf9844e04758bc3a36a84c29761' auth_token = '62ea81de3a5b414154eb263595357c69' @client = Twilio::REST::Client.new account_sid, auth_token @client.account.sms.messages.create( :from => '+15105551234', # From a Twilio number you own :to => '+16105557069', # Text any number :body => 'Ahoy hoy!' )
// Download the twilio-java library from twilio.com/docs/libraries
import com.twilio.sdk.TwilioRestClient;
import com.twilio.sdk.resource.instance.Account;
import com.twilio.sdk.resource.factory.SmsFactory;
// Find your credentials at twilio.com/user/account
TwilioRestClient client = new TwilioRestClient("ACxxxxxxx", "YYYYYYYY");
Account mainAccount = client.getAccount();
SmsFactory smsFactory = mainAccount.getSmsFactory();
Map<String, String> smsParams = new HashMap<String, String>();
// Text message any number
smsParams.put("To", "+14085551234");
// From a valid Twilio number
smsParams.put("From", "+12125551234");
smsParams.put("Body", "This is a test message!");
smsFactory.create(smsParams);
// Download the twilio-csharp library from twilio.com/docs/libraries
using Twilio;
// Find your Account Sid and Auth Token at twilio.com/user/account
var twilio = new TwilioRestClient("ACxxxxxxx", "YYYYYYYYYYY");
var msg = twilio.SendSmsMessage("+12125551234", // From a Twilio number
"+15553334444", // Text any number
"Ahoy hoy!");
When receiving an SMS, you can instruct Twilio to <SMS> back with another message by specifying up to 160 characters of text in the body
Optionally, you can also <Redirect> control flow to another script by specifying an absolute or relative URL
With Twilio, there are no contracts, no setup charges, and no shenanigans... you just pay for what you use, when you use it.
Twilio comes out of the box with all the goodies, so you can quickly get building powerful voice and SMS apps. Transcription, recording storage, phone number API provisioning, and a text-to-speech engine are all ready and waiting for you.
Try Twilio Free1 ¢
Send
Per message
1 ¢
Receive
Per message
$1
Standard
Per month, US domestic
$2
Toll-free
Per month, US domestic