Integrations
Mailgun logo

Mailgun integration

Communication · 9 actions · API key auth

Transactional email API for sending, receiving, and tracking email

Overview

The ModuleX Mailgun integration lets a ModuleX agent operate Mailgun on your behalf — running create, send and remove actions across emails, mailinglist members and routes — directly from a plain-English request, using your organization's own Mailgun credentials. No pre-built workflow is required: the agent picks the right Mailgun action for the task.

Mailgun is a communication platform. ModuleX adds the agent layer: ask for an outcome and it selects and runs the right Mailgun action — or, when you want a repeatable process, the composer assembles a Mailgun workflow for you, streaming the nodes onto the canvas as it builds.

Ask the assistant

Drive Mailgun in plain English

Type what you want. A ModuleX agent picks the right Mailgun action — or chains several — and runs it. No workflow to build.

  • Add a member to an existing Mailgun mailing list
    resolves tocreate_mailinglist_member
  • Find the mailinglist member I describe and remove it
    resolves tolist_mailinglist_membersdelete_mailinglist_member
  • Send an email via Mailgun
    resolves tosend_email
  • Show me the domains that match what I describe
    resolves tolist_domains
Use cases

What you can automate with Mailgun

  • Find the right mailinglist member and remove it in one promptlist_mailinglist_membersdelete_mailinglist_member
  • Send an email where it needs to gosend_email
  • Create a route straight from a requestcreate_route
  • Pull a list of domains for a reportlist_domains
At a glance

Mailgun integration at a glance

VendorMailgun
CategoryCommunication
Actions available9
AuthenticationAPI key
Uses your own credentialsYes
Works with the assistantYes
Works in the composerYes
Multi-step / tool-chainingYes
Technical referenceView docs
Integration version1.0.0
Last updatedJun 2026
Reference

All 9 Mailgun actions

Emails2
send_email
Send an email via Mailgun
verify_email
Verify an email address for deliverability using Mailgun's validation API
Mailinglist Members4
create_mailinglist_member
Add a member to an existing Mailgun mailing list
delete_mailinglist_member
Delete a member from a Mailgun mailing list by email address
list_mailinglist_members
List all members of a Mailgun mailing list
retrieve_mailinglist_member
Get details of a specific mailing list member by email address
Routes1
create_route
Create a new Mailgun route for email matching and forwarding
Domains1
list_domains
List all domains configured in the Mailgun account
Suppress Emails1
suppress_email
Add an email address to a Mailgun suppression list (bounces, unsubscribes, or complaints)

See full parameters and response schemas in the Mailgun integration docs

Two ways

Two ways to use Mailgun in ModuleX

Ask the assistantType what you want done and a ModuleX agent picks the right Mailgun action and runs it — no workflow to build.
Compose a workflowNeed it to happen every time? Describe the process and the composer wires Mailgun into a repeatable workflow you can run on a schedule, from chat, or as an API.
Security

Connecting Mailgun

API keyMailgun uses API-key authentication. You provide your own Mailgun secret key; ModuleX encrypts it and scopes it to your organization, so your whole team can use Mailgun without re-authenticating.

Step-by-step setup in the Mailgun docs

Related

Pairs well with Mailgun

Agents often chain Mailgun with these — connect them once and the agent can use all of them in a single task.

FAQ

Mailgun + ModuleX FAQ

A ModuleX agent can run any of Mailgun's 9 actions — across emails, mailinglist members, routes and domains — from a plain-English request, using your organization's own Mailgun credentials.
No. The agent selects the right Mailgun action from your prompt. A workflow is only needed when you want a repeatable process — and the composer builds that for you from a description.
Via your own Mailgun API key, stored encrypted and scoped to your organization.
9, spanning emails, mailinglist members, routes and domains.
Mailgun runs on your own credentials, so any Mailgun usage is billed by Mailgun directly. ModuleX meters the agent run — and if you connect your own model keys, there's no ModuleX markup on model usage.

Put Mailgun to work in ModuleX.

Connect Mailgun once with your own credentials and let your agent run all 9 actions on demand.

Last updated: Jun 2026Browse all 175 integrations →