A user sends an SMS to your Twilio number

1

2

3

4

HOW PEOPLE USE TWILIO SMS

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

GET TWO-WAY SMS TWO WAYS

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.

  • Person-to-person messaging - Let your users send and receive SMS messages to mobile phones.
  • Voice capable - Just like any other Twilio number, these numbers can make and receive phone calls.
  • Self-service. - Sign up for an account and start texting in minutes.

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.

  • High throughput - We have the carrier capacity you need to send many SMS per second.
  • Volume pricing - We offer simple and aggressive short code pricing. No shenanigans.
  • Same great API and documentation - Use your existing Twilio SMS apps with minimal changes.

"Using Twilio, we are able to close more transactions helping both ticket buyers and sellers"

ENOUGH JIBBER JABBER. SHOW ME SOME CODE

Receive an <SMS>
Send an <SMS>
  • Twilio Receive SMS code example
  • // 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

NO SHENANIGANS PAY-AS-YOU-GO PRICING

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 Free

SMS MESSAGES

1 ¢

Send

1 ¢

Receive

PHONE NUMBERS

$1

Standard

$2

Toll-free

YOU'RE IN GOOD COMPANY

Big companies rely on the scalability and reliability of Twilio to power their communications apps.

logos

With a community of 75,000 developers building voice apps, there's a thriving ecosystem of code samples and how-to's waiting for you.

customers