# Mailgun + Supabase

> Bring Mailgun emails, logs, and delivery metrics into Supabase with Erathos. Incremental, no-code pipeline with full observability. Start free.

Source: https://www.erathos.com/en/pipelines/mailgun-supabase
Em português: https://www.erathos.com/pipelines/mailgun-supabase

Mailgun is an email delivery service that provides reliable, scalable infrastructure for sending, receiving, and tracking emails at scale.

With Erathos, you can integrate Mailgun data into Supabase in just a few minutes. Our platform handles the entire data movement process into your open-source backend platform powered by PostgreSQL, allowing that data to be combined with other sources. That way, your time goes toward what really creates value — extracting insights and making data-driven decisions.

### Which Mailgun data does Erathos sync with Supabase?

The integration automatically syncs Mailgun’s main objects:

- **Campaigns** — name, status, channel, start and end dates
- **Leads and contacts** — source, stage, and engagement data
- **Performance metrics** — impressions, clicks, conversions, and cost per result
- **Lists and segments** — composition and segmentation criteria
- **Automations** — flows, triggers, and conversion rates
- **Users** — profiles, preferences, and interaction history

### Why sync Mailgun with Supabase?

In Supabase, your data is available through auto-generated REST and GraphQL APIs from the schema—directly accessible from your application without extra layers. Row Level Security ensures each user only sees the data they’re supposed to see. It’s ideal for product teams that want analytical data available in the application database in real time.

### How it works

Erathos connects to Mailgun through the official API and syncs your data incrementally—only new or updated records are processed in each run. You choose the sync frequency (from every 5 minutes to daily), the objects to sync, and the destination in Supabase. The sync uses intelligent UPSERTs in Supabase (PostgreSQL) to ensure data consistency. You choose the sync frequency, the objects to sync, and the destination schema. Each run is logged with full observability: runtime, processed rows, and alerts via Slack or email.

## Mailgun data in Supabase in minutes

### Ready-to-use Mailgun connector

Connect Mailgun to Supabase and automatically export data. Centralize marketing data for analysis — no spreadsheets, no scripts.

### Full control over your Mailgun pipelines

Configure scheduling, frequency, and sync type at the table level. Configure sync frequency and type on a per-table basis. Erathos uses smart UPSERT in Supabase — data is available via REST, GraphQL, and Realtime Subscriptions as soon as it lands in the database.

### End-to-end observability

Stop finding out about Mailgun failures only after the business team complains. Every run is logged with run time, processed rows, and error context. Automatic alerts via Slack, Discord, or email as soon as anything goes off track — so your data stays fresh for analysis.

## Centralizing Mailgun data in Supabase has never been easier

Erathos is a data ingestion platform built for marketing and data teams. With the Mailgun connector, you automatically centralize emails, logs, and delivery metrics in Supabase — always up-to-date data, full observability into every run, and zero maintenance.

## FAQ

### What is Erathos, and how can it help my business?

Erathos is a data ingestion platform built for reliability, transparency, and control. We help data teams connect tools like Mailgun to their data warehouse — with full observability into every run, zero maintenance, and none of the black box behavior you get with traditional market tools.

### What Mailgun data does Erathos sync to Supabase?

The Erathos integration with Mailgun lets you export campaign metrics, audiences, conversions, cost per click, impressions, and channel-level performance data. All of it incrementally and without code.

### How often does Erathos sync data from Mailgun to Supabase?

You can configure sync frequency from every 5 minutes up to daily, at the table level. Erathos uses incremental sync—only new or updated records are processed in each run, keeping the Mailgun pipeline efficient and Supabase costs predictable.

### What happens if a Mailgun sync fails?

Erathos automatically detects failures and sends alerts to your email, Slack, or Discord with full context — not just “job failed.” Smart retries handle transient errors, and every run is logged with runtime, rows processed, and error context so your team can debug in minutes, not hours.

### Is there a free trial for the Mailgun connector?

Yes. Every Erathos connector includes a 14-day free trial. Connect Mailgun to Supabase and start syncing right away — no credit card required.
