Skip to contentSkip to navigationSkip to topbar

SMS Notifications

Created by: Twilio
  • SMS
  • JavaScript
  • .NET
  • PHP
  • Python
  • Java
  • Popular
(information)

Info

Regulations require that you first register your number to use these resources to send SMS traffic to US and Canadian mobile destinations. If you are sending to Canada or the US and have not already done so, please see our documentation to register your Twilio phone number(link takes you to an external page) or Toll-Free number(link takes you to an external page) before you use this template.

This sample app provides an example of how to automate a workflow using Twilio's REST APIs and Twilio SMS. This particular example mimics a vacation rental website where a host can notify guests of a reservation via text message.

Here is an example of that workflow:

  • A host creates a vacation property listing through the website
  • A guest requests a reservation for a property through the website
  • The host receives an SMS notifying them of the reservation request
  • The host can either Accept or Reject the reservation by responding to the SMS
    • The guest is notified via SMS whether their request was rejected or accepted
Report this template(link takes you to an external page)
  1. Choose a language

    This project is available in multiple programming languages.

    Select language
  2. Get the code for this project

    The code for this sample is available on GitHub to view and download.

    View on GitHub(link takes you to an external page)Download ZIP(link takes you to an external page)
  3. Get Twilio credentials

    You will need an Account SID and Auth Token in order to run this code.

    Checking for existing account...

  4. Set up the code sample locally

Need some help?

We all do sometimes; code is hard. Get help now from our support team(link takes you to an external page), or lean on the wisdom of the crowd by browsing the Twilio tag(link takes you to an external page)on Stack Overflow.

Terms of servicePrivacy Policy

Copyright © 2025 Twilio Inc.