Skip to main content
  • Home
  • >
  • SMS Opt-In Builder

SMS Opt-In Builder

  • SMS
  • Runtime
  • Community
  • Applications

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 or Toll-Free number before you use this template.

Using this SMS Opt-In template, you can provide details like campaign name, message frequency, opt-in keywords, and your own styling to build your own customized opt-in form hosted on Twilio. Features include:

  • Templated language for industry standard opt-in requirements
  • Live preview of your opt-in form
  • Optimized for both desktop and mobile device opt-ins
  • Capture opt-ins and opt-outs with webhooks, Segment events, or Airtable
  • Auto-generated Terms of Service based on industry standards
  • Configure colors and brand logo for your business

If you're applying for a short code or building an A2P 10DLC campaign list, this template app will show you the best practices for obtaining SMS opt-in.

Step 1:

Step 2: You need an API key to get started.
Get a free API key

Step 3: Set up the code sample locally

Deploy

OR

Want to set up this code sample locally? Follow the setup instructions in the README

Don't see what you want? Request a code sample Explore Docs

There was an issue loading the page.

Please try again in some time.