---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://docs.sendcorex.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://docs.sendcorex.com/llms.txt"
---

Source: https://docs.sendcorex.com/vi/api-reference/webhooks/events/spam

Sự kiện webhook · Giao thư

# spam

Gửi khi máy chủ thư nhận từ chối email vì là spam hoặc lý do chính sách trong lúc giao.

Được gửi dưới dạng `POST` có chữ ký tới URL webhook của bạn. Xem [Thiết lập và sự kiện](https://docs.sendcorex.com/vi/api-reference/webhooks/setup-events#quick-start) để biết cách xác minh chữ ký.

## Payload

```
// Refused as spam
{
  "event": "spam",
  "emailId": "3f2a1b4c-8e9d-4f7a-b2c3-1a2b3c4d5e6f",
  "timestamp": "2026-10-23T04:32:13.000Z",
  "data": {
    "recipientEmail": "user@example.com",
    "fromAddress": "hello@yourdomain.com",
    "reason": "550 5.7.1 Our system has detected that this message is likely unsolicited mail"
  }
}
```

**Không phải khiếu nại.** spam là bị từ chối lúc giao. Khi người nhận báo cáo email đã giao, bạn nhận fbl_complaint thay vào đó.

## Tham chiếu trường

- `event`
Giá trị cố định: "spam".
- `emailId`
ID của email, giống ID mà POST /send trả về.
- `timestamp`
Thời điểm xảy ra sự kiện (ISO 8601, UTC).
- `data.recipientEmail`
Địa chỉ email người nhận.
- `data.fromAddress`
Địa chỉ email người gửi.
- `data.reason`
Câu trả lời của máy chủ nhận.
