# email.complained

> Email marked as spam: a customer marked one of the store's emails as spam.

- **Topic:** `email.complained`, in the `Kaizena-Webhook-Topic` header and the body's `topic`
- **Sent to:** Your own endpoints, and apps
- **About:** the `email`, under `data.email`
- **Payload version:** 1

## Payload {#payload}

| Field | Type | Description |
|---|---|---|
| `id` | string (uuid) | The delivery's id: the same when a delivery is sent again, so a receiver can do it once. |
| `topic` | `"email.complained"` |   |
| `version` | `1` | The payload's version; a change to a shape raises it. |
| `store` | object |   |
| `store.slug` | string |   |
| `store.name` | string |   |
| `created_at` | string (date-time) | When the event happened. |
| `data` | object |   |
| `data.email` | object |   |
| `data.email.id` | string (uuid) |   |
| `data.email.kind` | string | What the email was: `order.confirmation`, `marketing.broadcast`, `marketing.automation`, … as the store's email log names it. |
| `data.email.to` | string | The address it was sent to, lower case. |
| `data.email.status` | one of `bounced`, `complained` | It came back, or the reader marked it as spam. |
| `data.email.reason` | string or null | What the mail server said for a bounce (`Permanent: …` when the address does not exist); null for spam. |
| `data.email.order_id` | string (uuid) or null | The order it was about, if any. |
| `data.email.sent_at` | string (date-time) or null |   |
| `data.email.admin_url` | string | Where it is in the store's admin; empty in a sample. |

## Example {#example}

```json
{
  "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
  "topic": "email.complained",
  "version": 1,
  "store": {
    "slug": "your-store",
    "name": "Example"
  },
  "created_at": "2026-11-03T09:30:00Z",
  "data": {
    "email": {
      "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
      "kind": "example",
      "to": "example",
      "status": "complained",
      "reason": "example",
      "order_id": "5e5f7ef7-73d7-4c28-8954-bda4963b1e6d",
      "sent_at": "2026-11-03T09:30:00Z",
      "admin_url": "https://kaizenaflow.com/admin/your-store"
    }
  }
}
```

Every value is an example of its type, not a real store's.

## Signature and retries {#signature}

Each delivery carries the [headers](https://docs.kaizenaflow.com/reference/webhooks#headers) every topic has and is signed: [check the signature](https://docs.kaizenaflow.com/reference/webhooks#signature) before you trust it. One not answered with a 2xx status is [tried again](https://docs.kaizenaflow.com/reference/webhooks#retries).

---

https://docs.kaizenaflow.com/reference/webhooks/email-complained · made from the API contract 1.57
