# Twilio

[<mark style="color:blue;">Twilio</mark>](https://twilio.com/) allows software developers to programmatically make and receive phone calls, send and receive text messages, and perform other communication functions using its web service APIs.

Route detailed events from Twilio to the right users in Squadcast.

### How to integrate Twilio with Squadcast

#### In Squadcast: Using Twilio as an Alert Source

1. Navigate to **Services** -> **Service Overview** -> select or search for your Service. Expand the accordion -> In the Alert Sources section, click **Add**.

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-4fbd74e7ca0b30173c47a1d58ed6a0804a0465aa%2FAlert_Sources.png?alt=media\&token=aaca6610-9d18-4dd4-9cf5-320042f326f1)

2\. Select **Twilio.** Copy the displayed **Webhook URL** to [configure](#in-twilio-create-a-squadcast-webhook) it within **Twilio.** Finish by clicking **Add Alert Source** -> **Done.**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-753d656b7764d44ef9b2f289b9db110b108af7b9%2FTwilio.png?alt=media\&token=4681d326-e4b5-42ab-8222-262019a042ca)

{% hint style="warning" %}
**Important:**

When an alert source turns Active, it’ll show up under Configured Alert Sources, you can either generate a test alert from the integration or wait for a real-time alert to be generated by the Alert Source. An Alert Source is active if there is a recorded incident via that Alert Source for the Service.
{% endhint %}

#### In Twilio: Create a Squadcast Webhook

You can configure a webhook for a group or a project.

**(1)** Navigate to **Monitor > Logs > Errors > Webhooks & alerts** from the left panel of the page

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-28103e7879e5b9dd6983fd4430294f77c5c6f410%2Ftwilio_2.png?alt=media\&token=ce8f3218-bb19-4fb8-9868-88185562f6f4)

**(2)** Paste the previously copied Squadcast **Webhook URL** and click on **Save**

![](https://1574591692-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F8TaWz01jmUJl58p4ZVel%2Fuploads%2Fgit-blob-752377404b8fd14cba95a21ce6b9fbc8cc37854f%2Ftwilio_3.png?alt=media\&token=f8f15ac8-9c00-4f0a-b725-25561e8cfa88)

This will create and complete the configuration of the webhook in your Twilio account.

That is it, you are good to go! Everytime an event with `Level: ERROR` or `Level: WARNING` occurs in Twilio, an incident would be created in Squadcast.

{% hint style="info" %}
**FAQ:**

Q: If an alert gets resolved in Twilio, does Twilio send auto-resolve signals to Squadcast?

A: No, Twilio does not send auto-resolve signals to Squadcast. Hence, Squadcast incidents from Twilio should be resolved manually once issues have been fixed.
{% endhint %}

*Have any questions?* [*Ask the community*](https://community.squadcast.com/view/home)*.*
