# message.bounce_detected

Source: https://developer.nylas.com/docs/reference/notifications/messages/message-bounce_detected/

Sent when Nylas detects a Non-Delivery Report (NDR) in the sender's inbox for a message sent via Nylas. Requires the provider to generate an NDR. Available for Google, Microsoft Graph, iCloud, and Yahoo.

## data.object fields

- `grant_id` (string) - The grant ID associated with the bounced message.
- `object` (object) - Bounce details.
  - `bounce_reason` (string) - Human-readable reason for the bounce.
  - `bounce_date` (string) - Date/time string when the bounce occurred.
  - `bounced_addresses` (string) - The email address that bounced.
  - `type` (string) - Bounce type (e.g. `mailbox_unavailable`).
  - `code` (string) - SMTP bounce status code (e.g. `"550"`). Note: this is a string, not an integer.
  - `grant_id` (string) - The grant ID associated with the bounce.
  - `origin` (object) - The original message that triggered the bounce.
    - `to` (array) - Original recipients.
    - `from` (string) - Original sender email address.
    - `cc` (array) - Original CC recipients.
    - `bcc` (array) - Original BCC recipients.
    - `subject` (string) - Subject of the original message.
    - `mime_id` (string) - MIME message ID from the provider.
    - `id` (string) - Provider message ID of the original message.
    - `original_send_at` (string) - Date/time string when the original message was sent.
  - `message_id` (string) - The Nylas message ID of the original message.

## Example payload

```json
{
  "specversion": "1.0",
  "type": "message.bounce_detected",
  "source": "/nylas/send",
  "id": "<WEBHOOK_ID>",
  "time": 1723821985,
  "webhook_delivery_attempt": 1,
  "data": {
    "application_id": "<NYLAS_APPLICATION_ID>",
    "grant_id": "<NYLAS_GRANT_ID>",
    "object": {
      "bounce_reason": "An example message describing the reason for the bounce.",
      "bounce_date": "Wed, 25 Jan 2023 10:18:39 -0800",
      "bounced_addresses": "this.address.bounced@example.com",
      "type": "mailbox_unavailable",
      "code": "550",
      "grant_id": "<NYLAS_GRANT_ID>",
      "origin": {
        "to": [
          "jdoe@example.com"
        ],
        "from": "sender@example.com",
        "cc": [
          "sam.lee@example.com"
        ],
        "bcc": [
          "alex.johnson@example.com"
        ],
        "subject": "example-subject",
        "mime_id": "SJ0PR16MB40611C92DE872E6FC5916859D4603@SJ0PR16MB4062.namprd16.prod.outlook.com",
        "id": "AAkALgAAAAAAHYQDEapmEc2byACqAC-EWg0AVKoCBvx5pk2OWnx9GWNeIAABogwSJQAB",
        "original_send_at": "Mon, 16 Sep 2024 16:15:49 +0000"
      }
    }
  }
}
```
