# Elastic Email — Pipedream Connect

> A modern email marketing and delivery platform for small businesses.

- API slug: `elastic_email` (use in MCP headers and tool keys)
- Auth: API key (Pipedream-managed)
- Categories: Marketing
- Website: https://elasticemail.com/
- This page (HTML): https://pipedream.com/apps/elastic-email
- Tools: 15 actions · 4 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: elastic_email`

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

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

const { tools } = await mcp.listTools()

// e.g. run Add Contact to Mailing List:
const result = await mcp.callTool({
  name: "elastic_email-add-contact",
  arguments: {
    email: "Email",
    listNames: ["List Names"],
  },
})
```

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

## API proxy

For a Elastic Email 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.elasticemail.com/v2/account/profileoverview

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

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

## Actions (15)

### `elastic_email-add-contact` — Add Contact to Mailing List (Write)

Adds a new contact to a mailing list. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/add-contact.md

### `elastic_email-create-campaign` — Create Campaign (Write)

Create a campaign in an Elastic Email account. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/create-campaign.md

### `elastic_email-create-contact` — Create Contact (Write)

Create a contact in an Elastic Email account. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/create-contact.md

### `elastic_email-create-segment` — Create Segment (Write)

Create a segment in an Elastic Email account. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/create-segment.md

### `elastic_email-list-campaign-options` — List Campaign Options (Read-only)

Retrieves available options for the Campaign field.

Full schema: https://pipedream.com/apps/elastic-email/actions/list-campaign-options.md

### `elastic_email-list-campaigns` — List Campaigns (Read-only)

List campaigns in an Elastic Email account. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/list-campaigns.md

### `elastic_email-list-contact-options` — List Contact Options (Read-only)

Retrieves available options for the Contact field.

Full schema: https://pipedream.com/apps/elastic-email/actions/list-contact-options.md

### `elastic_email-list-contacts` — List Contacts (Read-only)

List contacts in an Elastic Email account. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/list-contacts.md

### `elastic_email-list-list-names-options` — List List Names Options (Read-only)

Retrieves available options for the List Names field.

Full schema: https://pipedream.com/apps/elastic-email/actions/list-list-names-options.md

### `elastic_email-list-segment-names-options` — List Segment Names Options (Read-only)

Retrieves available options for the Segment Names field.

Full schema: https://pipedream.com/apps/elastic-email/actions/list-segment-names-options.md

### `elastic_email-list-template-name-options` — List Template Name Options (Read-only)

Retrieves available options for the Template Name field.

Full schema: https://pipedream.com/apps/elastic-email/actions/list-template-name-options.md

### `elastic_email-send-email` — Send Email (Write)

Sends an email to one or more recipients. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/send-email.md

### `elastic_email-unsubscribe-contact` — Unsubscribe Contact (Write)

Unsubscribes a contact from future emails. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/unsubscribe-contact.md

### `elastic_email-update-campaign` — Update Campaign (Write)

Update a campaign in an Elastic Email account. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/update-campaign.md

### `elastic_email-update-contact` — Update Contact (Write)

Update a contact in an Elastic Email account. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/actions/update-contact.md

## Triggers (4)

### `elastic_email-new-contact-added` — New Contact Added (Polling)

Emit new event when a new contact is added to a mailing list. See the documentation

Full schema: https://pipedream.com/apps/elastic-email/triggers/new-contact-added.md

### `elastic_email-new-delivery-event` — New Delivery Event (Polling)

Emit new event when a delivery event occurs. See the documentation.

Full schema: https://pipedream.com/apps/elastic-email/triggers/new-delivery-event.md

### `elastic_email-new-email-click` — New Email Click (Polling)

Emit new event when a recipient clicks a link in an email. See the documentation.

Full schema: https://pipedream.com/apps/elastic-email/triggers/new-email-click.md

### `elastic_email-new-email-open` — New Email Open (Polling)

Emit new event when a recipient opens an email. See the documentation.

Full schema: https://pipedream.com/apps/elastic-email/triggers/new-email-open.md

---

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