> For the complete documentation index, see [llms.txt](https://www.cakewalk.security/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.cakewalk.security/docs/human-access/connections-and-integrations/integration-guides/twilio.md).

# Twilio

Set up Agent Cake auto-provisioning for Twilio, including connecting an admin account and configuring TOTP-based two-factor authentication.

### :sparkles: Auto-provisioning

| **Authentication method** | Username & password            |
| ------------------------- | ------------------------------ |
| **Required permissions**  | `Administrator`                |
| **Required metadata**     | None                           |
| **MFA**                   | Required. Setup details below. |

Agent Cake connects to Twilio with an admin account and invites, assigns roles to and removes users through the Twilio console. The account you connect needs the **Administrator** role so it can manage users and role assignments.

<details>

<summary><strong>How to set up MFA</strong></summary>

Complete these steps only if the Twilio admin account you connect has two-factor authentication enabled. Agent Cake supports TOTP-based two-factor authentication and generates the codes for you from the setup key.

1. In Twilio, open the profile menu and select `Personal settings`.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/a9374864-8c5e-44c3-a16b-5a5fa2d681b7/ascreenshot_5ed6ee9a6ada4a9695c73ce88d6e0489_text_export.jpeg)

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/f0fcab18-b3f1-4e27-bc36-15fdb854f55b/ascreenshot_9282225a089542bab23fe80994131201_text_export.jpeg)

2. Select `Login & security`.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/e8036ec7-b20c-43f0-8a98-e1f9731373fd/ascreenshot_cf06878c96ad4702b73a8494e3bc669f_text_export.jpeg)

3. Click `Add authenticator app for 2FA`.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/bceda14e-2b97-4302-b78a-f3c77cbf8c3f/ascreenshot_c636af0a62c649b59472d492ace53de4_text_export.jpeg)

4. Twilio shows a QR code for the authenticator app. Take a screenshot of the QR code, or download it.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/d102c8cd-5efd-46fa-9927-ce306e2287d4/ascreenshot_5fd82c69c6e8494ab1ed9efdc46a5ddf_text_export.jpeg)

5. Switch back to Cakewalk.
6. In the `MFA Secret` field, click the QR code icon and upload your screenshot of the QR code. Cakewalk reads the setup key from the image and fills in the field.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/10045857-a975-4564-938d-e203c26def77/ascreenshot_54dcfc2963994af68f46e440c7b2da2a_text_export.jpeg)

7. Cakewalk generates a One-Time Password from the setup key. Copy the code and enter it into Twilio.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/46346c84-e395-4f14-8139-67ad6ebb2df2/ascreenshot_b5340089808e4477be322486b79ea1f9_text_export.jpeg)

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/89500d86-06b3-43ea-9340-84a428743dce/ascreenshot_3d22b220de7d4701b113251854eb9ff8_text_export.jpeg)

8. In Twilio, click `Verify and save` to finish enabling two-factor authentication.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/839ff9e3-1c4b-4caa-a194-1d869fa7f175/ascreenshot_9c0e06cc1e674f40a61b0e0f1c2e7b27_text_export.jpeg)

9. Switch back to Cakewalk.
10. Click `Save & Enable` to store the credentials and turn on auto-provisioning for Twilio.

![](https://colony-recorder.s3.amazonaws.com/files/2026-07-09/7d34591a-168c-4e53-a97e-cb5da5eef40c/ascreenshot_7bdb4154a9bb478dbf20c6c87f474e99_text_export.jpeg)

</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 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://www.cakewalk.security/docs/human-access/connections-and-integrations/integration-guides/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.
