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.
Parameters | Data Type | Description |
webhook_name | String | Name of the webhook you configured. |
webhook_id | String | ID of the configured webhook. |
action | String | Name of the event. |
data | JSON Array | An array of data about the events. |
action_time | Long | Time at which the spam event happened. |
sending_ip | String | The IP through which the email was sent, but landed in spam. |
contact_id | Long | ID of the contact who marked the email as spam. |
contact_email | String | Email address of the contact who marked the mail as spam. |
rcpt_domain | String | The domain of the recipient. |
rcpt_additional_data | JSON Object | Additional data of the recipient that was provided by you in Transmission API or Recipient List API. |
from | String | Indicates the sender address. |
subject | String | The subject of the transmission. |
message_id | String | The message ID of the email that was marked as spam. |
transmission_name | String | The name you provided for the transmission in Transmission API. |
injected_time | Long | The time the transmission was created. |
transmission_id | Long | The ID of the transmission. |
zuid | Long | The 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
}
]
}