# Twilio — Pipedream Connect

> Twilio is a cloud communications platform for building SMS, Voice & Messaging applications on an API built for global scale.

- API slug: `twilio` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Communication
- Website: https://www.twilio.com/
- This page (HTML): https://pipedream.com/apps/twilio
- Tools: 24 actions · 5 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: twilio`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "twilio",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Make a Phone Call:
const result = await mcp.callTool({
  name: "twilio-make-phone-call",
  arguments: {
    from: "From",
    to: "To",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Twilio endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://api.twilio.com/2010-04-01/Accounts.json

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkudHdpbGlvLmNvbS8yMDEwLTA0LTAxL0FjY291bnRzLmpzb24?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "twilio-make-phone-call",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    twilio: { authProvisionId: "apn_xxxxxxx" },
    from: "From",
    to: "To",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (24)

### `twilio-make-phone-call` — Make a Phone Call (Write)

Make a phone call passing text, a URL, or an application that Twilio will use to handle the call. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/make-phone-call.md

### `twilio-check-verification-token` — Check Verification Token (Read-only)

Check if user-provided token is correct. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/check-verification-token.md

### `twilio-create-verification-service` — Create Verification Service (Write)

Create a verification service for sending SMS verifications. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/create-verification-service.md

### `twilio-delete-call` — Delete Call (Write)

Remove a call record from your account. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/delete-call.md

### `twilio-delete-message` — Delete Message (Write)

Delete a message record from your account. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/delete-message.md

### `twilio-download-recording-media` — Download Recording Media (Write)

Download a recording media file. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/download-recording-media.md

### `twilio-get-call` — Get Call (Read-only)

Return call resource of an individual call. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/get-call.md

### `twilio-get-message` — Get Message (Write)

Return details of a message. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/get-message.md

### `twilio-get-transcripts` — Get Transcripts (Read-only)

Retrieves full transcripts for the specified transcript SIDs. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/get-transcripts.md

### `twilio-list-application-sid-options` — List Application SID Options (Read-only)

Retrieves available options for the Application SID field.

Full schema: https://pipedream.com/apps/twilio/actions/list-application-sid-options.md

### `twilio-list-sid-options` — List Call ID Options (Read-only)

Retrieves available options for the Call ID field.

Full schema: https://pipedream.com/apps/twilio/actions/list-sid-options.md

### `twilio-list-calls` — List Calls (Read-only)

Return a list of calls associated with your account. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/list-calls.md

### `twilio-list-from-options` — List From Options (Read-only)

Retrieves available options for the From field.

Full schema: https://pipedream.com/apps/twilio/actions/list-from-options.md

### `twilio-list-incoming-phone-number-options` — List Incoming Phone Number Options (Read-only)

Retrieves available options for the Incoming Phone Number field.

Full schema: https://pipedream.com/apps/twilio/actions/list-incoming-phone-number-options.md

### `twilio-list-message-media` — List Message Media (Write)

Return a list of media associated with your message. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/list-message-media.md

### `twilio-list-messages` — List Messages (Read-only)

Return a list of messages associated with your account. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/list-messages.md

### `twilio-list-parent-call-sid-options` — List Parent Call SID Options (Read-only)

Retrieves available options for the Parent Call SID field.

Full schema: https://pipedream.com/apps/twilio/actions/list-parent-call-sid-options.md

### `twilio-list-recording-i-d-options` — List Recording ID Options (Read-only)

Retrieves available options for the Recording ID field.

Full schema: https://pipedream.com/apps/twilio/actions/list-recording-i-d-options.md

### `twilio-list-service-sid-options` — List Service SID Options (Read-only)

Retrieves available options for the Service SID field.

Full schema: https://pipedream.com/apps/twilio/actions/list-service-sid-options.md

### `twilio-list-transcript-sids-options` — List Transcript SIDs Options (Read-only)

Retrieves available options for the Transcript SIDs field.

Full schema: https://pipedream.com/apps/twilio/actions/list-transcript-sids-options.md

### `twilio-list-transcripts` — List Transcripts (Read-only)

Return a list of transcripts. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/list-transcripts.md

### `twilio-phone-number-lookup` — Phone Number Lookup (Read-only)

Lookup information about a phone number. See the documentation for more information

Full schema: https://pipedream.com/apps/twilio/actions/phone-number-lookup.md

### `twilio-send-message` — Send Message (Write)

Send an SMS text with optional media files. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/send-message.md

### `twilio-send-sms-verification` — Send SMS Verification (Write)

Send an SMS verification to a phone number. See the documentation

Full schema: https://pipedream.com/apps/twilio/actions/send-sms-verification.md

## Triggers (5)

### `twilio-new-incoming-sms` — New Incoming SMS (Instant) (Instant)

Emit new event every time an SMS is sent to the phone number set. Configures a webhook in Twilio, tied to an incoming phone number.

Full schema: https://pipedream.com/apps/twilio/triggers/new-incoming-sms.md

### `twilio-new-call` — New Call (Instant) (Instant)

Emit new event each time a call to the phone number is completed. Configures a webhook in Twilio, tied to a phone number.

Full schema: https://pipedream.com/apps/twilio/triggers/new-call.md

### `twilio-new-phone-number` — New Phone Number (Polling)

Emit new event when you add a new phone number to your account

Full schema: https://pipedream.com/apps/twilio/triggers/new-phone-number.md

### `twilio-new-recording` — New Recording (Polling)

Emit new event when a new call recording is created

Full schema: https://pipedream.com/apps/twilio/triggers/new-recording.md

### `twilio-new-transcript-created` — New Transcript Created (Polling)

Emit new event when a new call transcript is created

Full schema: https://pipedream.com/apps/twilio/triggers/new-transcript-created.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
