Mailgun

Communication API key

Send email, and manage domains, lists and events, with Mailgun from any Windmill script, flow or app.

Set up in 3 steps

1

Copy your API key

In the Mailgun dashboard, open your account settings then API keys, and copy the private key.

2

Add the resource in Windmill

Open Resources, add a resource of type mailgun, and paste it into api_key.

3

Run your first script

Fork the send script below. A sandbox domain only delivers to recipients you have verified.

Scripts

Building blocks, if none of the projects above fit. Fork one, run it, or call it as a step inside your own flow.

Resource type

mailgun — the shape of the credential every script on this page expects.

View raw schema →
FieldTypeRequiredWhat it is
api_keystringYesMailgun API key

Questions

My send is rejected

Usually the domain. Mailgun only sends from a domain you have added and verified; a sandbox domain reaches only verified recipients.

US or EU?

Mailgun runs separate regions with different hosts. An EU account does not answer on the US host.

Is my key stored on the hub?

Never. It lives only in your own Windmill workspace, encrypted at rest.