Connectors / Communication · HTTP Connector
MailerSend integration and API
Send an email, create a template and add a domain in MailerSend, and start a workflow when MailerSend sends “Email sent”.
What can you do with MailerSend on Tray.ai?
MailerSend is a transactional email and SMS service for developers, covering sending, templates, domain setup, delivery tracking and inbound routing. Tray.ai connects to MailerSend through the HTTP Connector, so your workflows can call the MailerSend API alongside the rest of your stack.
- When MailerSend sends “Email hard bounced”, flag the address in your customer database.
- Send an email when your billing system records a successful payment.
- When MailerSend sends “Recipient unsubscribed”, update the opt-out field in your CRM.
- Send bulk emails to affected customers when your incident tool declares an outage.
- Connects through
- HTTP Connector
- Authentication
- A bearer token
- Base URL
- https://api.mailersend.com/v1
Set it up
Connect MailerSend to Tray.ai
Each step uses MailerSend's own API details, from its documentation.
Save MailerSend's API token
Save the token MailerSend issues as a Tray.ai authentication. The HTTP Client sends it as a bearer token on every call. The token 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://api.mailersend.com/v1 as the base URL. Or paste a cURL example from MailerSend's API docs, and Tray.ai fills in the method, URL, and headers.
Start with “Get bulk email status”
It's one of 20 documented actions, under Email. The response comes back as data the next step can map into your other apps.
Start workflows from MailerSend events
Give MailerSend the URL of a Tray.ai webhook trigger. “Email sent” can then start a workflow, and so can 8 other events.
Workflows to build with MailerSend
Connect MailerSend with HubSpot, Shopify and Slack
Each one uses actions and events from MailerSend's own API documentation.
Send MailerSend order confirmations for Shopify orders
When
An order is placed in Shopify
Then
- Get the order items and shipping details from Shopify
- Send an email using the order confirmation template
With Shopify
Flag MailerSend hard bounces in HubSpot
When
Email hard bounced
Then
- Find the contact in HubSpot by email
- Mark the contact's email as invalid in HubSpot
With HubSpot
Apps you can build on MailerSend data
Internal tools your team can build with an AI assistant, each one using MailerSend calls from its API documentation.
Delivery issue feed
Lists bounces and spam complaints as they happen so support can follow up with the recipient.
Blocklist lookup
Lists blocklisted recipients and lets support look up or delete a recipient.
Template library
Lists email templates and lets the team update or delete one.
MailerSend MCP server for AI agents
Build an MCP server on MailerSend 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
- Send an email
- List templates
- List domains
- List recipients
- List webhooks
- Send bulk emails
- Get bulk email status
- Get a template
What the MailerSend API covers
5 resources and 20 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. New to APIs? Read what an API integration is.
- Send an email
- Send bulk emails
- Get bulk email status
Templates
- List templates
- Get a template
- Create a template
- Update a template
- Delete a template
Domains
- List domains
- Get a domain
- Add a domain
- Delete a domain
Recipients
- List recipients
- Get a recipient
- Delete a recipient
- List blocklisted recipients
Webhooks
- List webhooks
- Create a webhook
- Update a webhook
- Delete a webhook
Events MailerSend can send to a Tray.ai webhook trigger
- Email sent
- Email delivered
- Email soft bounced
- Email hard bounced
- Email opened
- Email clicked
- Recipient unsubscribed
- Spam complaint
- Sender identity verified
Checked against MailerSend's own documentation on 2026-10-22
How Tray.ai makes this work
MailerSend plugs into the whole Tray.ai platform
Tray iPaaS
Integrate and automate across 12,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn moreTray Helix agents
Agents in the apps your teams run on Tray Helix that read, write, and act in MailerSend, with a person's approval on any tool you choose.
Learn moreAgent Gateway for MCP
Expose MailerSend actions as governed MCP tools: observable, rate-limited and authenticated.
Learn moreTray Helix
Build apps on MailerSend data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn moreMore communication apps on Tray.ai
Dedicated connectors and other apps Tray.ai reaches in the same category. See every communication connector →
Frequently asked questions
What can a Tray.ai workflow do in MailerSend?
The MailerSend API documents 20 actions across 5 resources (Email, Templates, Domains, Recipients, Webhooks). For example: Send an email; List templates; List domains. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with MailerSend?
The MailerSend API uses a bearer token. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which MailerSend events can start a Tray.ai workflow?
MailerSend sends 9 events to a webhook URL, for example: Email sent; Email delivered; Email soft bounced; Email hard bounced; Email opened; Email clicked; Recipient unsubscribed; Spam complaint. A Tray.ai webhook trigger receives them and starts a workflow.
See MailerSend working against your stack.
We'll walk through a tailored demo with your systems plugged in.
Thanks. Someone from our team will be in touch soon.