- Introduction
-
Getting Started
- Creating an Account in Hevo
- Subscribing to Hevo via AWS Marketplace
- Subscribing to Hevo via Snowflake Marketplace
- Connection Options
- Familiarizing with the UI
- Creating your First Pipeline
- Data Loss Prevention and Recovery
- Upgrading Pipeline from Standard to Edge
-
Data Ingestion
- Types of Data Synchronization
- Ingestion Modes and Query Modes for Database Sources
- Ingestion and Loading Frequency
- Data Ingestion Statuses
- Deferred Data Ingestion
- Handling of Primary Keys
- Handling of Updates
- Handling of Deletes
- Hevo-generated Metadata
- Best Practices to Avoid Reaching Source API Rate Limits
-
Edge
- Data Ingestion
- Core Concepts
-
Pipelines
- Familiarizing with the Pipelines UI
- Creating an Edge Pipeline
- Working with Edge Pipelines
- Pipeline Overview
- Pipeline Job History
- Needs Attention
- Object and Schema Management
- Activity Log
-
Sources
- Connect AI
- PostgreSQL
- Oracle
- MySQL
- Amazon S3
- SQL Server
- Troubleshooting Database Sources
- CockroachDB
- MongoDB
- SharePoint
- Salesforce Bulk API V2
- Ordergroove
- BambooHR
- Stripe
- NetSuite SuiteAnalytics
- Shopify
- Slack
- ClickUp
- Monday.com
- Pipedrive
- Workable
- Fathom
- HubSpot
- Salesforce Marketing Cloud
- Google Analytics 4
- Google Ads
- Facebook Ads
- Microsoft Ads
- LinkedIn Ads
- Xero
- Instagram Business
- Amazon Selling Partner
- TikTok Ads
- StackAdapt
- Amazon Ads
- Pinterest Organic
- Zendesk Support
- Snapchat Ads
- TikTok Organic
- Google Search Console
- Klaviyo v2
- Braintree Payments
- Facebook Pages
- Tempo
- PayPal
- Auth0
- Pinterest Ads
- Apple Search Ads
- Permit.io
- Amplitude Analytics
- Customer.io
- Paddle
- Jira Cloud
- Fullstory
- GitHub
- WorkOS
- ActiveCampaign
- Campaign Monitor
- Infobip
- Metaplane
- Notion
- Recharge
- sevdesk
- Statuspage
- Teamwork.com
- Workday RaaS
- Yotpo
- TikTok Shop Partner Center
- Linear
- Microsoft Dynamics 365 Business Central
- Checkout.com
- Pylon
- Increase
- Microsoft Teams
- Rollbar
- Toggl Track
- QuickBooks Online
- Zoho Desk
- Livestorm
- Attentive
- SendGrid
- Recurly
- Bitly
- Shortcut
- Buzzsprout
- Persona
- Mailjet
- Open Exchange Rates
- PagerDuty
- CircleCI
- SonarQube
- Chargebee
- Freshdesk
- Bing Webmaster Tools
- Rundeck
- Datadog
- Cal.com
- Mixpanel
- Matomo
- Walmart Marketplace
- Xray
- Reddit Ads
- Postmark
- Zoho Inventory
- Zoho Recruit
- HiBob
- Freshchat
- Zoho Books
- Marketo
- LaunchDarkly
- Outreach
- Airtable
- Attio
- Okta
- Zendesk Chat
- Bigin by Zoho CRM
- Brevo
- Harvest
- dbt Cloud
- Nium
- Confluence
- Zoho Campaigns
- Qualaroo
- SCORM Cloud
- Criteo
- Typeform
- Lob
- SMS Storetraffic
- Deputy
- OpenAI Ads
- Salesloft
- commercetools
- Mailchimp
- Adobe Analytics
- Fireworks AI
- Helpjuice
- Front
- Zuora
- WhatsApp Business
- Smartsheet
- RevenueCat
- Highnote
- Microsoft Entra ID
- Buildkite
- Unleash
- Apify
- Intercom
- Dixa
- Drip
- Hub Planner
- Invoiced
- Lemlist
- Mailshake
- Missive
- Onfleet
- PandaDoc
- Pingdom
- Quickbase
- QuickBooks Time
- ShipStation
- Streak
- Swell
- UserVoice
- Wrike
- Workday HCM
- ALIS
- athenahealth
- Poplar
- WelcomeHome
- Enquire
- Oracle Eloqua
- Talkdesk
- Everhour
- Omni
- Azure DevOps
- Writesonic
- Google Tag Manager
- Mailgun
- Luma
- Naming Conventions for Source Data Entities
- Destinations
- Transformations
- Alerts
- Activate
- Custom Connectors
-
Data Loading
- Loading Data in a Database Destination
- Loading Data to a Data Warehouse
- Optimizing Data Loading for a Destination Warehouse
- Deduplicating Data in a Data Warehouse Destination
- Manually Triggering the Loading of Events
- Scheduling Data Load for a Destination
- Loading Events in Batches
- Data Loading Statuses
- Data Spike Alerts
- Name Sanitization
- Table and Column Name Compression
- Parsing Nested JSON Fields in Events
-
Pipelines
- Data Flow in a Pipeline
- Familiarizing with the Pipelines UI
- Working with Pipelines
- Managing Objects in Pipelines
- Pipeline Jobs
-
Transformations
-
Python Code-Based Transformations
- Supported Python Modules and Functions
-
Transformation Methods in the Event Class
- Create an Event
- Retrieve the Event Name
- Rename an Event
- Retrieve the Properties of an Event
- Modify the Properties for an Event
- Fetch the Primary Keys of an Event
- Modify the Primary Keys of an Event
- Fetch the Data Type of a Field
- Check if the Field is a String
- Check if the Field is a Number
- Check if the Field is Boolean
- Check if the Field is a Date
- Check if the Field is a Time Value
- Check if the Field is a Timestamp
-
TimeUtils
- Convert Date String to Required Format
- Convert Date to Required Format
- Convert Datetime String to Required Format
- Convert Epoch Time to a Date
- Convert Epoch Time to a Datetime
- Convert Epoch to Required Format
- Convert Epoch to a Time
- Get Time Difference
- Parse Date String to Date
- Parse Date String to Datetime Format
- Parse Date String to Time
- Utils
- Examples of Python Code-based Transformations
-
Drag and Drop Transformations
- Special Keywords
-
Transformation Blocks and Properties
- Add a Field
- Change Datetime Field Values
- Change Field Values
- Drop Events
- Drop Fields
- Find & Replace
- Flatten JSON
- Format Date to String
- Format Number to String
- Hash Fields
- If-Else
- Mask Fields
- Modify Text Casing
- Parse Date from String
- Parse JSON from String
- Parse Number from String
- Rename Events
- Rename Fields
- Round-off Decimal Fields
- Split Fields
- Examples of Drag and Drop Transformations
- Effect of Transformations on the Destination Table Structure
- Transformation Reference
- Transformation FAQs
-
Python Code-Based Transformations
-
Schema Mapper
- Using Schema Mapper
- Mapping Statuses
- Auto Mapping Event Types
- Manually Mapping Event Types
- Modifying Schema Mapping for Event Types
- Schema Mapper Actions
- Fixing Unmapped Fields
- Resolving Incompatible Schema Mappings
- Resizing String Columns in the Destination
- Changing the Data Type of a Destination Table Column
- Schema Mapper Compatibility Table
- Limits on the Number of Destination Columns
- File Log
- Troubleshooting Failed Events in a Pipeline
- Mismatch in Events Count in Source and Destination
- Audit Tables
- Activity Log
-
Pipeline FAQs
- Can multiple Sources connect to one Destination?
- What happens if I re-create a deleted Pipeline?
- Why is there a delay in my Pipeline?
- Can I change the Destination post-Pipeline creation?
- Why is my billable Events high with Delta Timestamp mode?
- Can I drop multiple Destination tables in a Pipeline at once?
- How does Run Now affect scheduled ingestion frequency?
- Will pausing some objects increase the ingestion speed?
- Can I see the historical load progress?
- Why is my Historical Load Progress still at 0%?
- Why is historical data not getting ingested?
- How do I set a field as a primary key?
- How do I ensure that records are loaded only once?
- Why can't I see my Pipelines after logging in?
- Events Usage
-
Sources
- Free Sources
-
Databases and File Systems
- Data Warehouses
-
Databases
- Connecting to a Local Database
- Amazon DocumentDB
- Amazon DynamoDB
- Elasticsearch
-
MongoDB
- Generic MongoDB
- MongoDB Atlas
- Support for Multiple Data Types for the _id Field
- Example - Merge Collections Feature
-
Troubleshooting MongoDB
-
Errors During Pipeline Creation
- Error 1001 - Incorrect credentials
- Error 1005 - Connection timeout
- Error 1006 - Invalid database hostname
- Error 1007 - SSH connection failed
- Error 1008 - Database unreachable
- Error 1011 - Insufficient access
- Error 1028 - Primary/Master host needed for OpLog
- Error 1029 - Version not supported for Change Streams
- SSL 1009 - SSL Connection Failure
- Troubleshooting MongoDB Change Streams Connection
- Troubleshooting MongoDB OpLog Connection
-
Errors During Pipeline Creation
- SQL Server
-
MySQL
- Amazon Aurora MySQL
- Amazon RDS MySQL
- Azure MySQL
- Generic MySQL
- Google Cloud MySQL
- MariaDB MySQL
-
Troubleshooting MySQL
-
Errors During Pipeline Creation
- Error 1003 - Connection to host failed
- Error 1006 - Connection to host failed
- Error 1007 - SSH connection failed
- Error 1011 - Access denied
- Error 1012 - Replication access denied
- Error 1017 - Connection to host failed
- Error 1026 - Failed to connect to database
- Error 1027 - Unsupported BinLog format
- Failed to determine binlog filename/position
- Schema 'xyz' is not tracked via bin logs
- Errors Post-Pipeline Creation
-
Errors During Pipeline Creation
- MySQL FAQs
- Oracle
-
PostgreSQL
- Amazon Aurora PostgreSQL
- Amazon RDS PostgreSQL
- Azure PostgreSQL
- Generic PostgreSQL
- Google Cloud PostgreSQL
- Heroku PostgreSQL
- Upgrading Pipelines with PostgreSQL Sources to Use the pgoutput Plugin
-
Troubleshooting PostgreSQL
-
Errors during Pipeline creation
- Error 1003 - Authentication failure
- Error 1006 - Connection settings errors
- Error 1011 - Access role issue for logical replication
- Error 1012 - Access role issue for logical replication
- Error 1014 - Database does not exist
- Error 1017 - Connection settings errors
- Error 1023 - No pg_hba.conf entry
- Error 1024 - Number of requested standby connections
- Errors Post-Pipeline Creation
-
Errors during Pipeline creation
-
PostgreSQL FAQs
- Can I track updates to existing records in PostgreSQL?
- How can I migrate a Pipeline created with one PostgreSQL Source variant to another variant?
- How can I prevent data loss when migrating or upgrading my PostgreSQL database?
- Why do FLOAT4 and FLOAT8 values in PostgreSQL show additional decimal places when loaded to BigQuery?
- Why is data not being ingested from PostgreSQL Source objects?
- Troubleshooting Database Sources
- Database Source FAQs
- File Storage
- Engineering Analytics
- Finance & Accounting Analytics
-
Marketing Analytics
- ActiveCampaign
- AdRoll
- Amazon Ads
- Apple Search Ads
- AppsFlyer
- CleverTap
- Criteo
- Drip
- Facebook Ads
- Facebook Page Insights
- Firebase Analytics
- Freshsales
- Google Ads
- Google Analytics 4
- Google Analytics 360
- Google Play Console
- Google Search Console
- HubSpot
- Instagram Business
- Klaviyo v2
- Lemlist
- LinkedIn Ads
- Mailchimp
- Mailshake
- Marketo
- Microsoft Ads
- Onfleet
- Outbrain
- Pardot
- Pinterest Ads
- Pipedrive
- Recharge
- Segment
- SendGrid Webhook
- SendGrid
- Salesforce Marketing Cloud
- Snapchat Ads
- SurveyMonkey
- Taboola
- TikTok Ads
- Twitter Ads
- Typeform
- YouTube Analytics
- Product Analytics
- Sales & Support Analytics
- Source FAQs
-
Destinations
- Familiarizing with the Destinations UI
- Cloud Storage-Based
- Databases
-
Data Warehouses
- Amazon Redshift
- Amazon Redshift Serverless
- Azure Synapse Analytics
- Databricks
-
Google BigQuery
- Clustering in BigQuery
- Partitioning in BigQuery
- Structure of Data in the Google BigQuery Data Warehouse
- Loading Data to a Google BigQuery Data Warehouse
- Near Real-time Data Loading using Streaming
- Modifying BigQuery Destinations to Use Service Account Authentication
- Troubleshooting Google BigQuery
- Google BigQuery FAQs
- Hevo Managed Google BigQuery
- Snowflake
- Troubleshooting Data Warehouse Destinations
-
Destination FAQs
- Can I change the primary key in my Destination table?
- Can I change the Destination table name after creating the Pipeline?
- How can I change or delete the Destination table prefix?
- Why does my Destination have deleted Source records?
- How do I filter deleted Events from the Destination?
- Does a data load regenerate deleted Hevo metadata columns?
- How do I filter out specific fields before loading data?
- Transform
- Alerts
-
Account Management
- Personal Settings
- Team Settings
- Billing
- Workspaces
- Account Suspension and Restoration
- Activate
- MCP Server
- Glossary
-
Releases-
2026 Releases
- Release 2.54 (September 21 – October 26, 2026)
- Release 2.53 (August 24 – September 21, 2026)
- Release 2.52 (July 27 – August 24, 2026)
- Release 2.51 (Jun 29 – July 27 , 2026)
- Release 2.50 (Jun 01–29, 2026)
- Release 2.49 (May 04-Jun 01, 2026)
- Release 2.48 (Apr 06-May 04, 2026)
- Release 2.47 (Mar 09-Apr 06, 2026)
- Release 2.46 (Feb 09-Mar 09, 2026)
- Release 2.45 (Jan 12-Feb 09, 2026)
-
2025 Releases
- Release 2.44 (Dec 01, 2025-Jan 12, 2026)
- Release 2.43 (Nov 03-Dec 01, 2025)
- Release 2.42 (Oct 06-Nov 03, 2025)
- Release 2.41 (Sep 08-Oct 06, 2025)
- Release 2.40 (Aug 11-Sep 08, 2025)
- Release 2.39 (Jul 07-Aug 11, 2025)
- Release 2.38 (Jun 09-Jul 07, 2025)
- Release 2.37 (May 12-Jun 09, 2025)
- Release 2.36 (Apr 14-May 12, 2025)
- Release 2.35 (Mar 17-Apr 14, 2025)
- Release 2.34 (Feb 17-Mar 17, 2025)
- Release 2.33 (Jan 20-Feb 17, 2025)
-
2024 Releases
- Release 2.32 (Dec 16 2024-Jan 20, 2025)
- Release 2.31 (Nov 18-Dec 16, 2024)
- Release 2.30 (Oct 21-Nov 18, 2024)
- Release 2.29 (Sep 30-Oct 22, 2024)
- Release 2.28 (Sep 02-30, 2024)
- Release 2.27 (Aug 05-Sep 02, 2024)
- Release 2.26 (Jul 08-Aug 05, 2024)
- Release 2.25 (Jun 10-Jul 08, 2024)
- Release 2.24 (May 06-Jun 10, 2024)
- Release 2.23 (Apr 08-May 06, 2024)
- Release 2.22 (Mar 11-Apr 08, 2024)
- Release 2.21 (Feb 12-Mar 11, 2024)
- Release 2.20 (Jan 15-Feb 12, 2024)
-
2023 Releases
- Release 2.19 (Dec 04, 2023-Jan 15, 2024)
- Release Version 2.18
- Release Version 2.17
- Release Version 2.16 (with breaking changes)
- Release Version 2.15 (with breaking changes)
- Release Version 2.14
- Release Version 2.13
- Release Version 2.12
- Release Version 2.11
- Release Version 2.10
- Release Version 2.09
- Release Version 2.08
- Release Version 2.07
- Release Version 2.06
-
2022 Releases
- Release Version 2.05
- Release Version 2.04
- Release Version 2.03
- Release Version 2.02
- Release Version 2.01
- Release Version 2.00
- Release Version 1.99
- Release Version 1.98
- Release Version 1.97
- Release Version 1.96
- Release Version 1.95
- Release Version 1.93 & 1.94
- Release Version 1.92
- Release Version 1.91
- Release Version 1.90
- Release Version 1.89
- Release Version 1.88
- Release Version 1.87
- Release Version 1.86
- Release Version 1.84 & 1.85
- Release Version 1.83
- Release Version 1.82
- Release Version 1.81
- Release Version 1.80 (Jan-24-2022)
- Release Version 1.79 (Jan-03-2022)
-
2021 Releases
- Release Version 1.78 (Dec-20-2021)
- Release Version 1.77 (Dec-06-2021)
- Release Version 1.76 (Nov-22-2021)
- Release Version 1.75 (Nov-09-2021)
- Release Version 1.74 (Oct-25-2021)
- Release Version 1.73 (Oct-04-2021)
- Release Version 1.72 (Sep-20-2021)
- Release Version 1.71 (Sep-09-2021)
- Release Version 1.70 (Aug-23-2021)
- Release Version 1.69 (Aug-09-2021)
- Release Version 1.68 (Jul-26-2021)
- Release Version 1.67 (Jul-12-2021)
- Release Version 1.66 (Jun-28-2021)
- Release Version 1.65 (Jun-14-2021)
- Release Version 1.64 (Jun-01-2021)
- Release Version 1.63 (May-19-2021)
- Release Version 1.62 (May-05-2021)
- Release Version 1.61 (Apr-20-2021)
- Release Version 1.60 (Apr-06-2021)
- Release Version 1.59 (Mar-23-2021)
- Release Version 1.58 (Mar-09-2021)
- Release Version 1.57 (Feb-22-2021)
- Release Version 1.56 (Feb-09-2021)
- Release Version 1.55 (Jan-25-2021)
- Release Version 1.54 (Jan-12-2021)
-
2020 Releases
- Release Version 1.53 (Dec-22-2020)
- Release Version 1.52 (Dec-03-2020)
- Release Version 1.51 (Nov-10-2020)
- Release Version 1.50 (Oct-19-2020)
- Release Version 1.49 (Sep-28-2020)
- Release Version 1.48 (Sep-01-2020)
- Release Version 1.47 (Aug-06-2020)
- Release Version 1.46 (Jul-21-2020)
- Release Version 1.45 (Jul-02-2020)
- Release Version 1.44 (Jun-11-2020)
- Release Version 1.43 (May-15-2020)
- Release Version 1.42 (Apr-30-2020)
- Release Version 1.41 (Apr-2020)
- Release Version 1.40 (Mar-2020)
- Release Version 1.39 (Feb-2020)
- Release Version 1.38 (Jan-2020)
-
2026 Releases
- Early Access New
Mailgun (Edge)
Mailgun is an email delivery service that businesses use to send, receive, and track transactional and marketing emails through an API or SMTP. It provides features such as sending domains, mailing lists, inbound email routing, suppression lists, and email event tracking. Through Mailgun Optimize, businesses can also monitor their sender reputation and test the inbox placement of their emails.
Hevo uses the Mailgun API to replicate data from your Mailgun account to the Destination of your choice. Hevo authenticates with Mailgun using HTTP basic authentication. To ingest data, you must provide Hevo with the username, the subdomain of the Mailgun API endpoint for the region that hosts your account, and a Mailgun API key. Hevo replicates data for all the domains in your Mailgun account.
Supported Features
| Feature Name | Supported |
|---|---|
| Capture deletes | Yes (for objects ingested using full load) |
| History mode | No |
| Custom data (user-configured tables & fields) | Yes (custom variables of events) |
| Data blocking (skip objects and fields) | Yes |
| Resync (objects and Pipelines) | Yes |
| API configurable | Yes |
Prerequisites
-
An active Mailgun account exists from which data is to be ingested.
-
You are assigned the Admin role in your Mailgun account to obtain the API key. Only users with the Admin role can create API keys.
-
The required credentials are available to provide Hevo access to your Mailgun account data.
Obtain the API Key
Hevo connects to Mailgun using a Mailgun API key. Perform the following steps to obtain one:
-
Log in to your Mailgun account.
-
In the upper-right corner, click your profile name, and then click API Security.

-
In the Mailgun API keys section, click Create key.

-
In the Create API key dialog, specify a Description for the key, such as Hevo Pipeline, and then click Create Key.

Note: If your Mailgun plan lets you select a role for the key, select Admin, Developer, or Support. A key with the Analyst role cannot read events, bounces, complaints, and unsubscribes, so Hevo cannot ingest those objects.
-
Click Copy to clipboard, and save the key securely. Then, click Done.
Note:
-
Mailgun shows the API key only when you create it. If you lose the key, you must create a new one.
-
Use a Mailgun API key. A domain sending key does not work, as it can only send messages.
If the API key configured in the Pipeline is revoked manually from your Mailgun account, Hevo cannot authenticate with the Source. As a result, all active jobs for the Pipeline fail, and no data is replicated. To resume data replication, modify the Source configuration in the Pipeline with a valid API key. Once the updated key is saved, Hevo re-authenticates the Source, and data ingestion resumes from the last saved offset.
Configure Mailgun as a Source in your Pipeline
Perform the following steps to configure your Mailgun Source:
-
Click Pipelines in the Navigation Bar.
-
Click + Create Pipeline in the Pipelines List View.
-
On the Select Source Type page, select Mailgun.
-
On the Select Destination Type page, select the type of Destination you want to use.
-
In the Configure Source screen, specify the following:

-
Source Name: A unique name for your Source, not exceeding 255 characters. For example, Mailgun Source.
-
In the Connect to your Mailgun account section, specify the following:
-
Username: The username that Hevo uses to authenticate with the Mailgun API. Default value: api.
-
Subdomain: The subdomain of the Mailgun API endpoint for the region that hosts your Mailgun account. Specify api if your account is hosted in the US region (
https://api.mailgun.net), or api.eu if your account is hosted in the EU region (https://api.eu.mailgun.net). -
API Key: The API key that you obtained from your Mailgun account.
-
-
-
Click Test & Continue to test the connection to your Mailgun Source. Once the test is successful, you can proceed to set up your Destination.
When you click this button, Hevo performs the following validations:
- Hevo connects to the Mailgun API at the specified subdomain with the username and API key, and reads the domains in your account.
Data Replication
Hevo replicates data for all the objects selected on the Configure Objects page during Pipeline creation. By default, all supported objects and their available fields are selected. However, you can modify this selection while creating or editing the Pipeline.
Selecting a parent object automatically includes all its associated child objects for replication. Child objects cannot be selected or deselected individually.
Hevo ingests the following types of data from your Source objects:
-
Historical Data: The first run of the Pipeline ingests all available historical data for the selected objects and loads it into the Destination.
-
Incremental Data: Once the historical load is complete, new and updated records for objects are ingested as per the sync frequency.
Hevo ingests data for the objects as follows:
| Ingestion Type | Objects |
|---|---|
| Incremental | accepted_event, clicked_event, complained_event, delivered_event, failed_event, opened_event, rejected_event, stored_event, unsubscribed_event, and their child objects, and spam_trap_count |
| Full Load | blocklist_event, bounce, complaint, domain, inbox_ready_domain, mailing_list, receiving_dns_record, route, route_action, seed_list, seed_list_result, seed_list_sending_domain, sending_dns_record, template, whitelist |
For the incremental objects, Hevo ingests only the incremental data in subsequent Pipeline runs, as follows:
-
Event objects: Hevo detects new events using the timestamps field. The first run ingests all the events that Mailgun retains. Each later run ingests the events recorded after the last ingested event, up to 30 minutes before the start of the run, so that events Mailgun records late are not missed. Events from the last 30 minutes are ingested in the next run.
-
Custom variables: When an ingested event carries a custom variable, for example, order_id, Hevo adds the column user_variables_order_id to the event table. The user_variables column contains all the custom variables of the event.
-
spam_trap_count: The first run ingests the daily spam trap counts of the last 90 days. Each later run ingests the counts from the last ingested date onward.
For the full load objects, Hevo ingests the entire data during each Pipeline run.
Mailgun enforces rate limits that differ by API endpoint. Hevo sends requests at least 150 milliseconds apart, with at most four requests in progress at a time. If Mailgun returns a rate limit error, Hevo waits until Mailgun resets the limit, for up to five minutes, and retries the request up to five times. If the limit resets later than that, Hevo defers the Pipeline run, and the next run resumes the ingestion. To understand how Hevo handles such scenarios, read Handling Rate Limit Exceptions.
Note: You can create a Pipeline with this Source only using the Merge load mode. The Append mode is not supported for this Source.
Schema and Primary Keys
Hevo uses the following schema to upload the records in the Destination. For a detailed view of the objects, fields, and relationships, click the ERD.
The primary key of most objects is id. The following objects use other primary keys:
| Objects | Primary Key |
|---|---|
| Tag, message attachment, and message recipient child objects of the event objects, such as delivered_event_tag |
index and event_id
|
| accepted_event_route |
id and event_id
|
| bounce and complaint |
domain_id and email
|
| whitelist |
domain_id and value
|
| receiving_dns_record |
domain_id, record_type, and value
|
| sending_dns_record |
domain_id, record_type, and name
|
| route_action |
action and route_id
|
| mailing_list | email |
| inbox_ready_domain | name |
| blocklist_event |
ip, blocklist, event, and timestamps
|
| seed_list_result |
result_id and seed_list_id
|
| seed_list_sending_domain |
seed_list_id and domain_id
|
| spam_trap_count |
start and ends
|
Data Model
The following is the list of tables (objects) that are created at the Destination when you run the Pipeline:
| Object | Description |
|---|---|
| domain | Contains the sending domains of your Mailgun account, including their name, state, type, SMTP login, and settings such as spam action, TLS requirement, and wildcard support. This object has the following child objects: - receiving_dns_record - sending_dns_record - template - bounce - complaint - whitelist - accepted_event - clicked_event - complained_event - delivered_event - failed_event - opened_event - rejected_event - stored_event - unsubscribed_event |
| receiving_dns_record | Contains the DNS records required to receive emails for a domain, including the record type, value, priority, and validation status. |
| sending_dns_record | Contains the DNS records required to send emails from a domain, including the record type, name, value, and validation status. |
| template | Contains the email templates stored for a domain, including their name, description, creator, and creation time. |
| bounce | Contains the email addresses in the bounce list of a domain, including the error code and error message of the bounce. |
| complaint | Contains the email addresses of the recipients who marked emails from a domain as spam. |
| whitelist | Contains the email addresses and domains in the allowlist of a domain, including the entry type and the reason it was added. |
| accepted_event | Contains the events of emails that Mailgun accepted for delivery or received, including the envelope, message headers, recipient, storage location, and user variables. This object has the following child objects: - accepted_event_message_attachment - accepted_event_message_recipient - accepted_event_route - accepted_event_tag |
| accepted_event_message_attachment | Contains the attachments of the messages in accepted events, including their file name, content type, and size. |
| accepted_event_message_recipient | Contains the recipients of the messages in accepted events. |
| accepted_event_route | Contains the routes that matched the incoming messages in accepted events, including the route expression and matched recipient. |
| accepted_event_tag | Contains the tags of the messages in accepted events. |
| clicked_event | Contains the events of recipients clicking links in emails, including the recipient, URL, and client and location details. This object has a child object, clicked_event_tag. |
| clicked_event_tag | Contains the tags of the messages in clicked events. |
| complained_event | Contains the events of recipients marking emails as spam, including the recipient and campaigns. This object has the following child objects: - complained_event_message_attachment - complained_event_tag |
| complained_event_message_attachment | Contains the attachments of the messages in complained events, including their file name, content type, and size. |
| complained_event_tag | Contains the tags of the messages in complained events. |
| delivered_event | Contains the events of emails that Mailgun delivered to the recipient email server, including the envelope, delivery status, and message details. This object has the following child objects: - delivered_event_message_attachment - delivered_event_tag |
| delivered_event_message_attachment | Contains the attachments of the messages in delivered events, including their file name, content type, and size. |
| delivered_event_tag | Contains the tags of the messages in delivered events. |
| failed_event | Contains the events of emails that Mailgun could not deliver, including the delivery status, failure reason, and severity. This object has the following child objects: - failed_event_message_attachment - failed_event_tag |
| failed_event_message_attachment | Contains the attachments of the messages in failed events, including their file name, content type, and size. |
| failed_event_tag | Contains the tags of the messages in failed events. |
| opened_event | Contains the events of recipients opening emails, including the recipient, and client and location details. This object has a child object, opened_event_tag. |
| opened_event_tag | Contains the tags of the messages in opened events. |
| rejected_event | Contains the events of emails that Mailgun rejected, including the reason for the rejection. This object has the following child objects: - rejected_event_message_attachment - rejected_event_tag |
| rejected_event_message_attachment | Contains the attachments of the messages in rejected events, including their file name, content type, and size. |
| rejected_event_tag | Contains the tags of the messages in rejected events. |
| stored_event | Contains the events of messages that Mailgun stored, including the recipient, delivery status, template name, and storage location. This object has the following child objects: - stored_event_message_attachment - stored_event_message_recipient - stored_event_tag |
| stored_event_message_attachment | Contains the attachments of the messages in stored events, including their file name, content type, and size. |
| stored_event_message_recipient | Contains the recipients of the messages in stored events. |
| stored_event_tag | Contains the tags of the messages in stored events. |
| unsubscribed_event | Contains the events of recipients unsubscribing from emails, including the recipient, and client and location details. This object has a child object, unsubscribed_event_tag. |
| unsubscribed_event_tag | Contains the tags of the messages in unsubscribed events. |
| mailing_list | Contains the mailing lists of your account, including their address, name, access level, reply preference, and number of members. |
| route | Contains the routes that process incoming emails, including their priority, description, and filter expression. This object has a child object, route_action. |
| route_action | Contains the actions that a route performs on matching incoming emails. |
| inbox_ready_domain | Contains the domains that are monitored in Mailgun Optimize, including their verification status, TXT record, and spam trap monitoring setting. |
| blocklist_event | Contains the blocklist events of the IP addresses monitored in Mailgun Optimize, including the IP address, IP pool, and blocklist. |
| seed_list | Contains the seed lists used for inbox placement tests, including their target email, delivery statistics by mailbox provider, and the time of the last result. This object has the following child objects: - seed_list_result - seed_list_sending_domain |
| seed_list_result | Contains the results of the inbox placement tests of a seed list, including the sender and subject of the test email. |
| seed_list_sending_domain | Contains the sending domains associated with a seed list. |
| spam_trap_count | Contains the number of spam trap hits per day, by trap type: pristine, recycled, and typo. |
Additional Information
Read the detailed Hevo documentation for the following related topics:
Handling of Deletes
Hevo handles deleted records differently based on how data is ingested for an object.
Hevo uses a full data refresh approach to capture delete actions for the following objects. During each Pipeline run, Hevo compares the data fetched from the Source object with the data present in the Destination table. If a record exists in the Destination but is no longer returned by the Source, the record is marked as deleted by setting the value of the metadata column _hevo_marked_deleted to True. These records remain in the Destination, marked as deleted, after you resync the object or the Pipeline.
- blocklist_event, bounce, complaint, domain, inbox_ready_domain, mailing_list, receiving_dns_record, route, route_action, seed_list, seed_list_result, seed_list_sending_domain, sending_dns_record, template, and whitelist
For the event objects, their child objects, and spam_trap_count, Hevo does not capture deletes. Records that are no longer available in Mailgun remain in the Destination.
Source Considerations
-
Mailgun retains event data for a limited period, which is up to 30 days, depending on your Mailgun plan. If the Pipeline does not run for longer than the retention period of your plan, for example, because it is paused, the events of that period are not ingested.
-
The inbox_ready_domain, blocklist_event, seed_list, seed_list_result, seed_list_sending_domain, and spam_trap_count objects contain data only if the corresponding Mailgun Optimize features are enabled for your account. If they are not, Hevo ingests the blocklist_event and spam_trap_count objects with no records. If your account cannot access the inbox_ready_domain and seed_list objects, Hevo marks them as Inaccessible on the Configure Objects page, along with the child objects of seed_list, and does not ingest them.
-
Mailgun allows only a few spam trap requests at a time for each account. If several Pipelines read data from the same Mailgun account at the same time, a Pipeline run may be deferred, and Hevo ingests the spam_trap_count object in the next run.
Limitations
- Hevo does not replicate the members of mailing lists. The mailing_list object contains only the mailing lists and their number of members.
Revision History
Refer to the following table for the list of key updates made to this page:
| Date | Release | Description of Change |
|---|---|---|
| Dec-09-2026 | 2.55 | New document. |