> For the complete documentation index, see [llms.txt](https://docs.getmesa.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getmesa.com/connect/twilio.md).

# Twilio

Connect Twilio to MESA to send SMS from a dedicated number you control, a better fit than the SMS tool for international or high volume sends.

The [SMS](https://docs.getmesa.com/tools/sms/) tool is a great way to quickly send SMS messages. However, if you need to send international messages or send a high volume of messages, we recommend using the Twilio app to send messages from a dedicated phone number you control. Twilio charges a monthly fee to purchase the phone number (typically $1 per month) and a [per-SMS fee](https://www.twilio.com/sms/pricing/) (typically around a cent per message).

- [Connect Twilio with MESA](https://docs.getmesa.com/connect/twilio/#connect)
- [Configuration](https://docs.getmesa.com/connect/twilio/#configuring)

## Connection

Before you get started, you will need to [create a Twilio account](https://www.twilio.com/try-twilio), add your billing information, and [purchase a phone number](https://support.twilio.com/hc/en-us/articles/223135247-How-to-Search-for-and-Buy-a-Twilio-Phone-Number-from-Console) in the Twilio console.

When you're setting up your first workflow with Twilio, you'll need to add your **Key** and **Secret** so that Twilio is a connected app within MESA.

<figure><img src="https://docs.getmesa.com/assets/image%20%28470%29.png" alt="Screenshot of the Twilio step in a MESA workflow prompting for the Key and Secret. Spotlight the Key and Secret fields."><figcaption></figcaption></figure>

You can [click here to locate your Account SID and Auth Token](https://www.twilio.com/console/project/settings). Within the Twilio Settings, click on the Keys & Connections: API keys & tokens section.

![Screenshot of the Twilio console Settings page. Spotlight the Keys and Connections API keys and tokens section.](https://docs.getmesa.com/assets/AS-TWILIO-API.png)

In the **Live Connections** section:

- Copy the Account SID and paste that as the Key within MESA.
- Copy the Auth Token and paste that as the Secret within MESA.

<figure><img src="https://docs.getmesa.com/assets/AS-TWILIO-AUTH.png" alt="Screenshot of the Twilio console Live Connections section showing the Account SID and Auth Token. Spotlight the Account SID and Auth Token values."><figcaption></figcaption></figure>

Then, click on Add Connection.

### Configure

In order to send a SMS, you will need to add a phone number into the From phone number field. Make sure that the phone number that you enter **does not** contain dashes or parenthesis but **do** contain a country code. An example: +15017122661

In the To phone number field, you can [utilize variables](https://docs.getmesa.com/workflow-builder/fields/variables/) to make the SMS action specific to your needs. The screenshot below is from the [Send an SMS via Twilio to your customers when their order arrives template](https://www.getmesa.com/connect/tracktor/integrate/twilio/send-a-twilio-sms-to-your-customer-when-their-order-arrives).

![Screenshot of the Twilio SMS action in a MESA workflow with the From and To phone number fields configured using variables. Spotlight the To phone number field.](https://docs.getmesa.com/assets/AS-TWILIO-CONFIGURE.png)
