email.complained
A signed Boundry platform event. Its payload remains pinned to the API version configured for the receiving endpoint.
email.complained
The recipient marked the message as spam.
Channel: email
Payload schema
api_versionrequiredstringAPI version pinned to the webhook endpoint. Values: "2026-08-14". Default: "2026-08-14".
created_atrequiredstring (date-time)Timestamp when Boundry created the event. Example: "2026-08-14T12:00:00.000Z".
datarequiredobjectEvent resource wrapper. Example: {"object":{"attachments":[],"bcc":[],"cc":[],"channel":"email","complaint_feedback_type":"abuse","created_at":"2026-08-14T12:00:00.000Z","from":"sender@acme.com","html":null,"id":"msg_01j0example","last_event":"complained","message_id":"<010001@example>","object":"email","project_id":"proj_au_prod","reply_to":[],"scheduled_at":null,"subject":"Welcome","tags":[],"text":"Hello","to":["hello@example.com"]}}.
objectrequiredobjectEvent resource. Example: {"attachments":[],"bcc":[],"cc":[],"channel":"email","complaint_feedback_type":"abuse","created_at":"2026-08-14T12:00:00.000Z","from":"sender@acme.com","html":null,"id":"msg_01j0example","last_event":"complained","message_id":"<010001@example>","object":"email","project_id":"proj_au_prod","reply_to":[],"scheduled_at":null,"subject":"Welcome","tags":[],"text":"Hello","to":["hello@example.com"]}.
attachmentsrequiredarrayAttachment metadata.
content_typerequiredstringAttachment media type. Example: "application/pdf".
filenamerequiredstringOriginal attachment filename. Example: "invoice.pdf".
idrequiredstringAttachment identifier. Example: "msg_01j0example".
sizerequiredintegerAttachment size in bytes. Example: 1234.
bccrequiredarrayBlind-carbon-copy recipients.
ccrequiredarrayCarbon-copy recipients.
channelrequiredstringMessaging channel. Values: "email".
complaint_feedback_typerequiredstring | null | nullSES complaint feedback type, or null when absent.
Option 1stringOne permitted response shape.
Option 2null | nullOne permitted response shape.
created_atrequiredstring (date-time)Timestamp when Boundry accepted the message. Example: "2026-08-14T12:00:00.000Z".
fromrequiredstringSender email address. Example: "hello@example.com".
htmlrequiredstring | null | nullHTML body, or null when omitted.
Option 1stringHTML email content.
Option 2null | nullOne permitted response shape.
idrequiredstringMessage identifier. Example: "msg_01j0example".
last_eventrequiredstringLatest delivery lifecycle event. Values: "queued", "scheduled", "sending", "sent", "delivered", "delivery_delayed", "bounced", "complained", "opened", "clicked", "failed", "canceled", "received", "stored".
message_idrequiredstring | null | nullProvider message identifier, or null before delivery.
Option 1stringProvider message identifier.
Option 2null | nullOne permitted response shape.
objectrequiredstringResource type discriminator. Values: "email". Example: "email".
project_idrequiredstringOwning project identifier. Example: "msg_01j0example".
reply_torequiredarrayReply-to addresses.
scheduled_atrequirednull | nullScheduled delivery time; local mode does not schedule emails.
subjectrequiredstringEmail subject. Example: "Welcome to Boundry".
tagsrequiredarrayEmail tags.
namerequiredstringTag name. Example: "campaign".
valuerequiredstringTag value. Example: "welcome".
textrequiredstring | null | nullPlain-text body, or null when omitted.
Option 1stringPlain-text email content.
Option 2null | nullOne permitted response shape.
torequiredarrayRecipient email addresses.
idrequiredstringStable event identifier.
livemoderequiredbooleanWhether the event originated in live mode.
objectrequiredstringResource type discriminator. Values: "event".
project_idrequiredstringOwning project identifier. Example: "msg_01j0example".
typerequiredstringWebhook event type. Values: "email.complained".
Sample body
{
"api_version": "2026-08-14",
"created_at": "2026-08-14T12:00:00.000Z",
"data": {
"object": {
"attachments": [],
"bcc": [],
"cc": [],
"channel": "email",
"complaint_feedback_type": "abuse",
"created_at": "2026-08-14T12:00:00.000Z",
"from": "sender@acme.com",
"html": null,
"id": "msg_01j0example",
"last_event": "complained",
"message_id": "<010001@example>",
"object": "email",
"project_id": "proj_au_prod",
"reply_to": [],
"scheduled_at": null,
"subject": "Welcome",
"tags": [],
"text": "Hello",
"to": [
"hello@example.com"
]
}
},
"id": "evt_01j0example",
"livemode": true,
"object": "event",
"project_id": "proj_au_prod",
"type": "email.complained"
}