Mailgun Email API//Unsubscribe
Unsubscribe
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
Complaints
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 unsubscribe list. The CSV file must be 25MB or under and can contain the following column headers: address, tags, created_at. address is a valid email address (required). tags is tag to unsubscribe from, use * to unsubscribe an address from all domain's correspondence (optional, default: *). created_at is timestamp of unsubscribe event in RFC2822 format (optional, default: current time)
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v3/{domain_name}/unsubscribes/import
- EU Mailgunhttps://api.eu.mailgun.net/v3/{domain_name}/unsubscribes/import
curl -i -X POST \
-u '<username>:<password>' \
'https://api.mailgun.net/v3/{domain_name}/unsubscribes/import' \
-H 'Content-Type: multipart/form-data' \
-F file=stringResponse
{ "message": "file uploaded successfully for processing. standby..." }