Webhooks - Bounce Event
Mailazy Bounce Webhook Event and Specification
Bounce webhooks are triggered for bounces that resulted from outgoing emails. So, your webhook would receive data for Hard Bounces, Soft Bounces, Undeliverable bounces, etc.
Email addresses that are suppressed due to spam complaints cannot be reactivated or unsuppressed.
Bounce webhook data
{
"event_type": "bounce",
"bounce_type": "HardBounce",
"bounce_code": 7001,
"message_id": "<627394c62262b94858928333@mailazy.net>",
"queued_at": 1651741894,
"bounced_at": 1651741894,
"suppressed": true,
"can_unsuppress": true,
"bounce_trace_available": true,
"from": "sender@example.com",
"recipient": "recipient@example.com",
"subject": "example subject string",
"description": "unable to deliver message (unknown user, mailbox not found)",
"response": "failure reason phrase"
}
Bounce Types
Bounce types and their code are as follows:
Type | Code | Description |
---|---|---|
HardBounce | 7001 | unable to deliver message (unknown user, mailbox not found) |
SoftBounce | 7002 | unable to temporarily deliver message (mailbox full, account disabled, exceeds quota, out of disk space) |
SpamNotification | 7008 | message was delivered, but was either blocked by the user, or classified as spam, bulk mail, or had rejected content |
VirusNotification | 7016 | virus notification warning about a virus/code infected message or virus attachment |
Blocked | 7032 | blocked from the ISP due to content or blacklisting |
Unknown | 7064 | unknown error |
BadEmailAddress | 1001 | recipient address is not a valid email address |
DMARCPolicy | 1002 | email rejected due to DMARC Policy |
Use-cases
There are many possible uses for the data provided by using the bounce webhook:
- You could instantly help users correct their email if their sign-up email address bounces.
- You could use the data to generate statistics that are specific to your application.
- You could use the data to alert your team when certain emails bounce.