Edit
Code sample preference:
curl
Ruby
Python
PHP
Java
C#
Go
Node.js
Mailgun API Reference
ΒΆ
Introduction
Base URL
Authentication
Date Format
Status codes
Webhooks
Mailgun Regions
Postman Integration
Messages
Sending
Retrieving Stored Messages
Deleting Stored Messages
Examples
Error codes
Rate Limits
Domains
Examples
Secure Tracking
Initiate generation of an x509 keypair
Sample Request
Sample Responses
Get the status of an x509 keypair
IPs
Example
IP Pools
Create IP Pool
Get IP Pools
Update an IP Pool
Delete an IP Pool
Link an IP Pool
Unlink an IP Pool
Examples
Events
Viewing Stored Messages
Time Range
Event Polling
Query Options
Filter Field
Filter Expression
Event Types
Event Structure
Examples
Stats
Data Retention
Duration
Event Types
Examples
Tags
Duration
Event Types
Examples
Suppressions
Bounces
View all bounces
View a single bounce
Add a single bounce
Add multiple bounces
Import a list of bounces
Delete a single bounce
Delete an entire bounce list
Unsubscribes
View all unsubscribes
View a single unsubscribe
Add a single unsubscribe
Add multiple unsubscribes
Import a list of unsubscribes
Delete a single unsubscribe
Complaints
View all complaints
View a single complaint
Add a single complaint
Add multiple complaints
Import a list of complaints
Delete a single complaint
Whitelists
View all whitelist records
View a single whitelist record
Add a single whitelist record
Import a list of addresses and/or domains
Delete a single record from whitelist table
Routes
Filters
Actions
Examples
Webhooks
Examples
Mailing Lists
Access Levels
Examples
Templates
Templates API
Store new template
Get template
Update template
Delete template
View all templates in a domain
Delete all templates in a domain
Create new version
Get version
Update version
Delete version
View all versions in template
Subaccounts
Get my subaccounts
Create a subaccount
Disable a subaccount
Enable a subaccount
Email Verifications
Single Verification
Request Examples
Field Explanation
Reason Explanation
Result Types
Bulk Verification
Bulk Verification Preview
Alerts