# Mailgun connector

> Connect Mailgun to Windsor.ai: 45 fields in 3 tables, and how to query them or send them to a destination.

The Mailgun connector pulls your Mailgun data into Windsor.ai. You can query it with one API, send it to a destination, or ask about it in Claude or ChatGPT.

## Connect Mailgun

1. Open [Mailgun in Windsor.ai](https://onboard.windsor.ai/app/mailgun) and sign in.
2. Authorize Mailgun, or enter the credentials that the screen asks for.
3. Select the accounts to include.

## Available data

45 fields in 3 tables.

| Table | Fields | Examples |
| --- | --- | --- |
| events | 22 | events.campaigns, events.client-info, events.delivery-status, events.envelop, events.event |
| domains | 18 | domains.created_at, domains.dkim_key_size, domains.force_dkim_authority, domains.id, domains.ips |
| Other | 5 | Data fetched at, Data Source, Now, Source, Today |

The full list, with the type and description of each field, is at `https://connectors.windsor.ai/mailgun/fields`.

## Query the data

Request fields by their IDs. For example:

```url
https://connectors.windsor.ai/mailgun?api_key=YOUR_API_KEY&fields=events__campaigns,events__client-info,events__delivery-status
```

## Next steps

- [Send the data to a destination](https://windsor.ai/documentation/destinations/index.md), such as Looker Studio, Google Sheets or BigQuery.
- [Connect Windsor.ai to Claude or ChatGPT](https://windsor.ai/documentation/mcp/index.md) and ask about your Mailgun data.
- [Fix a connection problem](https://windsor.ai/documentation/troubleshooting/index.md).
