> For the complete documentation index, see [llms.txt](https://layerlabs.gitbook.io/phone-verification-system/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://layerlabs.gitbook.io/phone-verification-system/sms-gateway-providers/twilio.md).

# Twilio

To be able to make use of the phone verification system, you are required to have an account with an SMS Gateway Provider. Twilio is an SMS/Phone Call gateway provider, which will help you send out the SMS messages or Phone Calls to your potential clients to help them verify their WHMCS account.

## Features

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th></th></tr></thead><tbody><tr><td>Customizable SMS Content</td><td></td><td></td><td></td></tr><tr><td>6 Digit SMS Verification</td><td></td><td></td><td></td></tr><tr><td>4 Digit Phone Call Verification</td><td></td><td></td><td></td></tr><tr><td>Customizable Voice Call (Twimlets)</td><td></td><td></td><td></td></tr></tbody></table>

## Requirements

* Requires a dedicated Twilio outgoing number
* Twilio Account SID
* Twilio AUTH Token
* Countries need to be unlocked need to be selected for SMS or Voice Call Verification

## Steps

{% hint style="info" %}
Make sure that the number you are testing is verified and added to <https://console.twilio.com/us1/develop/phone-numbers/manage/verified>
{% endhint %}

* Go to [https://www.twilio.com](https://www.twilio.com/) and click on the signup button, proceed with the signing up process and verify your email address and mobile number
* Upon accessing the Twilio Console at [https://console.twilio.com](https://console.twilio.com/) you will be able to see your Account SID and Auth Token. These two values respectively are to be entered into the module settings.
* Then head to <https://console.twilio.com/us1/develop/phone-numbers/manage/incoming> and see if you have any active numbers in the account, if you do, remove any spaces and dashes and then use that number in the module settings.
* If you do not have a number, you can buy a number by visiting the link [here](https://console.twilio.com/us1/develop/phone-numbers/manage/search?frameUrl=%2Fconsole%2Fphone-numbers%2Fsearch%3Fx-target-region%3Dus1\&currentFrameUrl=%2Fconsole%2Fphone-numbers%2Fsearch%3FisoCountry%3DAE%26searchTerm%3D%26searchFilter%3Dleft%26searchType%3Dnumber%26x-target-region%3Dus1%26__override_layout__%3Dembed%26bifrost%3Dtrue) then take your newly ordered number and remove any spaces and dashes and then use that number in the module settings.
* For SMS, head to <https://console.twilio.com/us1/develop/sms/settings/geo-permissions> to manage your messaging geographic permissions and enable the countries required. Select all the countries to avoid facing difficulties with SMS delivery.
* For Phone Call Verification, head to [this page](https://console.twilio.com/us1/develop/voice/settings/geo-permissions?frameUrl=%2Fconsole%2Fvoice%2Fcalls%2Fgeo-permissions%3Fx-target-region%3Dus1\&currentFrameUrl=%2Fconsole%2Fvoice%2Fcalls%2Fgeo-permissions%2Flow-risk%3F__override_layout__%3Dembed%26x-target-region%3Dus1%26bifrost%3Dtrue) to manage your voice geographic permissions and enable the countries required. Select all the countries to avoid facing difficulties in verification calls. Some countries require you to request access manually.

## Customization

#### Twilio Voice Call Verification

* To be added

#### SMS Verification Message Content

* To be added


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://layerlabs.gitbook.io/phone-verification-system/sms-gateway-providers/twilio.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
