# lemlist — Pipedream Connect

> Personalize cold emails, automate follow-ups, and engage with leads across all channels

- API slug: `lemlist` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Marketing
- Website: https://lemlilst.com
- This page (HTML): https://pipedream.com/apps/lemlist
- Tools: 14 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: lemlist`

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

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

const { tools } = await mcp.listTools()

// e.g. run Add Email In Unsubscribes:
const result = await mcp.callTool({
  name: "lemlist-add-email-in-unsubscribes",
  arguments: {
    email: "Email",
  },
})
```

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

## API proxy

For a lemlist 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.lemlist.com/api/team

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9hcGkubGVtbGlzdC5jb20vYXBpL3RlYW0?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: "lemlist-add-email-in-unsubscribes",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    lemlist: { authProvisionId: "apn_xxxxxxx" },
    email: "Email",
  },
})
```

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

## Actions (14)

### `lemlist-add-email-in-unsubscribes` — Add Email In Unsubscribes (Write)

This action adds a lead in the unsubscribed list. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/add-email-in-unsubscribes.md

### `lemlist-add-lead-to-campaign` — Add Lead To A Campaign (Write)

This action adds a lead in a specific campaign. If the lead doesn't exist, it'll be created, then inserted to the campaign. The creator of the lead is the campaign's sender See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/add-lead-to-campaign.md

### `lemlist-delete-email-from-unsubscribes` — Delete An Email From Unsubscribes (Write)

This action deletes a lead in the unsubscribed list. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/delete-email-from-unsubscribes.md

### `lemlist-delete-lead-from-a-campaign` — Delete Lead From Campaign (Write)

This action deletes a lead from a specific campaign. All information, including statistics, will be deleted. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/delete-lead-from-a-campaign.md

### `lemlist-get-lead` — Get Lead (Read-only)

This action retrieves all the information of a specific lead using its email. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/get-lead.md

### `lemlist-list-campaign-id-options` — List Campaign Id Options (Read-only)

Retrieves available options for the Campaign Id field.

Full schema: https://pipedream.com/apps/lemlist/actions/list-campaign-id-options.md

### `lemlist-mark-lead-from-all-campaigns-as-interested` — Mark Lead From All Campaigns As Interested (Write)

This action marks a specific lead as interested using its email in all campaigns. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/mark-lead-from-all-campaigns-as-interested.md

### `lemlist-mark-lead-from-all-campaigns-as-notinterested` — Mark Lead From All Campaigns As Not Interested (Write)

This action marks a specific lead as not interested using its email in all campaigns. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/mark-lead-from-all-campaigns-as-notinterested.md

### `lemlist-mark-lead-from-one-campaigns-as-interested` — Mark Lead From One Campaigns As Interested (Write)

This action marks a specific lead as interested using its email in a specific campaign. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/mark-lead-from-one-campaigns-as-interested.md

### `lemlist-mark-lead-from-one-campaigns-as-notinterested` — Mark Lead From One Campaigns As Not Interested (Write)

This action marks a specific lead as not interested using its email in a specific campaign. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/mark-lead-from-one-campaigns-as-notinterested.md

### `lemlist-pause-lead-from-all-campaigns` — Pause Lead From All Campaigns (Write)

This action pauses a specific lead using its email in all campaigns. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/pause-lead-from-all-campaigns.md

### `lemlist-resume-lead-from-all-campaigns` — Resume Lead From All Campaigns (Write)

This action starts a specific lead using its email in all campaigns. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/resume-lead-from-all-campaigns.md

### `lemlist-unsubscribe-lead-from-a-campaign` — Unsubscribe Lead From Campaign (Write)

This action will unsubscribe a lead from all campaigns if he belongs to the specified campaign. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/unsubscribe-lead-from-a-campaign.md

### `lemlist-update-lead-in-a-campaign` — Update Lead In Campaign (Write)

This action updates a lead in a specific campaign. If the lead doesn't exist a 404 error will be returned. See the docs here

Full schema: https://pipedream.com/apps/lemlist/actions/update-lead-in-a-campaign.md

## Triggers (2)

### `lemlist-new-activity` — New Activity (Instant) (Instant)

Emit new event for each new activity. See docs here

Full schema: https://pipedream.com/apps/lemlist/triggers/new-activity.md

### `lemlist-unsubscribe-recipient` — New Unsubscribed Recipient (Instant) (Instant)

Emit new event when a recipient unsubscribes. See docs here

Full schema: https://pipedream.com/apps/lemlist/triggers/unsubscribe-recipient.md

---

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