Add an email address to your unsubscribe list for user consent management.
Unsubscribe Scope:
- Global: Omit
domain_idto unsubscribe from ALL your domains - Domain-specific: Include
domain_idto unsubscribe from a specific domain only
Use cases:
- Processing manual unsubscribe requests (phone, email, support tickets)
- Honoring opt-out preferences from other channels
- Importing unsubscribe lists from other platforms
- Domain-specific opt-outs for users who want targeted unsubscribes
- Proactive consent management
Note: Unsubscribe links in emails are handled automatically. Use this endpoint for opt-outs from other channels.
Security
ApiKeyAuth
Optional - Specify domain ID for domain-specific unsubscribe. Omit for global unsubscribe.
Example:"123e4567-e89b-12d3-a456-426614174000"
- US Data Centerhttps://api.mailerlogic.net/api/customer/unsubscribes
- EU Data Center (coming soon)https://eu-api.mailerlogic.net/api/customer/unsubscribes
curl -i -X POST \
https://api.mailerlogic.net/api/customer/unsubscribes \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"email": "user@example.com",
"domain_id": "123e4567-e89b-12d3-a456-426614174000",
"reason": "User requested removal"
}'Response
{ "message": "Email unsubscribed successfully", "unsubscribe": { "id": "string", "email": "user@example.com", "source": "link", "reason": "string", "created_at": "2019-08-24T14:15:22Z" } }