---
title: "Mailgun"
canonical: "https://layest.com/en/integrations/mailgun"
language: "en"
description: "Mailgun is an email service for developers. Applications can send transactional emails and retrieve information about deliveries, bounces, and failures."
---

# Mailgun

Mailgun is an email service for developers. Applications can send transactional emails and retrieve information about deliveries, bounces, and failures.

## Authentication

**Basic auth**: The provider checks a username and password sent with the request. HTTPS protects those credentials in transit.

## Categories

- Marketing

## Actions from Mailgun

These supported actions can be set up out of the box and used by our agents.

- **Add list member**: Add a member (subscriber) to a Mailgun mailing list.
- **Create bounce**: Manually add an address to a domain's bounce suppression list.
- **Create complaint**: Manually add an address to a domain's spam-complaint suppression list
- **Create list**: Create a new mailing list
- **Create template**: Create a new message template (with its initial version).
- **Create unsubscribe**: Manually add an address to a domain's unsubscribe suppression list.
- **Create whitelist entry**: Add an address or domain to a domain's sending allowlist, bypassing spam filtering for it.
- **Delete bounce**: Remove an address from a domain's bounce suppression list.
- **Delete complaint**: Remove an address from a domain's spam-complaint suppression list
- **Delete list**: Delete a mailing list.
- **Delete template**: Delete a template and all its versions.
- **Delete unsubscribe**: Remove an address from a domain unsubscribe suppression list.
- **Delete whitelist entry**: Remove an address or domain from the sending allowlist of a Mailgun domain.
- **Get bounce**: Check whether a specific address is on a domain bounce suppression list
- **Get complaint**: Check whether a specific address is on a domain's spam-complaint suppression list.
- **Get domain**: Retrieve a single sending domain's details, including DNS records.
- **Get list**: Retrieve a single mailing list by its address
- **Get list member**: Retrieve a single mailing list member by email.
- **Get list with members**: Retrieves a mailing list's details together with its full member roster in one call.
- **Get template**: Retrieve a single template's details by name
- **Get unsubscribe**: Check whether a specific address is on a domain's unsubscribe suppression list.
- **Get whitelist entry**: Retrieve a single allowlist (whitelist) entry by address.
- **List bounces**: List hard-bounce suppression entries for a domain.
- **List complaints**: List spam-complaint suppression entries for a domain.
- **List domains**: List sending domains on the account.
- **List events**: List delivery/open/click/bounce/complaint event log entries for a domain
- **List list members**: List members of a mailing list.
- **List lists**: List mailing lists on the account.
- **List templates**: List stored message templates for a domain
- **List unsubscribes**: List unsubscribe suppression entries for a Mailgun domain.
- **List whitelist entries**: List a domain's sending allowlist (whitelist) entries
- **Remove list member**: Remove a member from a mailing list.
- **Send email safely**: Checks a recipient against the domain's bounce, complaint, and unsubscribe suppression lists and only sends the message if the address is not suppressed.
- **Send message**: Send an email message through a domain.
- **Subscribe email to list**: Add a member to a mailing list, automatically creating the list first if it does not exist yet.
- **Update list member**: Update a mailing list member's subscription status, name, or custom variables.
- **Update template**: Update a template's metadata (description and/or name).

## Triggers from Mailgun

Once configured in Nango, these sync templates can provide changes as triggers.

- **Bounces**: Sync hard-bounce suppression entries, fanned out across all domains on the Mailgun account.
- **Complaints**: Sync spam-complaint suppression entries, fanned out across all Mailgun domains on the connection
- **Domains**: Sync all sending domains on the Mailgun account.
- **Events**: Syncs Mailgun event log entries (accepted, delivered, failed, rejected, opened, clicked, complained, etc.) across all domains on the connection. Incremental via a per-domain timestamp high-watermark; only covers the Mailgun event retention window, not a permanent archive.
- **List members**: Sync members across all Mailgun mailing lists: enumerate every mailing list, then fetch every member of each list tagged with its parent list address
- **Lists**: Sync mailing lists on the account.
- **Templates**: Syncs stored message templates, fanned out across all Mailgun domains on the account
- **Unsubscribes**: Sync domain-wide unsubscribe suppression entries, fanned out across all Mailgun domains
