Back to Nodes

Mailcoach

Last updated Nov 14, 2025

n8n node for Mailcoach API - Manage email lists, subscribers, campaigns, and transactional emails

2 Weekly Downloads
8 Monthly Downloads

Included Nodes

Mailcoach

Description

n8n-nodes-mailcoach

npm version
License: MIT
n8n
Created by Pixel & Process

This is an n8n community node that lets you use Mailcoach in your n8n workflows. Mailcoach is a powerful email marketing platform for managing email lists, campaigns, automations, and transactional emails.

n8n is a fair-code licensed workflow automation platform.

Created by Pixel & Process – Your partner for digital marketing, web development, and process automation in LΓΌbeck, Germany. πŸ‡©πŸ‡ͺ

Table of Contents

Installation

Follow the installation guide in the n8n community nodes documentation.

Community Installation

npm install @pixelandprocess/n8n-nodes-mailcoach

Manual Installation (for development)

  1. Clone this repository
  2. Install dependencies: npm install
  3. Build the node: npm run build
  4. Link the node: npm link
  5. Navigate to your n8n installation and link the node: npm link @pixelandprocess/n8n-nodes-mailcoach

Operations

This node supports the following resources and operations:

Email List

  • Get Many: Retrieve all email lists
  • Get: Get a specific email list by ID
  • Create: Create a new email list
  • Update: Update an existing email list
  • Delete: Delete an email list

Campaign

  • Get Many: Retrieve all campaigns
  • Get: Get a specific campaign by ID
  • Create: Create a new campaign
  • Update: Update an existing campaign
  • Delete: Delete a campaign
  • Send: Send a campaign to subscribers
  • Send Test: Send a test email for a campaign
  • Get Opens: Get campaign open statistics
  • Get Clicks: Get campaign click statistics
  • Get Bounces: Get campaign bounce statistics
  • Get Unsubscribes: Get campaign unsubscribe statistics

Subscriber

  • Get Many: Retrieve all subscribers from an email list
  • Get: Get a specific subscriber by ID
  • Create: Add a new subscriber to an email list
  • Update: Update an existing subscriber
  • Delete: Remove a subscriber
  • Confirm: Confirm a subscriber's email address
  • Unsubscribe: Unsubscribe a subscriber
  • Resubscribe: Resubscribe a previously unsubscribed subscriber
  • Resend Confirmation: Resend the confirmation email to a subscriber
  • Add Tags: Add tags to a subscriber
  • Remove Tags: Remove tags from a subscriber

Tag

  • Create: Create a new tag on an email list
  • Update: Update an existing tag
  • Delete: Delete a tag

Transactional Mail

  • Get Many: Retrieve all transactional mails
  • Get: Get a specific transactional mail by ID
  • Get Templates: Retrieve all transactional mail templates
  • Get Template: Get a specific template by ID
  • Send: Send a transactional email

Automation

  • Trigger: Trigger an automation for specific subscribers

Credentials

To use this node, you need to configure Mailcoach API credentials:

  1. In n8n, go to Credentials β†’ New
  2. Search for "Mailcoach API"
  3. Enter the following information:
    • API Endpoint: Your Mailcoach API endpoint (e.g., https://yourdomain.mailcoach.app/api)
    • API Token: Your Mailcoach API token

Getting Your API Credentials

  1. Log in to your Mailcoach account
  2. Go to Settings β†’ API Tokens
  3. Create a new API token or use an existing one
  4. Copy the API token and endpoint URL

Compatibility

  • Minimum n8n version: 0.180.0
  • Tested against n8n version: 1.0.0+
  • Mailcoach API: v1 (compatible with Mailcoach v6 and up, including Mailcoach Cloud)

Usage

Example: Create and Send a Campaign

  1. Add a Mailcoach node to your workflow
  2. Select Campaign as the resource
  3. Select Create as the operation
  4. Configure the campaign:
    • Email List ID
    • Campaign Name
    • Subject
    • HTML content or template
  5. Add another Mailcoach node
  6. Select Campaign as the resource
  7. Select Send as the operation
  8. Use the campaign ID from the previous step

Example: Add Subscriber with Tags

  1. Add a Mailcoach node to your workflow
  2. Select Subscriber as the resource
  3. Select Create as the operation
  4. Configure the subscriber:
    • Email List ID
    • Email address
    • Additional fields (first name, last name, tags, etc.)

Example: Send Transactional Email

  1. Add a Mailcoach node to your workflow
  2. Select Transactional Mail as the resource
  3. Select Send as the operation
  4. Configure the email:
    • Mail Name (template name)
    • From email
    • To email
    • Replacements (template variables)

Resources

Development

Prerequisites

  • Node.js (v18.10.0 or higher)
  • npm
  • Docker and Docker Compose (for testing)

Setup Development Environment

  1. Clone the repository:

    git clone https://github.com/Pixel-Process-UG/n8n-nodes-mailcoach.git
    cd n8n-nodes-mailcoach
    
  2. Install dependencies:

    npm install
    
  3. Build the node:

    npm run build
    
  4. Start the development environment:

    chmod +x scripts/dev.sh
    ./scripts/dev.sh
    

    Or manually with Docker Compose:

    docker-compose up -d
    
  5. Access n8n at http://localhost:5678

    • Username: admin
    • Password: admin123

Watch Mode

To automatically rebuild on file changes:

npm run dev

Testing the Node

  1. Build the node:

    npm run build
    
  2. Start the test environment:

    chmod +x scripts/test.sh
    ./scripts/test.sh
    
  3. In n8n, add the Mailcoach node to a workflow and test the operations

Project Structure

n8n-mailcoach/
β”œβ”€β”€ credentials/
β”‚   └── MailcoachApi.credentials.ts    # API credentials configuration
β”œβ”€β”€ nodes/
β”‚   └── Mailcoach/
β”‚       β”œβ”€β”€ Mailcoach.node.ts          # Main node implementation
β”‚       └── mailcoach.svg              # Node icon
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ dev.sh                         # Development helper script
β”‚   └── test.sh                        # Testing helper script
β”œβ”€β”€ docker-compose.yml                 # Docker setup for local testing
β”œβ”€β”€ package.json                       # Package configuration
β”œβ”€β”€ tsconfig.json                      # TypeScript configuration
└── README.md                          # This file

Available npm Scripts

  • npm run build: Build the node
  • npm run dev: Watch for changes and rebuild automatically
  • npm run format: Format code with Prettier
  • npm run lint: Lint code with ESLint
  • npm run lintfix: Auto-fix linting issues

Docker Environment

The project includes a Docker Compose setup for easy local testing:

  • n8n: The workflow automation platform (port 5678)
  • postgres: PostgreSQL database for n8n (optional, for production-like setup)

To start:

docker-compose up -d

To stop:

docker-compose down

To view logs:

docker-compose logs -f n8n

API Coverage

This node implements all major Mailcoach API endpoints:

βœ… Email Lists (CRUD operations)
βœ… Subscribers (CRUD + confirm/unsubscribe/resubscribe)
βœ… Campaigns (CRUD + send/test + analytics)
βœ… Tags (CRUD operations)
βœ… Transactional Mails (send + templates)
βœ… Automations (trigger)

Based on the official Mailcoach PHP SDK.

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for detailed guidelines.

Quick start:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Publishing

Automated Publishing

This project uses GitHub Actions to automatically publish to npm when a new release is created:

  1. Update version in package.json
  2. Update CHANGELOG.md with changes
  3. Commit and push changes
  4. Create a tag:
    git tag -a v1.0.1 -m "Release v1.0.1"
    git push origin v1.0.1
    
  5. Create GitHub Release – Publishing to npm happens automatically

GitHub Actions Workflows

  • Build & Test – Runs on every push/PR
  • Version Check – Ensures version is bumped in PRs
  • Publish to npm – Automatic when GitHub release is created

Issues

If you encounter any issues or have questions, please open an issue on GitHub.

License

MIT

Author

Pixel Process UG

Acknowledgments

About Pixel & Process

Pixel & Process is a digital agency based in LΓΌbeck, Germany, specializing in:

  • πŸ“ˆ Performance Marketing – Google Ads, Meta, LinkedIn
  • 🎨 Web Design & Development – Next.js, React, modern web technologies
  • βš™οΈ Process Automation – n8n, workflow automation, efficiency optimization
  • πŸ”“ Open Source Solutions – GDPR-compliant, sustainable digital transformation

We build tools like this n8n-mailcoach node to help businesses automate their marketing and improve efficiency.

🌐 Website: pixelandprocess.de
πŸ“§ Contact: info@pixel-process.com
πŸ“ Location: LΓΌbeck, Germany


Note: This is a community-created node and is not officially maintained by n8n GmbH or Spatie.