← Mailgun

New Log Data from Mailgun API

Pipedream makes it easy to connect APIs for Mailgun and 3,000+ other apps remarkably fast.

Trigger workflow on
New Log Data from the Mailgun API
Next, do this
Connect to 3,000+ APIs using code and no-code building blocks
No credit card required
Intro to Pipedream
Watch us build a workflow
Watch us build a workflow
8 min
Watch now ➜

Trusted by 1,000,000+ developers from startups to Fortune 500 companies

Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo
Adyen logo
Appcues logo
Bandwidth logo
Checkr logo
ChartMogul logo
Dataminr logo
Gopuff logo
Gorgias logo
LinkedIn logo
Logitech logo
Replicated logo
Rudderstack logo
SAS logo
Scale AI logo
Webflow logo
Warner Bros. logo

Developers Pipedream

Getting Started

Trigger a workflow on New Log Data with Mailgun API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Log Data trigger
    1. Connect your Mailgun account
    2. Select a Domain Name
    3. Configure Polling schedule
  2. Add steps to connect to 3,000+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Log Data from Mailgun API
Mailgun + Discord Webhook
 
Try it
Get Film with SWAPI - Star Wars API on New Log Data from Mailgun API
Mailgun + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Log Data from Mailgun API
Mailgun + Airtable (API Key)
 
Try it
Custom Request with HTTP / Webhook API on New Log Data from Mailgun API
Mailgun + HTTP / Webhook
 
Try it
Get Backlinks with Ahrefs API on New Log Data from Mailgun API
Mailgun + Ahrefs
 
Try it
Send Direct Message (DM) with Twitter Developer App API on New Log Data from Mailgun API
Mailgun + X Developer App (formerly Twitter)
 
Try it
Execute Query with Snowflake API on New Log Data from Mailgun API
Mailgun + Snowflake
 
Try it
[Date/Time] Add/Subtract Time with Formatting API on New Log Data from Mailgun API
Mailgun + Formatting
 
Try it
Accept Completion with Sapling.ai API on New Log Data from Mailgun API
Mailgun + Sapling.ai
 
Try it
Access Shader Assets with Shadertoy API on New Log Data from Mailgun API
Mailgun + Shadertoy
 
Try it
Account Information with APITemplate.io API on New Log Data from Mailgun API
Mailgun + APITemplate.io
 
Try it
Account Information with Hunter API on New Log Data from Mailgun API
Mailgun + Hunter
 
Try it
Account Information with TidyCal API on New Log Data from Mailgun API
Mailgun + TidyCal
 
Try it
Acknowledge Incident with Better Stack API on New Log Data from Mailgun API
Mailgun + Better Stack
 
Try it
Acknowledge Incident with PagerDuty API on New Log Data from Mailgun API
Mailgun + PagerDuty
 
Try it
Activate Box with BippyBox API on New Log Data from Mailgun API
Mailgun + BippyBox
 
Try it
Activate Scene with Philips Hue API on New Log Data from Mailgun API
Mailgun + Philips Hue
 
Try it
Activate Workflow with Drip API on New Log Data from Mailgun API
Mailgun + Drip
 
Try it
Add A Worksheet Tablerow with Microsoft Excel API on New Log Data from Mailgun API
Mailgun + Microsoft Excel
 
Try it
Add Account with Outseta API on New Log Data from Mailgun API
Mailgun + Outseta
 
Try it
Add Activity with Pipedrive API on New Log Data from Mailgun API
Mailgun + Pipedrive
 
Try it
Add Application Comment with BambooHR API on New Log Data from Mailgun API
Mailgun + BambooHR
 
Try it
Add Assets to Gallery with Cincopa API on New Log Data from Mailgun API
Mailgun + Cincopa
 
Try it
Add Attachment to Candidate with Greenhouse API on New Log Data from Mailgun API
Mailgun + Greenhouse
 
Try it
Add Attachment To Card with Trello API on New Log Data from Mailgun API
Mailgun + Trello
 
Try it
Add Attachment To Issue with Jira API on New Log Data from Mailgun API
Mailgun + Jira
 
Try it
Add Attendees To Event with Google Calendar API on New Log Data from Mailgun API
Mailgun + Google Calendar
 
Try it
Add Authorized Attendee with Airmeet API on New Log Data from Mailgun API
Mailgun + Airmeet
 
Try it
Add Blocked Off Time with Acuity Scheduling API on New Log Data from Mailgun API
Mailgun + Acuity Scheduling
 
Try it
Add Candidate Note with Homerun API on New Log Data from Mailgun API
Mailgun + Homerun
 
Try it
Add Candidate to Job Pipeline with CATS API on New Log Data from Mailgun API
Mailgun + CATS
 
Try it
Add Candidate to Job with Taleez API on New Log Data from Mailgun API
Mailgun + Taleez
 
Try it
Add Client to Project with ProWorkflow API on New Log Data from Mailgun API
Mailgun + ProWorkflow
 
Try it
Add Comment To Order with Picqer API on New Log Data from Mailgun API
Mailgun + Picqer
 
Try it
Add Comment with Front API on New Log Data from Mailgun API
Mailgun + Front
 
Try it
Add Comment with Google Drive API on New Log Data from Mailgun API
Mailgun + Google Drive
 
Try it
Add Comment with Twist API on New Log Data from Mailgun API
Mailgun + Twist
 
Try it
Add Contact to a Campaign with Mautic API on New Log Data from Mailgun API
Mailgun + Mautic
 
Try it
Add Contact To Account with Salesflare API on New Log Data from Mailgun API
Mailgun + Salesflare
 
Try it
Add Contact to Automation with ActiveCampaign API on New Log Data from Mailgun API
Mailgun + ActiveCampaign
 
Try it
Add Contact to Campaign with HighLevel (OAuth) API on New Log Data from Mailgun API
Mailgun + HighLevel (OAuth)
 
Try it
Add Contact to Campaign with Overloop API on New Log Data from Mailgun API
Mailgun + Overloop
 
Try it
Add Contact to Campaign with Salesforce API on New Log Data from Mailgun API
Mailgun + Salesforce
 
Try it
Add Contact to Campaign with Salespype API on New Log Data from Mailgun API
Mailgun + Salespype
 
Try it
Add Contact to Customer List by Email with Google Ads API on New Log Data from Mailgun API
Mailgun + Google Ads
 
Try it
Add Contact To Email List with SurveyMethods API on New Log Data from Mailgun API
Mailgun + SurveyMethods
 
Try it
Add Contact to Event with Regal API on New Log Data from Mailgun API
Mailgun + Regal
 
Try it
Add Contact to Group with SMSTools API on New Log Data from Mailgun API
Mailgun + SMSTools
 
Try it
Add Contact to List with HubSpot API on New Log Data from Mailgun API
Mailgun + HubSpot
 
Try it
Add Contact to List with Mailercloud API on New Log Data from Mailgun API
Mailgun + Mailercloud
 
Try it
Add Contact To List with Mailmodo API on New Log Data from Mailgun API
Mailgun + Mailmodo
 
Try it
Add Contact To List with VBOUT API on New Log Data from Mailgun API
Mailgun + VBOUT
 
Try it
Add Contact To Lists with SlickText API on New Log Data from Mailgun API
Mailgun + SlickText
 
Try it
Add Contact to Mailing List with Elastic Email API on New Log Data from Mailgun API
Mailgun + Elastic Email
 
Try it
Add Contact to Mailing List with Zoho Campaigns API on New Log Data from Mailgun API
Mailgun + Zoho Campaigns
 
Try it
Add Contact To New Entry with Loopify API on New Log Data from Mailgun API
Mailgun + Loopify
 
Try it
Add Contact with AskNicely API on New Log Data from Mailgun API
Mailgun + AskNicely
 
Try it
Add Contact with Constant Contact API on New Log Data from Mailgun API
Mailgun + Constant Contact
 
Try it
Add Contact with GoDial API on New Log Data from Mailgun API
Mailgun + GoDial
 
Try it
Add Contact with KrispCall API on New Log Data from Mailgun API
Mailgun + KrispCall
 
Try it
Add Contact with Octopush SMS API on New Log Data from Mailgun API
Mailgun + Octopush SMS
 
Try it
Add Contact with Salesmate API on New Log Data from Mailgun API
Mailgun + Salesmate
 
Try it
Add Contact with sendSMS API on New Log Data from Mailgun API
Mailgun + sendSMS
 
Try it
Add Contact with UpViral API on New Log Data from Mailgun API
Mailgun + UpViral
 
Try it
Add Contact with WATI API on New Log Data from Mailgun API
Mailgun + WATI
 
Try it
Add Contacts to Sequence with Apollo.io API on New Log Data from Mailgun API
Mailgun + Apollo.io
 
Try it
Add Content To Daily Note Page with Roam Research API on New Log Data from Mailgun API
Mailgun + Roam Research
 
Try it
Add Context with Vida API on New Log Data from Mailgun API
Mailgun + Vida
 
Try it
Add Credits with Paigo API on New Log Data from Mailgun API
Mailgun + Paigo
 
Try it
Add Custom Attributes To Customer Via Email with ChartMogul API on New Log Data from Mailgun API
Mailgun + ChartMogul
 
Try it
Add Customer Note Entry with Waitwhile API on New Log Data from Mailgun API
Mailgun + Waitwhile
 
Try it
Add Customer to Group with Plain API on New Log Data from Mailgun API
Mailgun + Plain
 
Try it
Add Customer to List with Rejoiner API on New Log Data from Mailgun API
Mailgun + Rejoiner
 
Try it
Add Customer with Engage API on New Log Data from Mailgun API
Mailgun + Engage
 
Try it
Add Customer with Mews API on New Log Data from Mailgun API
Mailgun + Mews
 
Try it
Add Customer with Reputation Lyncs API on New Log Data from Mailgun API
Mailgun + Reputation Lyncs
 
Try it
Add Customers to Segment with Customer.io API on New Log Data from Mailgun API
Mailgun + Customer.io
 
Try it
Add Data Store Record with NiftyImages API on New Log Data from Mailgun API
Mailgun + NiftyImages
 
Try it
Add Data to Knowledge Base with VectorShift API on New Log Data from Mailgun API
Mailgun + VectorShift
 
Try it
Add Device with OneSignal (REST API) API on New Log Data from Mailgun API
Mailgun + OneSignal (REST API)
 
Try it
Add Do Not Contact Domain with PersistIQ API on New Log Data from Mailgun API
Mailgun + PersistIQ
 
Try it
Add Document Via File Upload with AskYourPDF API on New Log Data from Mailgun API
Mailgun + AskYourPDF
 
Try it
Add Document with Libraria API on New Log Data from Mailgun API
Mailgun + Libraria
 
Try it
Add Documents with Rockset API on New Log Data from Mailgun API
Mailgun + Rockset
 
Try it
Add Email In Unsubscribes with lemlist API on New Log Data from Mailgun API
Mailgun + lemlist
 
Try it
Add Email to Custom Audience with Facebook Custom Audiences API on New Log Data from Mailgun API
Mailgun + Facebook Custom Audiences
 
Try it
Add Email to Global Suppression with Twilio SendGrid API on New Log Data from Mailgun API
Mailgun + Twilio SendGrid
 
Try it
Add Email with SARE API on New Log Data from Mailgun API
Mailgun + SARE
 
Try it
Add Emoji Reaction with Slack API on New Log Data from Mailgun API
Mailgun + Slack (legacy)
 
Try it
Add Emoji Reaction with Slack API on New Log Data from Mailgun API
Mailgun + Slack
 
Try it
Add Emoji Reaction with Slack Bot API on New Log Data from Mailgun API
Mailgun + Bot for Slack
 
Try it
Add Emoji Reaction with Slack v2 test API on New Log Data from Mailgun API
Mailgun + Slack v2 test
 
Try it
Add Entry Comment with Zenkit API on New Log Data from Mailgun API
Mailgun + Zenkit
 
Try it
Add Event Guide with Xola API on New Log Data from Mailgun API
Mailgun + Xola
 
Try it
Add Exhibitor with ExpoFP API on New Log Data from Mailgun API
Mailgun + ExpoFP
 
Try it
Add Feedback with Flash (by Velora AI) API on New Log Data from Mailgun API
Mailgun + Flash (by Velora AI)
 
Try it
Add Feedback with Langfuse API on New Log Data from Mailgun API
Mailgun + Langfuse
 
Try it
Add File to Project with Crowdin API on New Log Data from Mailgun API
Mailgun + Crowdin
 
Try it
Add Gift with Little Green Light API on New Log Data from Mailgun API
Mailgun + Little Green Light
 
Try it
Add Gmail Thread to Record with NetHunt CRM API on New Log Data from Mailgun API
Mailgun + NetHunt CRM
 
Try it

Details

This is a pre-built, source-available component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Log Data on Mailgun
Description:Emit new event when new data is logged in Mailgun's Control Panel. Occurs for most actions within the associated Mailgun account.
Version:0.0.3
Key:mailgun-new-log-data

Code

import common from "../common/timer-based.mjs"; export default { ...common, key: "mailgun-new-log-data", name: "New Log Data", type: "source", description: "Emit new event when new data is logged in Mailgun's Control Panel. Occurs for most actions within the associated Mailgun account.", version: "0.0.3", dedupe: "unique", methods: { ...common.methods, _getLastSeenTime() { return this.db.get("lastSeenTime"); }, _setLastSeenTime(lastSeenTime) { this.db.set("lastSeenTime", lastSeenTime); }, generateMeta(payload) { return { id: payload.id, summary: `[${payload["log-level"]}] ${payload.event}`, ts: payload.timestamp, }; }, async getLatestEvents(page = null, limit = 300, ascending = "yes") { const date = new Date(); if (ascending === "yes") { date.setDate(date.getDate() - 1); } else { date.setDate(date.getDate()); } const config = { begin: Math.floor(date.valueOf() / 1000), ascending, limit, }; if (page) { config.page = page; } return this.mailgun.api("events").get(this.domain, config); }, }, hooks: { async deploy() { // Emit sample events on the first run during deploy let lastSeenTime = this._getLastSeenTime(); const { items } = await this.getLatestEvents(null, 5, "no"); if (items.length === 0) { return; } for (let item of items) { if (item.timestamp <= lastSeenTime) { continue; } this._setLastSeenTime(item.timestamp); this.$emit(item, this.generateMeta(item)); } }, }, async run() { let result = { items: [], pages: { next: { id: null, }, }, }; while (true) { result = await this.getLatestEvents(result.pages.next.number, 300); if (result.items.length === 0) { return; } const lastSeenTime = this._getLastSeenTime(); for (let item of result.items) { if (item.timestamp <= lastSeenTime) { continue; } this._setLastSeenTime(item.timestamp); this.$emit(item, this.generateMeta(item)); } } }, }; 

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
MailgunmailgunappThis component uses the Mailgun app.
Domain NamedomainstringSelect a value from the drop down menu.
Polling scheduletimer$.interface.timer

Pipedream polls Mailgun for events on this schedule.

N/Adb$.service.dbThis component uses $.service.db to maintain state between executions.

Authentication

Mailgun uses API keys for authentication. When you connect your Mailgun account, Pipedream securely stores the keys so you can easily authenticate to Mailgun APIs in both code and no-code steps.

About Mailgun

Mailgun is an email automation service built for developers. Powerful transactional email APIs enable you to send, receive, and track emails.

More Ways to Use Mailgun

Triggers

New Bounce (Instant) from the Mailgun API

Emit new event when the email recipient could not be reached.

 
Try it
New Click (Instant) from the Mailgun API

Emit new event when the email recipient clicked on a link in the email. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

 
Try it
New Complaint (Instant) from the Mailgun API

Emit new event when the email recipient clicked on the spam complaint button within their email client. Feedback loops enable the notification to be received by Mailgun.

 
Try it
New Delivery (Instant) from the Mailgun API

Emit new event when an email is sent and accepted by the recipient email server.

 
Try it
New Delivery Failure (Instant) from the Mailgun API

Emit new event when an email can't be delivered to the recipient email server.

 
Try it
New Mailing List from the Mailgun API

Emit new event when a new mailing list is added to the associated Mailgun account.

 
Try it
New Open (Instant) from the Mailgun API

Emit new event when the email recipient opened the email and enabled image viewing. Open tracking must be enabled in the Mailgun control panel, and the CNAME record must be pointing to mailgun.org. See more at the Mailgun User's Manual Tracking Messages section

 
Try it
New Permanent Failure (Instant) from the Mailgun API

Emit new event when an email can't be delivered to the recipient email server due to a permanent mailbox error such as non-existent mailbox.

 
Try it
New Temporary Failure (Instant) from the Mailgun API

Emit new event when an email can't be delivered to the recipient email server due to a temporary mailbox error such as an ESP block. ESP is the Email Service Provider managing the recipient email server.

 
Try it
New Unsubscribe (Instant) from the Mailgun API

Emit new event when the email recipient clicked on the unsubscribe link. Unsubscribe tracking must be enabled in the Mailgun control panel. See more at the Mailgun User's Manual Tracking Messages section

 
Try it

Actions

Create Mailing List Member with the Mailgun API

Add to an existing mailing list. See the docs here

 
Try it
Create Route with the Mailgun API

Create a new route. See the docs here

 
Try it
Delete Mailing List Member with the Mailgun API

Delete a mailing list member by address. See the docs here

 
Try it
Get Mailing List Member with the Mailgun API

Retrieve a mailing list member by address. See the docs here

 
Try it
Get Mailing List Members with the Mailgun API

List all mailing list members. See the docs here

 
Try it
List Domains with the Mailgun API

List domains in Mailgun. See the docs here

 
Try it
Send Email with the Mailgun API

Send email with Mailgun. See the docs here

 
Try it
Suppress Email with the Mailgun API

Add email to the Mailgun suppression list. See the docs here

 
Try it
Verify Email with the Mailgun API

Verify email address deliverability with Mailgun. See the docs here

 
Try it

Explore Other Apps

1
-
24
of
3,000+
apps by most popular

Node
Node
Anything you can do with Node.js, you can do in a Pipedream workflow. This includes using most of npm's 400,000+ packages.
Python
Python
Anything you can do in Python can be done in a Pipedream Workflow. This includes using any of the 350,000+ PyPi packages available in your Python powered workflows.
Notion
Notion
Notion is a new tool that blends your everyday work apps into one. It's the all-in-one workspace for you and your team.
OpenAI (ChatGPT)
OpenAI (ChatGPT)
OpenAI is an AI research and deployment company with the mission to ensure that artificial general intelligence benefits all of humanity. They are the makers of popular models like ChatGPT, DALL-E, and Whisper.
Anthropic (Claude)
Anthropic (Claude)
AI research and products that put safety at the frontier. Introducing Claude, a next-generation AI assistant for your tasks, no matter the scale.
Google Sheets
Google Sheets
Use Google Sheets to create and edit online spreadsheets. Get insights together with secure sharing in real-time and from any device.
Telegram
Telegram
Telegram, is a cloud-based, cross-platform, encrypted instant messaging (IM) service.
Google Drive
Google Drive
Google Drive is a file storage and synchronization service which allows you to create and share your work online, and access your documents from anywhere.
HTTP / Webhook
HTTP / Webhook
Get a unique URL where you can send HTTP or webhook requests
Google Calendar
Google Calendar
With Google Calendar, you can quickly schedule meetings and events and get reminders about upcoming activities, so you always know what’s next.
Schedule
Schedule
Trigger workflows on an interval or cron schedule.
Pipedream Utils
Pipedream Utils
Utility functions to use within your Pipedream workflows
Shopify
Shopify
Shopify is a complete commerce platform that lets anyone start, manage, and grow a business. You can use Shopify to build an online store, manage sales, market to customers, and accept payments in digital and physical locations.
Supabase
Supabase
Supabase is an open source Firebase alternative.
MySQL
MySQL
MySQL is an open-source relational database management system.
PostgreSQL
PostgreSQL
PostgreSQL is a free and open-source relational database management system emphasizing extensibility and SQL compliance.
AWS
AWS
Premium
Amazon Web Services (AWS) offers reliable, scalable, and inexpensive cloud computing services.
Twilio SendGrid
Twilio SendGrid
Premium
Send marketing and transactional email through the Twilio SendGrid platform with the Email API, proprietary mail transfer agent, and infrastructure for scalable delivery.
Amazon SES
Amazon SES
Amazon SES is a cloud-based email service provider that can integrate into any application for high volume email automation
Klaviyo
Klaviyo
Premium
Klaviyo unifies your data, channels, and AI agents in one platform—text, WhatsApp, email marketing, and more—driving growth with every interaction.
Zendesk
Zendesk
Premium
Zendesk is award-winning customer service software trusted by 200K+ customers. Make customers happy via text, mobile, phone, email, live chat, social media.
ServiceNow
ServiceNow
Premium
Beta
The smarter way to workflow
Slack
Slack
Slack is the AI-powered platform for work bringing all of your conversations, apps, and customers together in one place. Around the world, Slack is helping businesses of all sizes grow and send productivity through the roof.
Microsoft Teams
Microsoft Teams
Microsoft Teams has communities, events, chats, channels, meetings, storage, tasks, and calendars in one place.