# Telnyx — Pipedream Connect

> Connectivity Made Simple

- API slug: `telnyx` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Developer Tools
- Website: https://telnyx.com
- This page (HTML): https://pipedream.com/apps/telnyx
- Tools: 11 actions · 2 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: telnyx`

```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": "telnyx",
      },
    },
  },
)

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

const { tools } = await mcp.listTools()

// e.g. run Dial Number:
const result = await mcp.callTool({
  name: "telnyx-dial-number",
  arguments: {
    callControlAppId: "Call Control Application ID",
    phoneNumber: "Phone Number",
  },
})
```

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

## API proxy

For a Telnyx 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.telnyx.com/v2/available_phone_numbers

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkudGVsbnl4LmNvbS92Mi9hdmFpbGFibGVfcGhvbmVfbnVtYmVycw?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: "telnyx-dial-number",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    telnyx: { authProvisionId: "apn_xxxxxxx" },
    callControlAppId: "Call Control Application ID",
    phoneNumber: "Phone Number",
  },
})
```

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

## Actions (11)

### `telnyx-dial-number` — Dial Number (Write)

Dial a number or SIP URI from a given Call Control App. See the documentation

Full schema: https://pipedream.com/apps/telnyx/actions/dial-number.md

### `telnyx-get-messaging-profiles` — Get Messaging Profiles (Read-only)

Get a list of messaging profiles. See the documentation

Full schema: https://pipedream.com/apps/telnyx/actions/get-messaging-profiles.md

### `telnyx-get-phone-numbers` — Get Phone Numbers (Read-only)

Get a list of phone numbers. See the documentation

Full schema: https://pipedream.com/apps/telnyx/actions/get-phone-numbers.md

### `telnyx-list-call-control-app-id-options` — List Call Control Application ID Options (Read-only)

Retrieves available options for the Call Control Application ID field.

Full schema: https://pipedream.com/apps/telnyx/actions/list-call-control-app-id-options.md

### `telnyx-list-fax-app-id-options` — List Fax Application ID Options (Read-only)

Retrieves available options for the Fax Application ID field.

Full schema: https://pipedream.com/apps/telnyx/actions/list-fax-app-id-options.md

### `telnyx-list-messaging-profile-id-options` — List Messaging Profile Id Options (Read-only)

Retrieves available options for the Messaging Profile Id field.

Full schema: https://pipedream.com/apps/telnyx/actions/list-messaging-profile-id-options.md

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

Retrieves available options for the Phone Number field.

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

### `telnyx-get-message` — Retrieve a Message (Read-only)

Retrieve a message. See the documentation

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

### `telnyx-send-fax` — Send Fax (Write)

Sends a PDF document to a specified fax number using the Telnyx Fax API. See the documentation

Full schema: https://pipedream.com/apps/telnyx/actions/send-fax.md

### `telnyx-send-group-message` — Send Group Message (Write)

Send a group MMS message. See the documentation

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

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

Send an SMS or MMS message. See the documentation

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

## Triggers (2)

### `telnyx-new-call-received` — New Call Received (Polling)

Emit new event on an incoming call to a Call Control Application. See the documentation

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

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

Emit new event when a new phone number is added See the documentation

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

---

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