# ActiveCampaign — Pipedream Connect

> ActiveCampaign is the email marketing, marketing automation, and CRM suite you need to create incredible customer experiences.

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

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

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 Automation:
const result = await mcp.callTool({
  name: "activecampaign-add-contact-to-automation",
  arguments: {
    contactId: "Contact ID",
    automationId: "Automation ID",
  },
})
```

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

## API proxy

For a ActiveCampaign 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: "activecampaign-add-contact-to-automation",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    activecampaign: { authProvisionId: "apn_xxxxxxx" },
    contactId: "Contact ID",
    automationId: "Automation ID",
  },
})
```

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

## Actions (20)

### `activecampaign-add-contact-to-automation` — Add Contact to Automation (Write)

Adds an existing contact to an existing automation. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/add-contact-to-automation.md

### `activecampaign-create-account` — Create Account (Write)

Create a new account. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/create-account.md

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

Create a new contact. See the documentation.

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

### `activecampaign-create-deal` — Create Deal (Write)

Creates a new deal. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/create-deal.md

### `activecampaign-create-note` — Create Note (Write)

Adds a note, arbitrary information to a contact, deal, or other Active Campaign objects. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/create-note.md

### `activecampaign-create-or-update-contact` — Create or Update Contact (Write)

Creates a new contact or updates an existing contact. See the documentation.

Full schema: https://pipedream.com/apps/activecampaign/actions/create-or-update-contact.md

### `activecampaign-create-tracked-event` — Create Tracked Event (Write)

Tracks an event using event tracking. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/create-tracked-event.md

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

Finds a contact. See the docs here.

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

### `activecampaign-find-deal` — Find Deal (Read-only)

Finds an existing deal by search field. See the docs here

Full schema: https://pipedream.com/apps/activecampaign/actions/find-deal.md

### `activecampaign-get-all-lists` — Get All Lists (Read-only)

Retrieves all lists. See the docs here

Full schema: https://pipedream.com/apps/activecampaign/actions/get-all-lists.md

### `activecampaign-get-contact` — Get Contact (Read-only)

Retrieves an existing contact. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/get-contact.md

### `activecampaign-get-contact-by-email` — Get contact by email (Read-only)

Retrieves contact data from the ActiveCampaign CRM by email address. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/get-contact-by-email.md

### `activecampaign-get-tags-for-contact` — Get Contact Tags (Read-only)

Get Contact Tags.

Full schema: https://pipedream.com/apps/activecampaign/actions/get-tags-for-contact.md

### `activecampaign-get-deal` — Get Deal (Read-only)

Retrieves an existing deal. See the docs here

Full schema: https://pipedream.com/apps/activecampaign/actions/get-deal.md

### `activecampaign-list-all-contacts` — List All Contacts (Read-only)

Retrieve all existing contacts. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/list-all-contacts.md

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

List Campaigns. See the docs here.

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

### `activecampaign-list-event-type-options` — List Event Type Options (Read-only)

Retrieves available options for the Event Type field.

Full schema: https://pipedream.com/apps/activecampaign/actions/list-event-type-options.md

### `activecampaign-remove-tag-from-contact` — Remove Contact Tag (Write)

Removes a tag from a contact. See the docs here

Full schema: https://pipedream.com/apps/activecampaign/actions/remove-tag-from-contact.md

### `activecampaign-tag-contact` — Tag Contact (Write)

Tags a contact. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/tag-contact.md

### `activecampaign-update-deal` — Update Deal (Write)

Updates an existing deal. See the docs here.

Full schema: https://pipedream.com/apps/activecampaign/actions/update-deal.md

## Triggers (18)

### `activecampaign-new-automation-webhook` — New Automation Webhook (Polling)

Emit new event each time an automation sends out webhook data.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-automation-webhook.md

### `activecampaign-campaign-bounce` — New Campaign Bounce (Instant) (Instant)

Emit new event when a contact email address bounces from a sent campaign.

Full schema: https://pipedream.com/apps/activecampaign/triggers/campaign-bounce.md

### `activecampaign-campaign-link-clicked` — New Campaign Link Clicked (Instant) (Instant)

Emit new event when a link from a campaign is clicked (will only run once for each unique link).

Full schema: https://pipedream.com/apps/activecampaign/triggers/campaign-link-clicked.md

### `activecampaign-campaign-opened` — New Campaign Opened (Instant) (Instant)

Emit new event when a contact opens a campaign (will trigger once per contact per campaign).

Full schema: https://pipedream.com/apps/activecampaign/triggers/campaign-opened.md

### `activecampaign-campaign-starts-sending` — New Campaign Starts Sending (Instant) (Instant)

Emit new event each time a campaign starts sending.

Full schema: https://pipedream.com/apps/activecampaign/triggers/campaign-starts-sending.md

### `activecampaign-new-campaign-unsubscribe` — New Campaign Unsubscribe (Instant) (Instant)

Emit new event when a contact unsubscribes as a result of a campaign email sent to them.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-campaign-unsubscribe.md

### `activecampaign-contact-added-to-list` — New Contact Added to List (Instant) (Instant)

Emit new event each time a new contact is added to a list.

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

### `activecampaign-new-contact-added-to-segment` — New Contact Added to Segment (Polling)

Emit new event each time a new contact is added to a segment.

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

### `activecampaign-new-contact-note` — New Contact Note (Instant) (Instant)

Emit new event each time a new note is added to a contact.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-contact-note.md

### `activecampaign-new-contact-task` — New Contact Task (Instant)

Emit new event each time a new contact task is created.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-contact-task.md

### `activecampaign-new-or-updated-deal` — New Deal Added or Updated (Instant) (Instant)

Emit new event each time a deal is added or updated.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-or-updated-deal.md

### `activecampaign-new-deal-note` — New Deal Note (Instant) (Instant)

Emit new event each time a new note is added to a deal.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-deal-note.md

### `activecampaign-new-deal-task` — New Deal Task (Instant) (Instant)

Emit new event each time a new task is added to a deal.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-deal-task.md

### `activecampaign-new-event` — New Event (Instant) (Instant)

Emit new event for the specified event type from ActiveCampaign.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-event.md

### `activecampaign-new-or-updated-account` — New or Updated Account (Polling)

Emit new event each time an account is added or updated.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-or-updated-account.md

### `activecampaign-new-or-updated-calendar-feed` — New or Updated Calendar Feed (Polling)

Emit new event each time a calendar feed is added or updated.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-or-updated-calendar-feed.md

### `activecampaign-new-or-updated-contact` — New or Updated Contact (Instant) (Instant)

Emit new event each time a contact is added or updated.

Full schema: https://pipedream.com/apps/activecampaign/triggers/new-or-updated-contact.md

### `activecampaign-updated-contact` — New Updated Contact (Instant) (Instant)

Emit new event each time a contact is updated.

Full schema: https://pipedream.com/apps/activecampaign/triggers/updated-contact.md

---

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