Skip to content
Mailercloud logo

Connectors / Marketing · HTTP Connector

Mailercloud integration and API

Create a contact, create a list and create a campaign in Mailercloud, and start a workflow when Mailercloud sends “Campaign sent”.

What can you do with Mailercloud on Tray.ai?

Mailercloud is an email marketing service for sending campaigns and transactional email, managing contact lists and segments, running automations, and verifying addresses. Tray.ai connects to Mailercloud through the HTTP Connector, so your workflows can call the Mailercloud API alongside the rest of your stack.

  • When Mailercloud sends “Hard bounce”, mark the email as invalid in your CRM.
  • When Mailercloud sends “Contact unsubscribed”, record the opt-out in your CRM.
  • Create or update a contact when a customer signs up in your online store.
  • Send a personalized email when your billing system confirms a renewal.
Connects through
HTTP Connector
Authentication
An API key in a request header
Base URL
https://cloudapi.mailercloud.com/v1

Set it up

Connect Mailercloud to Tray.ai

Each step uses Mailercloud's own API details, from its documentation.

Save Mailercloud's API key

Save the key as a Tray.ai authentication. The HTTP Client puts it in the request header, read from $.auth. The key stays out of the workflow and out of the logs.

Point the HTTP Client at the API

Add an HTTP Client step and use https://cloudapi.mailercloud.com/v1 as the base URL. Or paste a cURL example from Mailercloud's API docs, and Tray.ai fills in the method, URL, and headers.

Start with “Get contact details”

It's one of 25 documented actions, under Contacts. The response comes back as data the next step can map into your other apps.

Start workflows from Mailercloud events

Give Mailercloud the URL of a Tray.ai webhook trigger. “Campaign sent” can then start a workflow, and so can 6 other events.

Workflows to build with Mailercloud

Connect Mailercloud with Shopify, Slack, HubSpot and Salesforce

Each one uses actions and events from Mailercloud's own API documentation.

Add Shopify customers to Mailercloud

When

A customer is created in Shopify

Then

  1. Create or update a contact in the customers list
  2. Post the new customer to the marketing channel in Slack

With Shopify and Slack

Update HubSpot when Mailercloud contacts unsubscribe

When

Contact unsubscribed

Then

  1. Find the contact in HubSpot by email
  2. Mark the contact unsubscribed in HubSpot

With HubSpot

Flag Mailercloud hard bounces in Salesforce

When

Hard bounce

Then

  1. Find the contact in Salesforce by email
  2. Mark the email as bounced on the contact in Salesforce

With Salesforce

Apps you can build on Mailercloud data

Internal tools your team can build with an AI assistant, each one using Mailercloud calls from its API documentation.

Campaign calendar

Lists campaigns and lets a marketer schedule one or send a test email.

Contact lookup

Shows a contact's details and lets support update them or add a suppression.

Campaign engagement feed

Shows opens, clicks, unsubscribes and spam complaints as they come in.

Mailercloud MCP server for AI agents

Build an MCP server on Mailercloud in Agent Gateway and choose which actions your agents can call. Every call runs with access control and an audit trail. How Agent Gateway works

  • Create a contact
  • List lists
  • Create a campaign
  • List segments
  • Send an email
  • Create a webhook
  • Create or update a contact
  • Get contact details

What the Mailercloud API covers

6 resources and 25 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow. Connecting it takes a few clicks: here's how.

Contacts

  • Create a contact
  • Create or update a contact
  • Get contact details
  • Update a contact
  • Delete a contact
  • Create batch contacts

Lists

  • List lists
  • Create a list
  • Update a list
  • Delete a list

Campaigns

  • Create a campaign
  • List campaigns
  • Update a campaign
  • Schedule a campaign
  • Send a test email

Segments

  • List segments
  • Create a segment
  • Update a segment

Email

  • Send an email
  • Send a personalized email
  • Add suppressions

Webhooks

  • Create a webhook
  • Update a webhook
  • Delete a webhook
  • Test a webhook

Events Mailercloud can send to a Tray.ai webhook trigger

  • Campaign sent
  • Campaign opened
  • Campaign clicked
  • Contact unsubscribed
  • Campaign error
  • Marked as spam
  • Hard bounce

Checked against Mailercloud's own documentation on 2026-10-22

apidoc.mailercloud.com

Frequently asked questions

What can a Tray.ai workflow do in Mailercloud?

The Mailercloud API documents 25 actions across 6 resources (Contacts, Lists, Campaigns, Segments, Email, Webhooks). For example: Create a contact; List lists; Create a campaign. A workflow can make any documented call through the HTTP Connector.

How does Tray.ai authenticate with Mailercloud?

The Mailercloud API uses an API key in a request header. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.

Which Mailercloud events can start a Tray.ai workflow?

Mailercloud sends 7 events to a webhook URL, for example: Campaign sent; Campaign opened; Campaign clicked; Contact unsubscribed; Campaign error; Marked as spam; Hard bounce. A Tray.ai webhook trigger receives them and starts a workflow.

See Mailercloud working against your stack.

We'll walk through a tailored demo with your systems plugged in.

Great, a couple more details

This helps us connect you with the right person. Optional, and you can skip it.