All integrations
Get an API key
Mailgun
Email delivery, routing and validation through Mailgun.
Communication
How an agent reaches it
MCPREST APICLI
How you authenticate
Username and password
- Copy your private API key from Settings, then API security.
- Mailgun expects Basic auth with the literal username `api` and the key as the password.
Connection details
- Base URL
- https://api.mailgun.net/v3
- Pagination
- cursor
Common endpoints
| send an email | POST /{domain}/messages |
| list events | GET /{domain}/events |
| validate an address | GET /address/validate?address={email} |
Worth knowing
- EU accounts use api.eu.mailgun.net. Using the US host with an EU key 401s.
- Send bodies are form-encoded, not JSON.