> For the complete documentation index, see [llms.txt](https://en.help.firstline.cc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://en.help.firstline.cc/feature/channels/sms/sms.md).

# Twilio

## Connect your Twilio account

### Log in to Twilio

Go to [**Twilio**](https://www.twilio.com/login) Log in, and on the Dashboard page find "**ACCOUNT SID**" and "**AUTH TOKEN**" codes and copy them.

![](https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNRu7dk70ei7JV9HlW9%2F-MO1_YsHzG69fOUZw-Bq%2F-MO1cOmRH05x7jFcV_IZ%2Fimage.png?alt=media\&token=182c0363-7bd1-467f-83fd-9fe1f5331342)

### Paste the related information (**ACCOUNT SID** & **AUTH TOKEN)**

Return to the system and click the "Add" button.

Paste the "**ACCOUNT SID**" and "**AUTH TOKEN**" string code copied from Twilio into the corresponding field, and after confirming it is correct, click the button at the bottom right to proceed to the next step.

![](https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNRu7dk70ei7JV9HlW9%2F-MO1_YsHzG69fOUZw-Bq%2F-MO1cjSP_fin13-uh7ZT%2Fimage.png?alt=media\&token=ba73c952-7211-4c32-87be-8c03f3b3ddd0)

If the information from the previous step is filled out correctly, the phone numbers you own in Twilio will be displayed on this page; after confirming they are correct, click the bottom right "Connect" button to complete the binding.

![](https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNRu7dk70ei7JV9HlW9%2F-MO1_YsHzG69fOUZw-Bq%2F-MO1crJjlB_1mdmJ3GSF%2Fimage.png?alt=media\&token=751afaab-1ccb-4fd3-9965-c2c8f7cbfed8)

{% hint style="info" %}
**If you have multiple numbers in Twilio, this page will list them for you to choose from.**
{% endhint %}

###

### Link Webhook

{% hint style="info" %}
**If you need to "receive customers' reply SMS", be sure to link a Webhook**; if not needed, you can skip it; the system will not receive any customer reply SMS.
{% endhint %}

In the SMS integration list, click th&#x65;**"Edit"**&#x62;utton next to the number that needs a Webhook bound.

![](https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNRu7dk70ei7JV9HlW9%2F-MO1_YsHzG69fOUZw-Bq%2F-MO1dAuwmgJYFl1cfAIp%2Fimage.png?alt=media\&token=73ac4e0a-fb76-46bb-aa06-c473ff8dd6ab)

After entering the edit page, copy the "**Webhook URL**" at the bottom of the system page.

![](https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNRu7dk70ei7JV9HlW9%2F-MO1_YsHzG69fOUZw-Bq%2F-MO1dLeOcpFa8m0wyJnq%2Fimage.png?alt=media\&token=7e160c7b-35db-4f70-be92-ea994a4c486a)

Return to the Twilio page, and on **Phone Numbers > Manage Numbers** page, click your phone number.

![](https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNRu7dk70ei7JV9HlW9%2F-MO1_YsHzG69fOUZw-Bq%2F-MO1dOBPEh-CrT-tjJMi%2Fimage.png?alt=media\&token=212f3912-f791-45c0-806f-f9b6fcaebda9)

At the bottom of that page under "Messaging",**"A MESSAGE COMES IN"**&#x66;ield, choose Webhook and paste the URL you copied from the system, then click **"Save"** to complete the binding.

![](https://3300265106-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNRu7dk70ei7JV9HlW9%2F-MO1_YsHzG69fOUZw-Bq%2F-MO1dRTDx7ZV7KzGO9JA%2Fimage.png?alt=media\&token=115d001c-2ecd-400c-81f6-7750a1d22b75)
