Integration · Email
Connect Claude & ChatGPT to Mailgun
Ask your AI why a customer never got an email, how last week's sending went, or to add someone to a mailing list. It reads events, sending stats, domains, templates, mailing lists and the bounce, complaint and unsubscribe lists, and can send and resend email through your Mailgun domains. You trace delivery problems without digging through logs.
Free plan, no credit card. Takes about a minute.
Try asking
“Did the order confirmation to [email protected] get delivered?”
The AI lists the events for that recipient on your domain and shows whether the email was accepted, delivered, failed or opened.
“How did our email perform last week?”
It reads the sending stats for the week by day, with delivered, opened, clicked, bounced and complained counts and rates.
“Is [email protected] on our bounce list? If so, remove him.”
It checks the domain's bounce list and removes the address, so Mailgun sends to it again.
What your AI can do
Sending and events
Send email with text, HTML or a stored template, resend stored messages, and trace each email through its events.
Domains, stats and templates
Check domain state and required DNS records, read sending stats by day, domain or tag, and read templates.
Lists and suppressions
Create mailing lists and add, update or remove members. Check and clear bounces, complaints and unsubscribes.
“Add [email protected] to [email protected].”
It adds her as a member of that mailing list, or updates her if she is already on it.
“Resend yesterday's invoice email to the customer's new address.”
It finds the email in the events, fetches the stored message and resends it to the new address.
“Which DNS records does mg.example.com still need?”
It reads the domain with its state and the DNS records needed for sending and receiving.
229 tools for Mailgun
These tools are switched on when you connect. You can switch any of them off, or require your approval before it runs.
add_authorized_email_recipient_for_a_sandbox_domainChanges dataCreate a new account. Required: email. Search accounts first to avoid duplicates. API summary: Add authorized email recipient for a sandbox domain.add_mailing_list_memberChanges dataAdd a member (email address, optional name and variables) to a mailing list. Set upsert to update an existing member.archive_accountVisible to othersDisable a account (subaccount id). Has effects visible outside this system. API summary: Disable a subaccount.archive_keyVisible to othersDeactivate a key (selector). Has effects visible outside this system. API summary: Deactivate a domain key.create_a_send_alert_for_an_accountVisible to othersSend a alert. Has effects visible outside this system. API summary: Create a send alert for an account.create_a_subaccountChanges dataCreate a new account. Required: name. Search accounts first to avoid duplicates. API summary: Create a subaccount.create_a_template_versionChanges dataCreate a new page for a page. Required: template or tag. API summary: Create a template version.create_accountDeletesCreate a new account. Required: event types or url. Search accounts first to avoid duplicates. Destructive action; may require approval. API summary: Create an account-level webhook.create_account_post_v3_dynamic_pools_allChanges dataCreate a new account. Required: good reputation, poor reputation or new senders. Search accounts first to avoid duplicates. API summary: Initialize/set IPs for all pools.create_account_post_v5_accounts_http_signing_keyChanges dataCreate a new account. Search accounts first to avoid duplicates. API summary: Create or regenerate webhook signing key on an account.create_an_account_level_templateChanges dataCreate a new page. Required: name. API summary: Create an account-level template.create_an_account_level_template_versionChanges dataCreate a new page for a page. Required: template or tag. API summary: Create an account-level template version.create_bounceChanges dataCreate a new bounce. Required: items. Search bounces first to avoid duplicates. API summary: Add bounces.create_complaintChanges dataCreate a new complaint. Required: items. Search complaints first to avoid duplicates. API summary: Add complaints.create_domainChanges dataCreate a new domain. Required: name. Search domains first to avoid duplicates. API summary: Create a domain.create_domain_credentialChanges dataCreate a new credential for a domain. Required: login. API summary: Create Mailgun SMTP credentials for a given domain.create_domain_dynamic_poolChanges dataCreate a new dynamic pool for a domain. Required: replacement ip. API summary: Enroll domain.create_domain_rotateChanges dataCreate a new rotate for a domain. API summary: Rotate Automatic Sender Security DKIM key for a domain.create_domain_webhookDeletesCreate a new webhook for a domain. Required: id or url. Destructive action; may require approval. API summary: Create a domain webhook.create_domain_webhooks_v4DeletesCreate a new webhook for a domain. Required: url or event types. Destructive action; may require approval. API summary: Create domain webhooks (v4).create_enrollChanges dataCreate a new enroll. Required: include subaccounts. API summary: Enroll all account domains.create_eventChanges dataCreate a new event. Required: event type, channel or settings. API summary: Add Alert.create_forwardChanges dataCreate a new forward. Required: match, forward url, forward recipient or forward store. Search forwards first to avoid duplicates. API summary: Create a forward rule.create_ip_domainChanges dataCreate a new domain for a ip. Search domains first to avoid duplicates. API summary: Assign an IP to all account domains.create_ip_ip_bandChanges dataCreate a new ip band for a ip. Required: ip band. API summary: Place account IP into a dedicated IP band.create_ip_poolChanges dataCreate a new ip pool. Required: description or name. API summary: Add a new DIPP to the account.create_ip_pool_ips_jsonChanges dataCreate a new ips json for a ip pool. Required: ips. API summary: Add multiple IPs to the DIPP.create_ip_whitelistChanges dataCreate a new ip whitelist. Required: address. API summary: Add Mailgun account IP allowlist entry.create_keyChanges dataCreate a new key. Required: signing domain or selector. API summary: Create a domain key.create_limitChanges dataCreate a new limit. Required: name, metric, comparator, limit or dimension. API summary: Create a limit threshold for an account.create_list_members_csvChanges dataCreate a new members csv for a list. API summary: Bulk upload members to a mailing list (CSV).create_list_members_jsonChanges dataCreate a new members json for a list. Required: members. API summary: Bulk upload members to a mailing list (JSON).create_logChanges dataCreate a new log. Required: duration. API summary: List logs.create_mailgun_api_keyChanges dataCreate a new key. Required: role. API summary: Create Mailgun API key.create_mailing_listChanges dataCreate a mailing list with an email address (e.g. [email protected]), name and description.create_metric_post_v1_analytics_usage_metricsChanges dataCreate a new metric. API summary: Query account usage metrics.create_newChanges dataCreate a new new. API summary: Add a new dedicated IP to the account.create_pageChanges dataCreate a new page. Required: name. API summary: Create a template.create_publicChanges dataCreate a new public. API summary: Regenerate Mailgun Public API key.create_routeChanges dataCreate a new route. Required: expression. API summary: Create a route.create_tagChanges dataCreate a new tag. API summary: Post query to list account tags or search for single tag.create_testDeletesCreate a new test. Required: event type or url. Destructive action; may require approval. API summary: Test webhook.create_test_post_v1_alerts_email_testVisible to othersCreate a new test. Required: event type or emails. Has effects visible outside this system. API summary: Test message.create_test_post_v1_alerts_slack_testChanges dataCreate a new test. Required: event type. API summary: Test message.create_unsubscribeChanges dataCreate a new unsubscribe. Required: items. Search unsubscribes first to avoid duplicates. API summary: Add unsubscribes.create_whitelistChanges dataCreate a new whitelist. Required: address. Search whitelists first to avoid duplicates. API summary: Add allowlist record.delete_a_custom_sending_limitMoves moneyPermanently delete a message. Financial or irreversible action; may require approval. API summary: Delete a custom sending limit.delete_a_subaccountMoves moneyPermanently delete a account. Financial or irreversible action; may require approval. API summary: Delete a subaccount.delete_a_versionDeletesPermanently delete a page by page name. Destructive action; may require approval. API summary: Delete a version.delete_accountDeletesPermanently delete a account by account id. Destructive action; may require approval. API summary: Delete account-level webhook by ID.delete_accountsMoves moneyPermanently delete a account. Financial or irreversible action; may require approval. API summary: Delete account-level webhooks.delete_all_account_level_templatesMoves moneyPermanently delete a page. Financial or irreversible action; may require approval. API summary: Delete all account-level templates.delete_an_account_level_templateDeletesPermanently delete a page by page name. Destructive action; may require approval. API summary: Delete an account-level template.delete_an_account_level_template_versionDeletesPermanently delete a page by page name. Destructive action; may require approval. API summary: Delete an account-level template version.delete_bounceDeletesRemove one address from a domain's bounce list so Mailgun will send to it again.delete_bouncesMoves moneyPermanently delete a bounce by domain name. Financial or irreversible action; may require approval. API summary: Clear all bounces.delete_complaintDeletesRemove one address from a domain's spam complaint list so it receives email again.delete_complaintsMoves moneyPermanently delete a complaint by domain name. Financial or irreversible action; may require approval. API summary: Clear all complaints.delete_domainDeletesPermanently delete a domain by name. Destructive action; may require approval.delete_domain_credentialDeletesPermanently delete a credential by spec. Destructive action; may require approval. API summary: Delete Mailgun SMTP credentials.delete_domain_credentialsMoves moneyPermanently delete a credential by domain name. Financial or irreversible action; may require approval. API summary: Delete all Mailgun SMTP credentials for a domain.delete_domain_dynamic_poolsMoves moneyPermanently delete a dynamic pool by name. Financial or irreversible action; may require approval. API summary: Remove domain from dynamic IP pools.delete_domain_ipDeletesPermanently delete a ip by ip. Destructive action; may require approval. API summary: Remove an IP from the domain pool, unlink a DIPP or remove the domain pool.delete_domain_overridesMoves moneyPermanently delete a override by name. Financial or irreversible action; may require approval. API summary: Remove override.delete_domain_poolDeletesPermanently delete a pool by ip. Destructive action; may require approval. API summary: Remove an IP from the domain pool, unlink a DIPP or remove the domain pool.delete_domain_webhookDeletesPermanently delete a webhook by webhook name. Destructive action; may require approval. API summary: Delete domain webhooks by type.delete_domain_webhooksMoves moneyPermanently delete a webhook by domain. Financial or irreversible action; may require approval. API summary: Delete domain webhooks (v4).delete_envelopesMoves moneyPermanently delete a envelope by domain name. Financial or irreversible action; may require approval. API summary: Delete scheduled and undelivered mail.delete_eventDeletesPermanently delete a event by event id. Destructive action; may require approval. API summary: Remove Alert.delete_forwardDeletesPermanently delete a forward by forward id. Destructive action; may require approval. API summary: Delete a single forward rule by ID.delete_ip_domainsMoves moneyPermanently delete a domain by ip. Financial or irreversible action; may require approval. API summary: Remove an IP from all account domains.delete_ip_poolDeletesPermanently delete a ip pool by pool id. Destructive action; may require approval. API summary: Delete the DIPP.delete_ip_pool_delegatesMoves moneyPermanently delete a delegate by pool id. Financial or irreversible action; may require approval. API summary: Revoke DIPP from Subaccount.delete_ip_pool_ipDeletesPermanently delete a ip by ip. Destructive action; may require approval. API summary: Remove an IP from a DIPP.delete_ip_warmupDeletesPermanently delete a ip warmup by addr. Destructive action; may require approval. API summary: Cancels the warmup plan for an IP address.delete_ip_whitelistsMoves moneyPermanently delete a ip whitelist. Financial or irreversible action; may require approval. API summary: Delete Mailgun account IP allowlist entry.delete_keyDeletesPermanently delete a key by key id. Destructive action; may require approval. API summary: Delete Mailgun API key.delete_keysMoves moneyPermanently delete a key. Financial or irreversible action; may require approval. API summary: Delete a domain key.delete_limitDeletesPermanently delete a limit by name. Destructive action; may require approval. API summary: Delete a limit threshold for an account.delete_listDeletesPermanently delete a list by list address. Destructive action; may require approval. API summary: Delete a mailing list.delete_messagesMoves moneyPermanently delete a message by subaccount id. Financial or irreversible action; may require approval. API summary: Delete a custom sending limit.delete_pageDeletesPermanently delete a page by page name. Destructive action; may require approval. API summary: Delete a template.delete_pagesMoves moneyPermanently delete a page by domain name. Financial or irreversible action; may require approval. API summary: Delete all templates.delete_routeDeletesPermanently delete a route by route id. Destructive action; may require approval.delete_sendDeletesPermanently delete a send by name. Destructive action; may require approval. API summary: Delete a send alert.delete_slacksMoves moneyPermanently delete a slack. Financial or irreversible action; may require approval. API summary: Delete Slack settings.delete_tagsMoves moneyPermanently delete a tag. Financial or irreversible action; may require approval. API summary: Delete account tag.delete_unsubscribeDeletesRemove one address from a domain's unsubscribe list so it receives email again. Only do this when the person asked to be resubscribed.delete_unsubscribesMoves moneyPermanently delete a unsubscribe by domain name. Financial or irreversible action; may require approval. API summary: Clear all unsubscribes.delete_whitelistDeletesPermanently delete a whitelist by value. Destructive action; may require approval. API summary: Remove entry from allowlist.delete_whitelistsMoves moneyPermanently delete a whitelist by domain name. Financial or irreversible action; may require approval. API summary: Clear allowlist.get_a_single_subaccountGet one account by account id. API summary: Get a single subaccount.get_a_versionGet one page for a page by page name. API summary: Get a version.get_accountGet one account by account id. API summary: Get account-level webhook by ID.get_account_level_templatesList pages. Optional filters: p. Results are paginated. API summary: Get account-level templates.get_all_account_level_template_versionsList pages for a page. Optional filters: p. Results are paginated. API summary: Get all account-level template versions.get_all_template_versionsList pages for a page. Optional filters: p. Results are paginated. API summary: Get all template versions.get_an_account_level_templateGet one page by page name. API summary: Get an account-level template.get_an_account_level_template_versionGet one page for a page by page name. API summary: Get an account-level template version.get_authorized_email_recipients_for_a_sandbox_domainList accounts. API summary: Get authorized email recipients for a sandbox domain.get_bounceGet one bounce by address. API summary: Lookup bounce record.get_channelGet one channel by channel id. API summary: Get Slack channel.get_complaintGet one complaint by address. API summary: Lookup complaint record.get_current_custom_sending_limitList messages. API summary: Get current custom sending limit.get_dipp_spillover_settings_for_an_accountList accounts. API summary: Get DIPP spillover settings for an account.get_domainGet one sending domain by name, including its state and the DNS records needed for sending and receiving.get_domain_get_v3_ips_domain_nameGet one domain by name. API summary: Get the dedicated IP pool used for spillover for a domain.get_domain_previewGet one domain by name. API summary: Preview domain assignment.get_domain_statusGet the current status of a domain by name. API summary: Get tracking settings.get_domain_webhookGet one webhook for a domain by webhook name. API summary: Get domain webhooks by type.get_forwardGet one forward by forward id. API summary: Get a single forward rule by ID.get_ipGet one ip by ip. API summary: Get details about account IP.get_ip_poolGet one ip pool by pool id. API summary: Get DIPP details.get_ip_warmupGet one ip warmup by addr. API summary: Retrieves the status of an in-flight IP warmup.get_limitGet one limit by name. API summary: Get a limit threshold for an account.get_mailing_listGet one mailing list by its address.get_mailing_list_memberGet one member of a mailing list by email address.get_members_by_pageList pages. Optional filters: subscribed or address. Results are paginated. API summary: Get members by page.get_one_s_own_user_detailsList users. API summary: Get one's own user details.get_routeGet one route by route id. API summary: Get a route.get_sendGet one send by name. API summary: Get a send alert.get_sending_statsChanges dataGet sending statistics (delivered, opened, clicked, bounced, complained and rates) for a time range, grouped by day, domain or tag.get_stored_messageGet the content of a stored email by domain and storage key (found in an event's storage field). Mailgun keeps messages for a few days.get_templateGet one email template for a domain by name, optionally including its active version content.get_unsubscribeGet one unsubscribe by address. API summary: Lookup unsubscribe record.get_userGet one user by user id. API summary: Get a user's details.get_webhook_signing_key_saved_on_the_accountList accounts. API summary: Get webhook signing key saved on the account.get_whitelistGet one whitelist by value. API summary: Lookup allowlist record.get_x509_statusGet the current status of a x509 by domain. API summary: Tracking Certificate: Get certificate and status.list_account_ips_detailed_viewList accounts. Optional filters: pool id, domain id, subaccount id, ip, sort by or sort order. Results are paginated. API summary: List account IPs - detailed view.list_accountsList accounts. Optional filters: webhook ids. API summary: List account-level webhooks.list_alertsList accounts. API summary: List Alerts.list_assignablesList assignables. Optional filters: subaccount id or domain. API summary: List assignable domains.list_bouncesList addresses that bounced for a domain and are blocked from receiving email. Filter by the start of the address.list_channelsList channels. Results are paginated. API summary: List Slack channels.list_complaintsList addresses that marked a domain's email as spam. Filter by the start of the address.list_dipps_delegated_to_subaccountsList accounts. API summary: List DIPPs delegated to subaccounts.list_domain_credentialsList credentials for a domain. Results are paginated. API summary: List Mailgun SMTP credential metadata for a given domain.list_domain_historiesList histories for a domain. API summary: List domain history.list_domain_keysList keys for a domain. API summary: List domain keys.list_domain_sending_queuesList sending queues for a domain. API summary: Get messages queue status.list_domain_webhooksList webhooks for a domain. API summary: Get domain webhooks.list_domainsList sending domains with their state (active, unverified, disabled). Filter by state or search by name.list_domains_2List domains. Optional filters: account, pool, sort by or sort order. Results are paginated. API summary: List all domains assigned to dynamic IP pools.list_dynamic_poolsList dynamic pools. API summary: List all Dynamic IP pools.list_eventsList email events for a domain (accepted, delivered, failed, opened, clicked, unsubscribed, complained). Filter by event, recipient, subject or time range. Use it to trace what happened to an email.list_events_get_v1_alerts_eventsList events.list_historiesList histories. Optional filters: include subaccounts, domain, before, moved to or moved from. Results are paginated. API summary: List account history.list_hitsList hits. API summary: List account hits.list_ip_poolsList ip pools. API summary: List dedicated IP pools of the account.list_ip_warmupsList ip warmups. Results are paginated. API summary: Retrieves the list of in-flight IP address warmup statuses.list_ip_whitelistsList ip whitelists. API summary: List Mailgun account IP allowlist entries.list_ipsList ips. Optional filters: dedicated or enabled. API summary: List account IPs.list_keysList keys. API summary: List keys for all domains.list_limit_thresholds_for_an_accountList limits. API summary: List limit thresholds for an account.list_limitsList limits. API summary: Get account tag limit information.list_mailgun_api_keysList keys. Optional filters: domain name or kind. API summary: List Mailgun API keys.list_mailing_list_membersList members of a mailing list. Filter by subscribed status.list_mailing_listsList mailing lists with their address, name and member count.list_matchesList matches. Optional filters: address. API summary: Match address to route.list_messagesList messages. API summary: Get current custom sending limit.list_newsList news. API summary: Return the number of IPs available to the account per its billing plan.list_pagesList pages. Results are paginated. API summary: Get mailing lists by page.list_routesList routes. Results are paginated. API summary: Get all routes.list_statistic_v2Changes dataCreate a new metric. API summary: List statistic v2.list_templatesList the email templates stored for a domain.list_unsubscribesList addresses that unsubscribed from a domain's email. Filter by the start of the address.list_usersList users. Optional filters: role. Results are paginated. API summary: Get users on an account.remove_all_dynamic_ip_poolsMoves moneyPermanently delete a account. Financial or irreversible action; may require approval. API summary: Remove all dynamic IP pools.remove_an_authorized_sandbox_domain_email_recipientDeletesPermanently delete a account by email. Destructive action; may require approval. API summary: Remove an authorized sandbox domain email recipient.remove_mailing_list_memberDeletesRemove one member from a mailing list. This cannot be undone.resend_messageChanges dataResend a stored email to one or more recipients. This sends a real email.restore_accountChanges dataEnable a account (subaccount id). API summary: Enable a subaccount.restore_account_enableVisible to othersEnable a account. Has effects visible outside this system. API summary: Re-enable account disabled for hitting send limit.search_accountsSearch accounts by sort, filter, enabled or closed. Use this to find existing accounts before creating a new account. Results are paginated. API summary: List all subaccounts.search_forwardsSearch forwards by domain name or search. Use this to find existing forwards before creating a new forward. Results are paginated. API summary: List forward rules.search_ip_domainsSearch domains for a ip by search. Use this to find existing domains before creating a new domain. Results are paginated. API summary: Get all domains of an account where a specific IP is assigned.search_ip_pool_domainsSearch domains for a ip pool by search, sort by or sort order. Use this to find existing domains before creating a new domain. Results are paginated. API summary: Get domains linked to DIPP.search_whitelistsSearch whitelists by address or term. Use this to find existing whitelists before creating a new whitelist. Results are paginated. API summary: List allowlist records for domain.send_alertVisible to othersSend a alert. Has effects visible outside this system. API summary: List send alerts.send_emailChanges dataSend an email through one of your Mailgun domains. Give the sending domain, from, to, subject and text or html (or a stored template); the email goes out immediately and cannot be recalled.submit_account_activation_emailVisible to othersResend a account. Has effects visible outside this system. API summary: Resend account activation email to the account owner.submit_domainVisible to othersVerify a domain (name). Has effects visible outside this system. API summary: Verify Domain.submit_keyVisible to othersActivate a key (selector). Has effects visible outside this system. API summary: Activate a domain key.submit_pageVisible to othersCopy a page (template name). Has effects visible outside this system. API summary: Copy a template.submit_page_copyVisible to othersCopy a page (template name). Has effects visible outside this system. API summary: Copy a template.update_a_versionChanges dataUpdate an existing page identified by page name. API summary: Update a version.update_accountDeletesUpdate an existing account identified by account id. Destructive action; may require approval. API summary: Update an account-level webhook.update_account_featureVisible to othersUpdate an existing account. Has effects visible outside this system. API summary: Update account feature.update_account_featuresVisible to othersUpdate an existing feature identified by subaccount id. Has effects visible outside this system. API summary: Update subaccount feature.update_accountsVisible to othersUpdate an existing account. Only the fields you pass are changed. Has effects visible outside this system. API summary: Set or Modify the dedicated IP pool used for IP spillover.update_clicksVisible to othersUpdate an existing click identified by name. Has effects visible outside this system. API summary: Update click tracking settings.update_domainChanges dataUpdate an existing domain identified by name. Only the fields you pass are changed. API summary: Set or modify the dediciated IP pool used for spillover for a domain.update_domain_credentialChanges dataUpdate an existing credential identified by spec. API summary: Update Mailgun SMTP credentials.update_domain_dkim_authoritiesVisible to othersUpdate an existing dkim authority identified by name. Has effects visible outside this system. API summary: Update DKIM authority.update_domain_dkim_selectorsVisible to othersUpdate an existing dkim selector identified by name. Has effects visible outside this system. API summary: Update a DKIM selector.update_domain_overridesVisible to othersUpdate an existing override identified by name. Has effects visible outside this system. API summary: Override domain assignment.update_domain_rotationsVisible to othersUpdate an existing rotation identified by name. Has effects visible outside this system. API summary: Update Automatic Sender Security DKIM key rotation for a domain.update_domain_webhookDeletesUpdate an existing webhook identified by webhook name. Destructive action; may require approval. API summary: Update domain webhook.update_domain_webhooksMoves moneyUpdate an existing webhook identified by domain. Financial or irreversible action; may require approval. API summary: Update domain webhooks (v4).update_dynamic_poolChanges dataUpdate an existing dynamic pool identified by ip. API summary: Add IP to Dynamic IP Pool.update_eventChanges dataUpdate an existing event identified by event id. API summary: Update Alert.update_forwardChanges dataUpdate an existing forward identified by forward id. API summary: Update a single forward rule by ID.update_ip_poolChanges dataUpdate an existing ip pool identified by pool id. Only the fields you pass are changed. API summary: Edit DIPP.update_ip_pool_delegatesVisible to othersUpdate an existing delegate identified by pool id. Has effects visible outside this system. API summary: Delegate DIPP to Subaccount.update_ip_pool_ipChanges dataUpdate an existing ip identified by ip. API summary: Add an IP to a DIPP.update_ip_warmupChanges dataUpdate an existing ip warmup identified by addr. API summary: Creates a warmup plan for an IP Address.update_ip_whitelistsVisible to othersUpdate an existing ip whitelist. Has effects visible outside this system. API summary: Update individual Mailgun account IP allowlist entry's description.update_limitChanges dataUpdate an existing limit identified by name. API summary: Update a limit threshold for an account.update_listChanges dataUpdate an existing list identified by list address. API summary: Update a mailing list.update_mailing_list_memberChanges dataUpdate a mailing list member's name, variables or subscribed status.update_messagesVisible to othersUpdate an existing message identified by subaccount id. Has effects visible outside this system. API summary: Set a custom sending limit.update_opensVisible to othersUpdate an existing open identified by name. Has effects visible outside this system. API summary: Update open tracking settings.update_pageChanges dataUpdate an existing page identified by page name. API summary: Update template.update_page_renameChanges dataUpdate an existing rename identified by new template name. API summary: Rename a template.update_routeChanges dataUpdate an existing route identified by route id. API summary: Update a route.update_sendVisible to othersUpdate an existing send identified by name. Has effects visible outside this system. API summary: Update a send alert.update_signing_keysMoves moneyUpdate an existing signing key. Financial or irreversible action; may require approval. API summary: Reset Webhook Signing Key.update_slacksVisible to othersUpdate an existing slack. Has effects visible outside this system. API summary: Update Slack settings.update_subaccount_ip_assignmentsVisible to othersUpdate an existing account. Only the fields you pass are changed. Has effects visible outside this system. API summary: Update subaccount IP assignments.update_tagsVisible to othersUpdate an existing tag. Has effects visible outside this system. API summary: Update account tag.update_unsubscribesVisible to othersUpdate an existing unsubscribe identified by name. Has effects visible outside this system. API summary: Update unsubscribe tracking settings.update_variable_account_settingsVisible to othersUpdate an existing account. Has effects visible outside this system. API summary: Update variable account settings.update_version_copyChanges dataUpdate an existing copy identified by new version name. API summary: Copy a version.update_x509Changes dataUpdate an existing x509 identified by domain. API summary: Tracking Certificate: Regenerate expired certificate.upload_bounceChanges dataImport a bounce (domain name). API summary: Import list of bounces.upload_complaintChanges dataImport a complaint (domain name). API summary: Import complaint list.upload_unsubscribeChanges dataImport a unsubscribe (domain name). API summary: Import unsubscribe list.upload_whitelistChanges dataImport a whitelist (domain name). API summary: Import allowlist.
Set up in three steps
- 1
Pick the app
Create a free HeyMyApps account and choose Mailgun from the app list.
- 2
Paste your key
Enter api as the username and paste your Mailgun private API key. In the Mailgun dashboard, open Account Settings > API Keys and copy your private API key, or create a new one.
- 3
Add the link to your AI
You get a personal MCP link. Add it to Claude, ChatGPT or Cursor:
- Click your name, then Settings › Connectors › Add custom connector.
- Paste your link as the Remote MCP server URL.
- Switch it on from the + menu in a chat.
Questions
What can the AI do in Mailgun?
The AI can read domains, events, stored messages, sending stats, templates, mailing lists and members, and the bounce, complaint and unsubscribe lists. It can send and resend email, create mailing lists, add, update and remove members, and remove addresses from the suppression lists.
Why is the username api?
Mailgun uses basic authentication with the fixed username api and your private API key as the password. HeyMyApps sends both with each call, so you only enter them once.
Does the AI see my Mailgun API key?
No. Your Mailgun private API key is encrypted at rest and never shown to the AI. Once saved, it is not shown again, not even to you. The AI only works through the tools you switch on.
Can I control what the AI is allowed to do?
Yes. You choose which tools are switched on, so you can start read-only. A sent email cannot be recalled, and removing an address from a bounce, complaint or unsubscribe list makes Mailgun send to it again. These actions can require your approval before they run. Every tool call is logged.
Does it work with ChatGPT?
Yes. In ChatGPT, go to Settings › Apps & Connectors › Advanced, turn on Developer mode and add your HeyMyApps link. Developer mode needs a paid ChatGPT plan: Plus, Pro, Business or Enterprise. The same link works in Claude under Settings › Connectors › Add custom connector, and in Cursor.
What does it cost?
HeyMyApps has a free plan, and you do not need a credit card to start. Paid plans bill per completed task, so you pay for work the AI actually finishes. You also need your own Mailgun account.
Let your AI work in Mailgun today.
Start free. Your key stays encrypted, and you decide what the AI may do.
Connect Mailgun freeHeyMyApps is not affiliated with Mailgun. Product names are trademarks of their owners.






