> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/communication/twilio.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Twilio

Twilio sends SMS and makes voice calls. Send messages, place calls, manage phone numbers and messaging services, and verify users by code.

![Twilio logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-a554ee2eb7d24f8f1e8f0fdfa25a5e6bc80ce366%2Ftwilio.png?alt=media)

|                    |                                                                            |
| ------------------ | -------------------------------------------------------------------------- |
| **Category**       | [Communication](https://docs.fastn.ai/connectors/catalog/communication.md) |
| **Website**        | [twilio.com](https://twilio.com)                                           |
| **Authentication** | Username and password                                                      |
| **Slug**           | `twilio`                                                                   |
| **On fastn.ai**    | [Embed Twilio in your product](https://fastn.ai/integrations/twilio)       |

## Setup

Your customers enter their username and password for Twilio when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Twilio from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Twilio**.
2. Select **Connect** on the Twilio card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Twilio's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Check Verification</td><td><code>checkVerification</code></td><td>Verify a code submitted by the user against a Verify service. Provide To and Code. Body is form-urlencoded.</td></tr><tr><td>Create Call</td><td><code>createCall</code></td><td>Place an outbound phone call. Provide To, From, and one of Url, Twiml, or ApplicationSid. Body is application/x-www-form-urlencoded.</td></tr><tr><td>Create Incoming Phone Number</td><td><code>createIncomingPhoneNumber</code></td><td>Provision (buy) a phone number. Provide either PhoneNumber (E.164) or AreaCode. Body is form-urlencoded. NOTE: this purchases a number and incurs charges.</td></tr><tr><td>Create Messaging Service</td><td><code>createMessagingService</code></td><td>Create a Messaging Service (v1). FriendlyName is required. Body is form-urlencoded.</td></tr><tr><td>Create Verify Service</td><td><code>createVerifyService</code></td><td>Create a Verify v2 service. FriendlyName is required. Body is form-urlencoded.</td></tr><tr><td>Delete Call</td><td><code>deleteCall</code></td><td>Delete a completed call record from the logs.</td></tr><tr><td>Delete Incoming Phone Number</td><td><code>deleteIncomingPhoneNumber</code></td><td>Release an owned phone number.</td></tr><tr><td>Delete Message</td><td><code>deleteMessage</code></td><td>Delete a message and its media from the logs.</td></tr><tr><td>Delete Messaging Service</td><td><code>deleteMessagingService</code></td><td>Delete a Messaging Service.</td></tr><tr><td>Delete Recording</td><td><code>deleteRecording</code></td><td>Delete a recording.</td></tr></tbody></table>

<details>

<summary>View 19 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Get Account</td><td><code>getAccount</code></td><td>Fetch the authenticating account's details. Cheapest free read - ideal for connection validation.</td></tr><tr><td>Get Call</td><td><code>getCall</code></td><td>Fetch a single call by its SID.</td></tr><tr><td>Get Incoming Phone Number</td><td><code>getIncomingPhoneNumber</code></td><td>Fetch a single owned phone number by SID.</td></tr><tr><td>Get Message</td><td><code>getMessage</code></td><td>Fetch a single message by its SID.</td></tr><tr><td>Get Messaging Service</td><td><code>getMessagingService</code></td><td>Fetch a single Messaging Service by SID.</td></tr><tr><td>Get Recording</td><td><code>getRecording</code></td><td>Fetch metadata for a single recording by SID.</td></tr><tr><td>List Calls</td><td><code>listCalls</code></td><td>List calls in the account, optionally filtered by To, From, Status, or StartTime.</td></tr><tr><td>List Incoming Phone Numbers</td><td><code>listIncomingPhoneNumbers</code></td><td>List the phone numbers owned by the account.</td></tr><tr><td>List Message Media</td><td><code>listMessageMedia</code></td><td>List media attached to a specific message.</td></tr><tr><td>List Messages</td><td><code>listMessages</code></td><td>List messages in the account, optionally filtered by To, From, or DateSent. Cheap read suitable for connection validation.</td></tr><tr><td>List Messaging Services</td><td><code>listMessagingServices</code></td><td>List Messaging Services (v1).</td></tr><tr><td>List Recordings</td><td><code>listRecordings</code></td><td>List call recordings, optionally filtered by CallSid or DateCreated.</td></tr><tr><td>List Verify Services</td><td><code>listVerifyServices</code></td><td>List Verify v2 services in the account.</td></tr><tr><td>Lookup Phone Number</td><td><code>lookupPhoneNumber</code></td><td>Look up information about a phone number (validation, line type, caller name, etc.) via Lookup v2. Use the Fields query param to request data packages.</td></tr><tr><td>Search Available Phone Numbers</td><td><code>searchAvailablePhoneNumbers</code></td><td>Search Twilio's inventory for available local phone numbers in a country. Read-only - does not buy.</td></tr><tr><td>Send Message</td><td><code>sendMessage</code></td><td>Send an SMS or MMS message. Provide To plus either From (a Twilio number) or MessagingServiceSid, and Body (or MediaUrl). Body is application/x-www-form-urlencoded.</td></tr><tr><td>Start Verification</td><td><code>startVerification</code></td><td>Send a verification token to a recipient via a Verify service. Provide To and Channel. Body is form-urlencoded.</td></tr><tr><td>Update Call</td><td><code>updateCall</code></td><td>Update a live call to end it (Status=completed/canceled) or redirect it (Url). Body is form-urlencoded.</td></tr><tr><td>Update Incoming Phone Number</td><td><code>updateIncomingPhoneNumber</code></td><td>Update configuration of an owned phone number (friendly name, voice/SMS URLs). Body is form-urlencoded.</td></tr></tbody></table>

</details>


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/communication/twilio.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
