# Bland AI — Pipedream Connect

> Send or receive millions of phone calls per day, using programmable voice agents that sound and feel human.

- API slug: `bland_ai` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Communication
- Website: https://www.bland.ai/
- This page (HTML): https://pipedream.com/apps/bland-ai
- Tools: 4 actions · 0 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: bland_ai`

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

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

const { tools } = await mcp.listTools()

// e.g. run Analyze Call:
const result = await mcp.callTool({
  name: "bland_ai-analyze-call",
  arguments: {
    callId: "Call ID",
    goal: "Goal",
  },
})
```

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

## API proxy

For a Bland AI 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.bland.ai/v1/calls

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkuYmxhbmQuYWkvdjEvY2FsbHM?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: "bland_ai-analyze-call",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    bland_ai: { authProvisionId: "apn_xxxxxxx" },
    callId: "Call ID",
    goal: "Goal",
  },
})
```

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

## Actions (4)

### `bland_ai-analyze-call` — Analyze Call (Write)

Analyzes an input call, extracting structured data and providing insights. See the documentation

Full schema: https://pipedream.com/apps/bland-ai/actions/analyze-call.md

### `bland_ai-end-call` — End Call (Write)

Terminates a currently ongoing call using Bland AI. See the documentation

Full schema: https://pipedream.com/apps/bland-ai/actions/end-call.md

### `bland_ai-get-transcript` — Get Transcript (Read-only)

Retrieves the transcript of a specified call post-completion. See the documentation

Full schema: https://pipedream.com/apps/bland-ai/actions/get-transcript.md

### `bland_ai-list-call-id-options` — List Call ID Options (Read-only)

Retrieves available options for the Call ID field.

Full schema: https://pipedream.com/apps/bland-ai/actions/list-call-id-options.md

---

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