
Connectors / Communication · HTTP Connector
Automate Mailgun with Tray.ai
Send a message, create a domain and create a mailing list in Mailgun, and start a workflow when Mailgun sends “Message accepted”.
Thanks — someone from our team will be in touch soon.
What can you do with Mailgun on Tray.ai?
Mailgun is an email delivery service for developers, used to send, receive, and track transactional and bulk email through an API. Tray.ai connects to Mailgun through the HTTP Connector, so your workflows can call the Mailgun API alongside the rest of your stack.
- When Mailgun sends “Delivery failed permanently”, mark the email as invalid in your customer database.
- When Mailgun sends “Spam complaint received”, unsubscribe the person in your CRM.
- Send a message when your billing system issues an invoice.
- Add a list member when a customer opts in on your website.
- Connects through
- HTTP Connector
- Authentication
- Basic authentication
- Base URL
- https://api.mailgun.net
What the Mailgun API covers
3 resources and 10 documented actions, each one a call the HTTP Connector can make from a Tray.ai workflow.
Messages
- Send a message
- Send a MIME message
Domains
- List domains
- Create a domain
- Update a domain
- Verify a domain
- Delete a domain
Mailing lists
- Create a mailing list
- Add a list member
- Bulk add list members
Events Mailgun can send to a Tray.ai webhook trigger
- Message accepted
- Message delivered
- Delivery failed permanently
- Delivery failed temporarily
- Email opened
- Link clicked
- Recipient unsubscribed
- Spam complaint received
Checked against Mailgun's own documentation on 2026-10-22
How Tray.ai makes this work
Mailgun plugs into the whole Tray.ai platform
Intelligent Integration
Integrate and automate across 5,000+ apps, databases, APIs, and services with visual workflows, error handling, and observability.
Learn more →Agent Builder
Build AI agents that read, write, and take action in Mailgun — with guardrails, audit, and human-in-the-loop.
Learn more →Agent Gateway for MCP
Expose Mailgun actions as governed MCP tools — observable, rate-limited, authenticated.
Learn more →Tray Helix
Build apps on Mailgun data with your AI assistant, then deploy, run, and govern them on Tray.ai.
Learn more →More 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 Mailgun?
+
The Mailgun API documents 10 actions across 3 resources (Messages, Domains, Mailing lists). For example: Send a message; List domains; Create a mailing list. A workflow can make any documented call through the HTTP Connector.
How does Tray.ai authenticate with Mailgun?
+
The Mailgun API uses basic authentication. You save it once as a Tray.ai authentication, and the HTTP Connector adds it to every request.
Which Mailgun events can start a Tray.ai workflow?
+
Mailgun sends 8 events to a webhook URL, for example: Message accepted; Message delivered; Delivery failed permanently; Delivery failed temporarily; Email opened; Link clicked; Recipient unsubscribed; Spam complaint received. A Tray.ai webhook trigger receives them and starts a workflow.
See Mailgun 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.