> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Twilio Flex in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/twilio-flex
Last updated: 2026-11-24

Share Twilio Flex with your team in Claude, ChatGPT and Cursor through Metorial: account SID + auth token or API key + secret sign-in, 18 tools (5 read-only).

---

To give your team Twilio Flex in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Twilio Flex integration in a Metorial portal, and each person connects with an account SID + auth token. Agents can discover TaskRouter workspaces, inspect Flex configuration, manage controlled workers, tasks, queues, workflows and activities, and read contact-center statistics. The integration has 18 tools, 5 read-only and 13 destructive, plus 3 triggers.

**What you will learn**

- How an admin shares Twilio Flex in a portal and how each person connects
- What Twilio Flex asks for when you connect, and where to find it
- How to keep the 5 read-only tools and reject the other 13

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account SID + auth token from Twilio Flex for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **Account SID + Auth Token** (default) | Custom credentials | `accountSid` and `authToken` |
| **API Key + Secret** | Custom credentials | `accountSid`, `apiKey` and `apiSecret` |

The portal and `metorial setup` use **Account SID + Auth Token** unless someone picks another method.

### Account SID + Auth Token

To connect, a person enters these values:

- `accountSid`: Twilio Account SID (ACxxxxx)
- `authToken`: Twilio Auth Token

### API Key + Secret

To connect, a person enters these values:

- `accountSid`: Twilio Account SID (ACxxxxx)
- `apiKey`: Twilio API Key SID (SKxxxxx)
- `apiSecret`: Twilio API Key Secret

### Setup settings

Whichever method you pick, setup also asks for:

- `accountSid`: Twilio Account SID (ACxxxxx). Found in the Twilio Console.
- `workspaceSid` (optional): TaskRouter Workspace SID (WSxxxxx). Required for task routing operations.
- `flexInstanceSid` (optional): Flex Instance SID (GOxxxxx). Found on the Flex Overview page in Console.

## Admin: share Twilio Flex in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Twilio Flex. Under **Auth Method**, keep **Account SID + Auth Token** or pick another. For how members connect, choose **Each person connects** so everyone enters their own account SID + auth token, or **Shared connection** to enter one account SID + auth token for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Twilio Flex.

4. **Choose who gets it**

   Add the access groups that should see Twilio Flex. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Twilio Flex integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search "twilio flex"
```

## Employee: connect Twilio Flex

### In the portal

1. **Open Twilio Flex in the catalog**

   Sign in to your portal and open Twilio Flex. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your account SID + auth token (accountSid and authToken).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search "twilio flex"
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **Account SID + Auth Token**. To connect with **API Key + Secret** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Twilio Flex connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list "twilio flex"
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 5 read-only tools, such as `get_interaction` and `list_workspaces`, and lose the 13 destructive tools, such as `manage_tasks` or `manage_workers`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list "twilio flex"
metorial tools <integration-id>
metorial call <integration-id> get_flex_configuration -d '{}'
```

`metorial tools` lists the 18 tools, minus any you rejected. `get_flex_configuration` takes no input. It retrieves the current Flex instance configuration.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (5)

- `get_workspace_statistics`: Retrieve real-time and cumulative statistics for a TaskRouter workspace. Needs `workspaceSid`.
- `list_conversation_messages`: List messages in a Twilio Conversation. Needs `conversationSid`.
- `get_flex_configuration`: Retrieve the current Flex instance configuration.
- `list_workspaces`: Discover authorized TaskRouter workspaces and their native SIDs before managing workers, queues, tasks, workflows or statistics.
- `get_interaction`: Read one exact Flex interaction and its native channel/routing details after asynchronous acceptance.

### Destructive tools (13)

- `manage_interaction_participants`: Add, remove, or list participants in a Flex interaction channel. Needs `action`, `interactionSid` and `channelSid`.
- `manage_task_queues`: Create, read, update, delete, or list task queues in a TaskRouter workspace. Needs `action` and `workspaceSid`.
- `create_interaction`: Create a new customer interaction in Twilio Flex. Needs `channelType`, `channelProperties`, `routingWorkflowSid` and `routingWorkspaceSid`.
- `manage_interaction_channel`: Get details or update the status of a channel within a Flex interaction. Needs `action` and `interactionSid`.
- `manage_workflows`: Create, read, update, delete, or list workflows in a TaskRouter workspace. Needs `action` and `workspaceSid`.
- `manage_flex_flows`: Legacy Programmable Chat in Flex reached end of life on June 1, 2026 and may stop working. Needs `action`.
- `manage_workers`: Create, read, update, delete, or list workers (agents) in a TaskRouter workspace. Needs `action` and `workspaceSid`.
- `manage_tasks`: Create, read, update, cancel, or list tasks in a TaskRouter workspace. Needs `action` and `workspaceSid`.
- `manage_conversations`: Create, read, update, delete, or list Twilio Conversations. Needs `action`.
- `manage_conversation_participants`: Add, remove, update, or list participants in a Twilio Conversation. Needs `action` and `conversationSid`.
- `manage_studio_flows`: List, get, or trigger Studio Flow executions. Needs `action`.
- `manage_activities`: Create, read, update, delete, or list activities in a TaskRouter workspace. Needs `action` and `workspaceSid`.
- `send_conversation_message`: Send a message in a Twilio Conversation. Needs `conversationSid`.

## Triggers

Twilio Flex has 3 triggers, which fire on events in Twilio Flex:

- `taskrouter_webhook`: Receives real-time TaskRouter event callbacks.
- `interaction_webhook`: Receives Flex Interaction webhook events including interaction creation, channel status changes, participant joins/leaves, and channel creation failures.
- `task_events`: [Polling fallback] Polls for new or updated tasks in a TaskRouter workspace.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Twilio Flex there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Twilio Flex on metorial.com](https://metorial.com/integrations/twilio-flex): the integration overview