get_domain | Get one domain: state, settings and the DNS records (SPF, DKIM, MX, tracking CNAME) it needs. |
get_mailing_list | Get one mailing list: name, description, access level and member count. |
get_stats | Query sending metrics (counts and rates: delivered, opened, clicked, bounced…) over a time range, optionally for one domain and broken down by dimensions such as time, tag or domain. Read-only query. |
get_template | Get one stored template; with active “yes”, also its active version content. |
list_bounces | List bounced addresses of a domain (Mailgun no longer sends to them) with the bounce code and error. |
list_complaints | List addresses of a domain that marked a message as spam. |
list_domains | List the sending domains of the account with their state (active, unverified, disabled). Returns the domain names every other action takes as “domain”. |
list_events | List delivery events of a domain (accepted, rejected, delivered, failed, opened, clicked, unsubscribed, complained, stored), newest first unless ascending is “yes”. Filter by event type, recipient, tags or time range (epoch seconds). Follow paging.next in the response for more. |
list_list_members | List the members of a mailing list with their name, variables and subscription status. |
list_mailing_lists | List the mailing lists of the account with their address, name and member count. |
list_tags | List the tags used on the account, or search tags by prefix, optionally with their metrics. Read-only query. |
list_templates | List the stored templates of a domain. Their names are usable as template in send_email. |
list_unsubscribes | List unsubscribed addresses of a domain with the tags they unsubscribed from. |