Mailgun
Also an agent toolMailgun email delivery, domain/DKIM/IP management, routing, mailing lists, templates, suppressions, validation, analytics, and event webhooks via the Mailgun REST API
157 actions · 11 triggers
The Mailgun integration lets you connect Mailgun to your automations with 157 actions and 11 triggers — and every action is also a tool an AI agent can call. Examples: Send Message, Send MIME Message, Get Stored Message, Resend Stored Message, Get Sending Queues. No blank-canvas wiring — connect it and use it in your workflows.
Every action below is also a tool an AI agent can call — the same pack powers your workflows and your agents.
Triggers 11
Events in Mailgun that can start a workflow.
Message Accepted
Mailgun accepted the message for delivery
Message Delivered
Message delivered to the recipient MX
Message Temporary Failed
Transient delivery failure (will retry)
Message Permanent Failed
Permanent failure / hard bounce
Message Opened
Recipient opened the message (open tracking)
Message Clicked
Recipient clicked a tracked link
Message Unsubscribed
Recipient clicked the unsubscribe link
Message Complained
Recipient marked the message as spam
List Member Uploaded
Mailing-list bulk member uploaded (account webhook)
Inbound Message Received
Received mail forwarded by a route forward() HTTP action
New Email Event
Follow paging.next URLs verbatim; ~3-day retention so poll frequently.
Actions 157
What Zervanor can do in Mailgun.
V3101
Send Message
Send a message from structured form fields (POST /v3/{domain}/messages). Accepts multipart/form-data or x-www-form-urlencoded, not JSON.
Send MIME Message
Send a pre-built raw MIME message (POST /v3/{domain}/messages.mime); form field message = MIME.
Get Stored Message
Retrieve a stored/received message by storage key (GET /v3/domains/{domain}/messages/{storage_key}).
Resend Stored Message
Resend a stored message (POST /v3/domains/{domain}/messages/{storage_key}).
Get Sending Queues
Get default + scheduled message queue status for a domain (GET /v3/domains/{domain}/sending_queues).
Purge Scheduled Mail
Purge all scheduled/undelivered mail from the queue (DELETE /v3/{domain}/envelopes); must hit matching storage host.
Delete Domain
Delete a domain (DELETE /v3/domains/{name}).
Update DKIM Authority
Delegate DKIM authority to another domain (PUT /v3/domains/{name}/dkim_authority).
Update DKIM Selector
Update the DKIM selector (PUT /v3/domains/{name}/dkim_selector).
Create Route
Create a route with filter expression + actions (POST /v3/routes).
List Routes
List all account routes (GET /v3/routes).
Get Route
Get a single route (GET /v3/routes/{id}).
Update Route
Update a route (selective fields) (PUT /v3/routes/{id}).
Delete Route
Delete a route (DELETE /v3/routes/{id}).
Match Route
Test whether an address matches any route (GET /v3/routes/match).
Create Mailing List
Create a mailing list (POST /v3/lists).
List Mailing Lists
List mailing lists (GET /v3/lists).
Paginate Mailing Lists
Paginate mailing lists (GET /v3/lists/pages).
Get Mailing List
Get a single mailing list (GET /v3/lists/{list_address}).
Update Mailing List
Update a list (PUT /v3/lists/{list_address}).
Delete Mailing List
Delete a list (DELETE /v3/lists/{list_address}).
Add List Member
Add a member to a list (POST /v3/lists/{list_address}/members).
List List Members
List members of a list (GET /v3/lists/{list_address}/members).
Paginate List Members
Paginate members of a list (GET /v3/lists/{list_address}/members/pages).
Get List Member
Get a single list member (GET /v3/lists/{list_address}/members/{member_address}).
Update List Member
Update a list member (PUT /v3/lists/{list_address}/members/{member_address}).
Delete List Member
Delete a list member (DELETE /v3/lists/{list_address}/members/{member_address}).
Bulk Add Members (JSON)
Bulk add up to 1000 members as JSON (POST /v3/lists/{list_address}/members.json).
Bulk Add Members (CSV)
Bulk add up to 1000 members from CSV (POST /v3/lists/{list_address}/members.csv).
List Domain Templates
List domain templates (GET /v3/{domain}/templates).
Create Domain Template
Create a domain template (POST /v3/{domain}/templates).
Delete All Domain Templates
Delete all domain templates (DELETE /v3/{domain}/templates).
Get Domain Template
Get a domain template (GET /v3/{domain}/templates/{template}).
Update Domain Template
Update domain template description (PUT /v3/{domain}/templates/{template}).
Delete Domain Template
Delete a domain template (DELETE /v3/{domain}/templates/{template}).
Rename Domain Template
Rename a domain template (PUT /v3/{domain}/templates/{template}/rename/{new_name}).
Copy Domain Template
Copy a domain template (PUT /v3/{domain}/templates/{template}/copy).
List Domain Template Versions
List versions of a domain template (GET /v3/{domain}/templates/{template}/versions).
Add Domain Template Version
Add a version to a domain template (POST /v3/{domain}/templates/{template}/versions).
Get Domain Template Version
Get a domain template version (GET /v3/{domain}/templates/{template}/versions/{version}).
Update Domain Template Version
Update a domain template version (PUT /v3/{domain}/templates/{template}/versions/{version}).
Delete Domain Template Version
Delete a domain template version (DELETE /v3/{domain}/templates/{template}/versions/{version}).
Copy Domain Template Version
Copy a domain template version (PUT /v3/{domain}/templates/{template}/versions/{version}/copy/{new_version}).
List Bounces
List bounces (GET /v3/{domain}/bounces).
Get Bounce
Get one bounce (GET /v3/{domain}/bounces/{address}).
Add Bounce
Add bounce(s) (POST /v3/{domain}/bounces).
Import Bounces
Import bounces from CSV (POST /v3/{domain}/bounces/import).
Delete Bounce
Delete one bounce (DELETE /v3/{domain}/bounces/{address}).
Delete All Bounces
Delete all bounces (DELETE /v3/{domain}/bounces).
List Complaints
List complaints (GET /v3/{domain}/complaints).
Get Complaint
Get one complaint (GET /v3/{domain}/complaints/{address}).
Add Complaint
Add complaint(s) (POST /v3/{domain}/complaints).
Import Complaints
Import complaints from CSV (POST /v3/{domain}/complaints/import).
Delete Complaint
Delete one complaint (DELETE /v3/{domain}/complaints/{address}).
Delete All Complaints
Delete all complaints (DELETE /v3/{domain}/complaints).
List Unsubscribes
List unsubscribes (GET /v3/{domain}/unsubscribes).
Get Unsubscribe
Get one unsubscribe (GET /v3/{domain}/unsubscribes/{address}).
Add Unsubscribe
Add unsubscribe(s) (POST /v3/{domain}/unsubscribes).
Import Unsubscribes
Import unsubscribes from CSV (POST /v3/{domain}/unsubscribes/import).
Delete Unsubscribe
Delete one unsubscribe to resume delivery (DELETE /v3/{domain}/unsubscribes/{address}).
Delete All Unsubscribes
Delete all unsubscribes (DELETE /v3/{domain}/unsubscribes).
List Allowlist Entries
List allowlist (whitelist) entries (GET /v3/{domain}/whitelists).
Get Allowlist Entry
Get one allowlist entry (GET /v3/{domain}/whitelists/{value}).
Add Allowlist Entry
Add an allowlist entry (POST /v3/{domain}/whitelists).
Import Allowlist
Import allowlist from CSV (POST /v3/{domain}/whitelists/import).
Delete Allowlist Entry
Delete one allowlist entry (DELETE /v3/{domain}/whitelists/{value}).
Delete Entire Allowlist
Delete entire allowlist (DELETE /v3/{domain}/whitelists).
Query Events
Query message events with ~3-day retention; paginate via paging.next/previous URLs (GET /v3/{domain}/events).
List Tags
List tags for a domain (GET /v3/{domain}/tags). Deprecated by Mailgun.
Get Tag
Get a tag (GET /v3/{domain}/tag).
Create or Update Tag
Create/update a tag (PUT /v3/{domain}/tag).
Delete Tag
Delete a tag (DELETE /v3/{domain}/tag).
Get Tag Stats
Get tag stats (GET /v3/{domain}/tag/stats).
Get Tag Stat Aggregates
Tag stat aggregates by event type (GET /v3/{domain}/tag/stats/aggregates).
Get Tag Limits
Get tag limits for a domain (GET /v3/domains/{domain}/limits/tag).
List Domain Webhooks
List domain webhooks (GET /v3/domains/{domain}/webhooks).
Create Domain Webhook
Create a domain webhook for a single event (POST /v3/domains/{domain}/webhooks).
Get Domain Webhook
Get a domain webhook by event name (GET /v3/domains/{domain}/webhooks/{name}).
Update Domain Webhook
Replace a domain webhook URL (PUT /v3/domains/{domain}/webhooks/{name}).
Delete Domain Webhook
Delete a domain webhook (DELETE /v3/domains/{domain}/webhooks/{name}).
List IPs
List account IPs (GET /v3/ips).
Get IP
Get a single IP details (GET /v3/ips/{ip}).
List IP Domains
List domains an IP is assigned to (GET /v3/ips/{ip}/domains).
Assign IP To Domains
Assign an IP to all account domains (POST /v3/ips/{ip}/domains).
Remove IP From Domains
Remove an IP from all account domains (DELETE /v3/ips/{ip}/domains).
Request New IP
Request a new dedicated IP (POST /v3/ips/request/new).
List All IPs (Account + Subaccounts)
List IPs across account + subaccounts (GET /v3/ips/details/all).
Set IP Band
Place an IP into a dedicated IP band (POST /v3/ips/{ip}/ip_band).
List IP Pools
List dedicated IP pools (GET /v3/ip_pools).
Create IP Pool
Create an IP pool (POST /v3/ip_pools).
Get IP Pool
Get a pool (GET /v3/ip_pools/{pool_id}).
Update IP Pool
Update pool properties / IPs (PATCH /v3/ip_pools/{pool_id}).
Delete IP Pool
Delete a pool with optional replacement (DELETE /v3/ip_pools/{pool_id}).
List IP Pool Domains
List domains linked to a pool (GET /v3/ip_pools/{pool_id}/domains).
Add IP To Pool
Add an IP to a pool (PUT /v3/ip_pools/{pool_id}/ips/{ip}).
Remove IP From Pool
Remove an IP from a pool (DELETE /v3/ip_pools/{pool_id}/ips/{ip}).
Add Multiple IPs To Pool
Add multiple IPs to a pool (POST /v3/ip_pools/{pool_id}/ips.json).
Delegate IP Pool
Delegate a pool to a subaccount (PUT /v3/ip_pools/{pool_id}/delegate).
Revoke IP Pool Delegation
Revoke subaccount delegation (DELETE /v3/ip_pools/{pool_id}/delegate).
Remove IP From Domain Pool
Remove an IP from a domain pool (DELETE /v3/domains/{name}/ips/{ip}).
Unlink Pool From Domain
Remove an IP / unlink pool from a domain (DELETE /v3/domains/{name}/pool/{ip}).
V435
List Domains
List domains, optionally filtered by state/authority (GET /v4/domains).
Create Domain
Create a sending domain (POST /v4/domains).
Get Domain
Get a single domain state and settings (GET /v4/domains/{name}).
Update Domain
Update domain config: SMTP creds, sender security, spam action, wildcard, web scheme (PUT /v4/domains/{name}).
Verify Domain
Re-verify the domain DNS records (PUT /v4/domains/{name}/verify).
List Domain DKIM Keys
List all DKIM keys for a domain (GET /v4/domains/{authority}/keys).
Activate DKIM Key
Activate a key for DKIM signing (PUT /v4/domains/{authority}/keys/{selector}/activate).
Deactivate DKIM Key
Deactivate a key (PUT /v4/domains/{authority}/keys/{selector}/deactivate).
List Account Templates
List account templates (GET /v4/templates).
Create Account Template
Create an account template (POST /v4/templates).
Delete All Account Templates
Delete all account templates (DELETE /v4/templates).
Get Account Template
Get a template with active version (GET /v4/templates/{template}).
Update Account Template
Update template description (PUT /v4/templates/{template}).
Delete Account Template
Delete a template and all versions (DELETE /v4/templates/{template}).
Rename Account Template
Rename a template (PUT /v4/templates/{template}/rename/{new_name}).
Copy Account Template
Copy a template (PUT /v4/templates/{template}/copy).
List Account Template Versions
List versions of a template (GET /v4/templates/{template}/versions).
Add Account Template Version
Add a version (POST /v4/templates/{template}/versions).
Get Account Template Version
Get a version (GET /v4/templates/{template}/versions/{version}).
Update Account Template Version
Update a version content/active flag (PUT /v4/templates/{template}/versions/{version}).
Delete Account Template Version
Delete a version (DELETE /v4/templates/{template}/versions/{version}).
Copy Account Template Version
Copy a version (PUT /v4/templates/{template}/versions/{version}/copy/{new_version}).
Create Domain Webhooks (Multi-Event)
Create webhooks for multiple event types (POST /v4/domains/{domain}/webhooks).
Update Domain Webhooks (Multi-Event)
Update event-type associations (PUT /v4/domains/{domain}/webhooks).
Delete Domain Webhooks (Multi-Event)
Delete webhooks from event types (DELETE /v4/domains/{domain}/webhooks).
Validate Address
Validate a single email address (GET /v4/address/validate).
Validate Address (POST)
Validate a single address via form body (POST /v4/address/validate).
Start Bulk Validation
Start a bulk validation job by uploading a file (POST /v4/address/validate/bulk/{list_id}).
Get Bulk Validation Job
Get bulk validation job status / download URLs (GET /v4/address/validate/bulk/{list_id}).
Delete Bulk Validation Job
Cancel / delete a bulk validation job (DELETE /v4/address/validate/bulk/{list_id}).
List Bulk Validation Jobs
List bulk validation jobs (GET /v4/address/validate/bulk).
Start List Preview Validation
Start a list-health preview job (POST /v4/address/validate/preview/{list_id}).
Get Preview Validation Job
Get preview job status (GET /v4/address/validate/preview/{list_id}).
Delete Preview Validation Job
Delete a preview job (DELETE /v4/address/validate/preview/{list_id}).
List Preview Validation Jobs
List preview jobs (GET /v4/address/validate/preview).
V111
List Domain Keys
List domain keys, filter by signing domain/selector (GET /v1/dkim/keys).
Create Domain Key
Create a new domain key or import an existing PEM (POST /v1/dkim/keys).
Delete Domain Key
Delete a domain key permanently (DELETE /v1/dkim/keys).
Query Metrics
Query filtered account metrics (POST /v1/analytics/metrics). JSON body.
Query Usage Metrics
Query filtered account usage metrics (POST /v1/analytics/usage/metrics). JSON body.
List Account Webhooks
List account webhooks (GET /v1/webhooks).
Create Account Webhook
Create account webhook(s) (POST /v1/webhooks).
Get Account Webhook
Get an account webhook (GET /v1/webhooks/{id}).
Update Account Webhook
Update an account webhook (PUT /v1/webhooks/{id}).
Delete Account Webhook
Delete an account webhook (DELETE /v1/webhooks/{id}).
Delete Account Webhooks
Delete account webhooks (all or by IDs) (DELETE /v1/webhooks).
V510
List Subaccounts
List subaccounts (GET /v5/accounts/subaccounts).
Create Subaccount
Create a subaccount (POST /v5/accounts/subaccounts).
Get Subaccount
Get a subaccount (GET /v5/accounts/subaccounts/{id}).
Delete Subaccount
Delete a subaccount (DELETE /v5/accounts/subaccounts/{id}).
Enable Subaccount
Enable a subaccount (POST /v5/accounts/subaccounts/{id}/enable).
Disable Subaccount
Disable a subaccount (POST /v5/accounts/subaccounts/{id}/disable).
Get Subaccount Monthly Limit
Get custom monthly sending limit (GET /v5/accounts/subaccounts/{id}/limit/custom/monthly).
Set Subaccount Monthly Limit
Set custom monthly sending limit (PUT /v5/accounts/subaccounts/{id}/limit/custom/monthly).
Remove Subaccount Monthly Limit
Remove custom monthly sending limit (DELETE /v5/accounts/subaccounts/{id}/limit/custom/monthly).
Update Subaccount Features
Update subaccount features (PUT /v5/accounts/subaccounts/{id}/features).
Nothing matches your search.
Automations using Mailgun
Build your own automation with Mailgun in the visual builder.
Frequently asked questions
What can I automate with Mailgun?
157 actions are available — for example: Send Message, Send MIME Message, Get Stored Message, Resend Stored Message, Get Sending Queues, and more.
Which Mailgun events can start a workflow?
11 triggers — for example: Message Accepted, Message Delivered, Message Temporary Failed, Message Permanent Failed.
Can Mailgun be used as an AI agent tool?
Yes. Every Mailgun action automatically becomes a tool an AI agent can call — the same pack powers both your workflows and your agents.
How is the Mailgun integration modelled?
Mailgun is modelled as a versioned connector pack, and the steps that need reasoning fall to first-party agents hosted in the same runtime as the workflows.