---
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/th/api-reference/webhooks/events/spam

เหตุการณ์ webhook · การส่ง

# spam

ส่งเมื่อเซิร์ฟเวอร์อีเมลผู้รับปฏิเสธอีเมลว่าเป็น spam หรือด้วยเหตุผลด้านนโยบายระหว่างการส่ง

ส่งเป็น `POST` ที่มีลายเซ็นไปยัง URL webhook ของคุณ ดู [การตั้งค่าและเหตุการณ์](https://docs.sendcorex.com/th/api-reference/webhooks/setup-events#quick-start) สำหรับวิธีตรวจลายเซ็น

## 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"
  }
}
```

**ไม่ใช่การร้องเรียน** spam คือการปฏิเสธตอนส่ง เมื่อผู้รับรายงานอีเมลที่ส่งถึงแล้ว คุณจะได้ fbl_complaint แทน

## ข้อมูลอ้างอิงฟิลด์

- `event`
ค่าคงที่: "spam"
- `emailId`
ID ของอีเมล เป็นค่าเดียวกับที่ POST /send ส่งกลับ
- `timestamp`
เวลาที่เกิดเหตุการณ์ (ISO 8601, UTC)
- `data.recipientEmail`
ที่อยู่อีเมลผู้รับ
- `data.fromAddress`
ที่อยู่อีเมลผู้ส่ง
- `data.reason`
คำตอบจากเซิร์ฟเวอร์ผู้รับ
