Spam

A spam event occurs when one or more of your recipients mark your email as spam. However, it also depends on the recipient email service provider, as some may trigger a spam event only after a certain threshold is crossed.

List of Body Attributes

This table shows the list of parameters present in the payload and their explanations.

ParametersData TypeDescription
webhook_nameStringName of the webhook you configured.
webhook_idStringID of the configured webhook.
actionStringName of the event.
dataJSON ArrayAn array of data about the events.
action_timeLongTime at which the spam event happened.
sending_ipStringThe IP through which the email was sent, but landed in spam.
contact_idLongID of the contact who marked the email as spam.
contact_emailStringEmail address of the contact who marked the mail as spam.
rcpt_domainStringThe domain of the recipient.
rcpt_additional_dataJSON ObjectAdditional data of the recipient that was provided by you in Transmission API or Recipient List API.
from StringIndicates the sender address.
subjectStringThe subject of the transmission.
message_idStringThe message ID of the email that was marked as spam.
transmission_nameStringThe name you provided for the transmission in Transmission API.
injected_timeLongThe time the transmission was created.
transmission_idLongThe ID of the transmission.
zuidLongThe ID of the user that sent the transmission API request.

Sample payload for a spam event

Copied{
  "webhook_name": "Spam webhook",
  "webhook_id": "1314909000000063003",
  "action": "spam",
  "data": [
    {
      "action_time": 1725543459000,
      "sending_ip": "135.84.83.99",
      "contact_id": 1314909023300000144084,
      "contact_email": "john.doe@zylker.com",
      "rcpt_domain": "zylker.com",
      "rcpt_additional_data": {
        "country": "JP",
        "ph": "1239333320"
      },
      "from": "\"Aaron Fletcher\" <aron@zylker.com>",
      "subject": "Summer is here",
      "message_id": "<zcb.3z48a08b0c5ad7835216d2d705c1539aa2a44504764ccc7f4bbeceff75d3b82de0.1123f7ec4d0f91a09.1725514638987@bounce.zylker.com>",
      "transmission_name": "My first Email API Campaign",
      "injected_time": 1725543431000,
      "transmission_id": 1314909000000112344068,
      "zuid": 8575431221455
    }
  ]
}