# Freshmarketer — Pipedream Connect

> Freshmarketer is a complete marketing automation suite that helps you manage your contacts and lists, design, and deliver compelling marketing campaigns and automate your email marketing.

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

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

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

const { tools } = await mcp.listTools()

// e.g. run Add or Update Contact:
const result = await mcp.callTool({
  name: "freshmarketer-add-update-contact",
  arguments: {
    email: "Contact Email",
    firstName: "First Name",
  },
})
```

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

## API proxy

For a Freshmarketer 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.example.com/v1/me

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

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

## Actions (7)

### `freshmarketer-add-update-contact` — Add or Update Contact (Write)

Create a new contact or updates an existing one.

Full schema: https://pipedream.com/apps/freshmarketer/actions/add-update-contact.md

### `freshmarketer-find-contact` — Find Contact (Read-only)

Searches for a contact by email and returns contact details if found. See the documentation

Full schema: https://pipedream.com/apps/freshmarketer/actions/find-contact.md

### `freshmarketer-list-lead-source-id-options` — List Lead Source ID Options (Read-only)

Retrieves available options for the Lead Source ID field.

Full schema: https://pipedream.com/apps/freshmarketer/actions/list-lead-source-id-options.md

### `freshmarketer-list-list-id-options` — List List ID Options (Read-only)

Retrieves available options for the List ID field.

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

### `freshmarketer-list-owner-id-options` — List Owner ID Options (Read-only)

Retrieves available options for the Owner ID field.

Full schema: https://pipedream.com/apps/freshmarketer/actions/list-owner-id-options.md

### `freshmarketer-list-territory-id-options` — List Territory ID Options (Read-only)

Retrieves available options for the Territory ID field.

Full schema: https://pipedream.com/apps/freshmarketer/actions/list-territory-id-options.md

### `freshmarketer-remove-contact-from-list` — Remove Contact From List (Write)

Removes a contact from a specific list by email or contact ID. See the documentation

Full schema: https://pipedream.com/apps/freshmarketer/actions/remove-contact-from-list.md

## Triggers (2)

### `freshmarketer-new-contact-added-to-list` — New Contact Added to List (Polling)

Emit new event when a contact is added to a specific list.

Full schema: https://pipedream.com/apps/freshmarketer/triggers/new-contact-added-to-list.md

### `freshmarketer-new-contact-removed-from-list` — New Contact Removed From List (Polling)

Emit new event as soon as a contact is removed from a list.

Full schema: https://pipedream.com/apps/freshmarketer/triggers/new-contact-removed-from-list.md

---

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