Skip to content
Mailgun logo

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”.

Great — a couple more details

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

See all connectors

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.

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

documentation.mailgun.com/docs/mailgun/api-reference/api-…

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.

Great — a couple more details

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