Mailgun Email API//Complaints
Complaints
API Overview
Authentication
Developer Tools
Mailgun API
Messages
Domains
Domain Keys
Domain Tracking
DKIM Security
Account Webhooks
Domain Webhooks
Metrics
Logs
Bounce Classification
Tags New
Stats
Tags
Events
Send Alerts
Alerts
Limits
Unsubscribe
Bounces
Allowlist
Routes
Forwards
Mailing Lists
Account Templates
Domain Templates
IP Pools
Dynamic IP Pools
IPs
IP Address Warmup
Subaccounts
Custom Message Limit
Account Management
Keys
Credentials
IP Allowlist
Users
Import a CSV file containing a list of addresses to add to the complaint list. The CSV file must be 25MB or under and can contain the following column headers: address, created_at. address is a valid email address (required). created_at is timestamp of complaint event in RFC2822 format (optional, default: current time)
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v3/{domain_name}/complaints/import
- EU Mailgunhttps://api.eu.mailgun.net/v3/{domain_name}/complaints/import
curl -i -X POST \
-u '<username>:<password>' \
'https://api.mailgun.net/v3/{domain_name}/complaints/import' \
-H 'Content-Type: multipart/form-data' \
-F file=stringResponse
{ "message": "ffile uploaded successfully for processing. standby..." }