Skip to main content
WEBHOOK
AhaSend sends this event when the recipient’s mailbox provider reports your campaign email as spam through its feedback loop. This event is sent for campaign email only. A spam complaint about a transactional email suppresses the address and sends suppression.created. data.complaint.feedback_type is the feedback type of the report, abuse or fraud. data.complaint.reporter is the feedback loop that sent the report. AhaSend can add feedback loops at any time, so keep a fallback for a value you do not know. data.campaign_id, data.list_id and data.segment_id say which campaign sent the email and how it reached the recipient. Repeats: AhaSend sends this event for every complaint report that it matches to the message, also when the recipient is already unsubscribed. Drop the repeats by type and data.id. The contact events of the same report are sent only when the report changes something, except for a campaign sent to a segment. Setting: on_complained (Message Reported as Spam in the dashboard). When it’s sent: When AhaSend receives a spam complaint report and matches it to the message.

Body

application/json
type
enum<string>
required

The event type

Available options:
message.complained
webhook_id
string<uuid>
required

The webhook ID (the same ID as returned by the Create Webhook API)

timestamp
string<date-time>
required

When the event occurred (ISO 8601 format)

data
object
required

Response

Webhook received successfully