Menu

Expand
Rate this page:

Programmable Messaging Quickstarts

Quickstarts

Saying "Ahoy, World" via SMS is a few lines of code away.

These quickstarts will teach you how to send and receive text messages with Twilio. We'll walk you step-by-step through signing up for Twilio, getting your first Twilio-powered phone number, setting up your development environment, sending your first SMS, receiving inbound text messages, and replying to incoming messages with an SMS.

Choose your programming language below and dive right in:

Note that this full tutorial is not available in curl, even though our examples throughout Twilio documentation of individual API calls nearly always include a curl variant. It is a very simple matter to make a call to create and send an SMS message in curl, specifying your Account SID and auth token, the sender and recipient numbers and the text message body. This is detailed on the SMS resource page, among other places. However, the other steps covered in the language-specific quickstarts linked above--receiving inbound text messages and replying programmatically to these inbound messages-- require setting up a free-standing application in your local environment in the specified language/framework, including a webhook to receive and respond to incoming SMS messages, and then exposing this webhook as a public url (we recommend doing this by way of ngrok). None of this is possible using curl alone, which is a command-line tool intended for discrete server calls from a terminal (in our case, calls to a Twilio REST API). While not a multi-procedure scripting language like the ones listed in the links above, curl is.a simple and powerful way to verify the functionality of discrete API calls from the command line.

Not comfortable with coding? Try the No-code Quickstart that uses Twilio Studio!

Looking to send your first WhatsApp message with Twilio Programmable Messaging? Try the WhatsApp Quickstart.

Resources

Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.

Loading Code Sample...
        
        
        

        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!

        thanks-feedback-gif