Enveloop Docs
Sign up for Enveloop!
  • Enveloop Docs
  • Overview
    • ✨Features
  • Getting Started
    • Introduction to Enveloop
    • Creating a Template
    • Formatting / Dynamic Content
    • Sending a test message
    • Adding a Sending Domain
    • Deploying your first message
  • Product Guides
    • Elements
      • 🔋Table
    • Using Shared Sections
    • Markdown for Formatting
    • Mustache for Dynamic Content
    • Creating a Verified Sender
    • Logging
    • Monitoring
    • Webhooks
    • Themes
  • Integrations
    • Do I need integrations?
    • SMS Integrations
      • Twilio
      • TextGrid
    • Email Integrations
      • SendGrid
      • Postmark
      • Mailgun
      • Amazon SES
      • SMTP
        • ✉️Amazon SES
        • ✉️Gmail SMTP
        • ✉️Google Domain SMTP Relay
    • Partner Integrations
      • Fly.io
  • Enveloop API
    • Getting Started with Enveloop API
    • Core API Endpoints
      • Connecting to the Enveloop API
      • POST /messages
      • GET /templates/:slug
    • Languages and Frameworks
      • 🟢NodeJS
      • 🏮Ruby on Rails
      • 🟡Python
      • 🏮Ruby
  • Settings
    • Sending IPs
  • Company
    • About Us
    • 👩‍⚖️Terms of Service
    • 😎Privacy Policy
Powered by GitBook
On this page
  • Configuring Twilio
  • Step 1: Create a telephone number
  • Step 2: Locate your Twilio API details
  • Adding Twilio Information to Enveloop
  • Step 1: In Enveloop, open the team & project you want to use
  • Step 2: Select "Configure" from SMS Integrations.
  • Step 3: Add your Twilio API details to your project
  • 🎉 Success
  • Publish & Deploy
  1. Integrations
  2. SMS Integrations

Twilio

Set up your Enveloop account to use Twilio as a backend message provider for text/sms messages.

Last updated 1 year ago

The first step will be to make sure that you have a Twilio account set up. This documentation doesn't highlight how to do this, but we'll step you through everything else.

Configuring Twilio

If you already have Twilio set up with mobile numbers and API keys, you can skip this part. 💪

Step 1: Create a telephone number

After setting up your account at Twilio, the first thing you will do is create a phone number. You can create a toll-free number for initial testing. (Note: When using a Twilio free telephone number, all your SMS messages will be prefixed with "Sent from your Twilio trial account")

Creating a local telephone number will require additional regulatory steps (to ensure you are not spam).

Step 2: Locate your Twilio API details

When you create your Twilio account, Twilio creates these credentials for you. In the normal process, they are located on your dashboard.

Adding Twilio Information to Enveloop

Step 1: In Enveloop, open the team & project you want to use

Each project (which represents one of your apps) can have its own message settings. So, choose a Project and in the menu, choose Integrations from the options on the left.

Step 2: Select "Configure" from SMS Integrations.

Please note: Enveloop provides you a small amount of test message credits to explore SMS use with Enveloop. However, once you want to configure your Twilio account and telephone numbers with Enveloop, you'll need to upgrade to our "Starter" plan.

Step 3: Add your Twilio API details to your project

Add the Twilio values (SID, Token, Telephone Number) to your project's integration settings. If you only have one number, it will automatically be populated once you add your SID and token.

🎉 Success

Save the integration and you are successfully set up. Now, return to your templates, select an SMS template, and you'll notice your Default From Number is populated with your Twilio telephone number.

Publish & Deploy

Once you have your SMS template created, you can choose to Publish it. Once published, click the Deploy tab in Enveloop, copy the cURL command, and execute the command in your local terminal.

Remember: The default cURL command in Enveloop uses a test/sandbox API key. So, you will see the results in the Enveloop Message Log, under Sandbox.

If you want to test sending an actual message to a mobile device, go to Settings for your project and copy/paste your Production/Live key into your cURL command. Send your message again and it will arrive at the telephone number in the to field momentarily.

You will need your Account SID, your Twilio Auth Token, and your Twilio Phone Number to complete your integration with Enveloop.
An example of a Twilio accout information page, showing account information required for the user to configure Twilio with Enveloop.
Web form in Enveloop where a user would enter their account information from Twilio to configure Twilio with Enveloop. Includes API keys and phone number input fields.