Event types
Every webhook event and an example of its payload.
Every webhook request has the same envelope:
{
"type": "email.delivered",
"created_at": "2026-10-11T09:12:47.118Z",
"data": { }
}type is the event type and created_at is when the event was created. data depends on the event.
Email events
All email.* events except email.received describe an email you sent. Their data always has these fields:
| Field | Type | Description |
|---|---|---|
email_id | string | The email's ID, as returned by POST /emails. |
from | string | The sender. |
to | string[] | The to recipients. |
subject | string | The subject. |
created_at | string | When the email was created. |
tags | object[] | The email's tags, as { "name", "value" }. |
broadcast_id | string | Only for emails sent by a broadcast. |
recipient | string | The recipient the event is about, for per-recipient events (delivered, delayed, bounced, complained). |
Some events add their own object, described below.
email.queued
The email was accepted and is waiting to be sent. No extra fields.
email.scheduled
The email was accepted with a scheduled_at in the future. No extra fields.
email.sent
The email was handed to the sending infrastructure. No extra fields.
{
"type": "email.sent",
"created_at": "2026-10-11T09:12:44.512Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [{ "name": "category", "value": "receipt" }]
}
}email.delivered
The recipient's mail server accepted the email. Sent once per recipient. delivery.response is the server's reply.
{
"type": "email.delivered",
"created_at": "2026-10-11T09:12:47.118Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [{ "name": "category", "value": "receipt" }],
"recipient": "[email protected]",
"delivery": { "response": "250 2.0.0 OK 1760173967 a1-20020a05" }
}
}email.delivery_delayed
Delivery failed temporarily and is being retried. delay.message explains why. delay.type is a short classification when available.
{
"type": "email.delivery_delayed",
"created_at": "2026-10-11T09:20:02.004Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [],
"recipient": "[email protected]",
"delay": { "type": "MailboxFull", "message": "452 4.2.2 The email account that you tried to reach is over quota." }
}
}email.bounced
The recipient's server rejected the email. bounce.type is hard (permanent) or soft (temporary). Hard bounces add the address to your suppression list.
{
"type": "email.bounced",
"created_at": "2026-10-11T09:12:48.230Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [],
"recipient": "[email protected]",
"bounce": {
"type": "hard",
"sub_type": "NoEmail",
"message": "smtp; 550 5.1.1 The email account that you tried to reach does not exist."
}
}
}email.complained
The recipient reported the email as spam. The address is added to your suppression list. complaint.feedback_type is the type reported by the mailbox provider, when it sends one (for example abuse).
{
"type": "email.complained",
"created_at": "2026-10-11T11:02:13.771Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [],
"recipient": "[email protected]",
"complaint": { "feedback_type": "abuse" }
}
}email.opened
The email was opened. Needs open tracking. Sent for every open.
{
"type": "email.opened",
"created_at": "2026-10-11T09:30:05.090Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [],
"open": { "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64)", "ip": "203.0.113.10" }
}
}email.clicked
A link in the email was clicked. Needs click tracking. Sent for every click.
{
"type": "email.clicked",
"created_at": "2026-10-11T09:31:40.552Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [],
"click": {
"link": "https://acme.com/orders/1042",
"user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X)",
"ip": "203.0.113.10"
}
}
}email.failed
uSend could not send the email, for example because every recipient is suppressed, the organization is suspended or the message was rejected before delivery. failed.reason explains why. When every recipient was suppressed, reason is suppressed and suppressed lists the addresses.
{
"type": "email.failed",
"created_at": "2026-10-11T09:12:44.512Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T09:12:43Z",
"tags": [],
"failed": { "reason": "The organization is suspended." },
"reason": "org_suspended"
}
}email.canceled
A scheduled email was canceled. No extra fields.
email.received
An email arrived on one of your receiving domains. Its data is different from the other email events:
{
"type": "email.received",
"created_at": "2026-10-11T08:30:12.402Z",
"data": {
"email_id": "a39999a6-88e3-48b1-888b-beaabcde1b33",
"from": "Ann <[email protected]>",
"to": ["[email protected]"],
"cc": [],
"subject": "Question about my order",
"text": "Hi, where is order #1042?",
"html": "<p>Hi, where is order #1042?</p>",
"message_id": "[email protected]",
"created_at": "2026-10-11T08:30:12Z",
"attachments": [
{ "id": "2a0c9ce0-3112-4728-976e-47ddcd16a318", "filename": "screenshot.png", "content_type": "image/png", "size": 182044 }
]
}
}See Receiving webhook for the fields.
contact.unsubscribed
A contact unsubscribed through a broadcast's unsubscribe link or their mail client's unsubscribe button. audience_id is the audience (segment) the contact was unsubscribed from. email_id is included when the unsubscribe came from a specific email.
{
"type": "contact.unsubscribed",
"created_at": "2026-10-11T12:00:31.640Z",
"data": {
"contact_id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"audience_id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
"email": "[email protected]",
"first_name": "Ann",
"last_name": "Lee",
"unsubscribed": true,
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c"
}
}Changing a contact's unsubscribed flag through the API does not send this event.
email.suppressed
Every recipient of an email was on your suppression list, so uSend did not try to deliver it. The fields are the email's email_id, from, to, subject and created_at, plus suppressed.
{
"type": "email.suppressed",
"created_at": "2026-10-11T12:05:00.000Z",
"data": {
"email_id": "4ef9a417-02e9-4d39-ad75-9611e0fcc33c",
"from": "Acme <[email protected]>",
"to": ["[email protected]"],
"subject": "Your receipt",
"created_at": "2026-10-11T12:04:59Z",
"suppressed": { "type": "OnAccountSuppressionList", "message": "usend did not attempt to deliver to these recipients because they are on the suppression list." }
}
}Inbox events
Inboxes fire their own events. Every data object has inbox_id.
| Event | When | Extra data fields |
|---|---|---|
inbox.created, inbox.updated, inbox.deleted | An inbox was created, changed or deleted. | name, address, enabled |
inbox.thread.created | A new conversation started, by a received or a sent message. | thread_id, subject, folder |
inbox.thread.folder.updated | A thread moved between inbox, archive, spam and trash (also when new mail resurfaces an archived thread). | thread_id, folder, previous_folder |
inbox.thread.assigned, inbox.thread.unassigned | A thread was assigned to a member, or unassigned. | thread_id, assignee_user_id (assigned only), previous_assignee_user_id |
inbox.thread.labels.updated | A thread's labels changed. | thread_id, labels (label IDs) |
inbox.email.received | A message was added to a thread. | thread_id, email_id, inbound_email_id, from, to, cc, subject, message_id, created_at |
inbox.email.sent | A reply, forward or new message was sent from the inbox. | thread_id, email_id, sent_email_id, kind, from, to, cc, subject |
inbox.draft.created, inbox.draft.updated, inbox.draft.sent, inbox.draft.deleted | A draft changed. | draft_id, thread_id, kind, subject |
{
"type": "inbox.email.received",
"created_at": "2026-10-11T08:30:12.402Z",
"data": {
"inbox_id": "5c0d1d9e-6a3b-4f55-8d7a-0e2d4a0b7f10",
"thread_id": "f0a1b2c3-1111-4222-8333-444455556666",
"email_id": "9d8c7b6a-1111-4222-8333-444455556666",
"inbound_email_id": "a39999a6-88e3-48b1-888b-beaabcde1b33",
"from": "Ann <[email protected]>",
"to": ["[email protected]"],
"cc": [],
"subject": "Question about my order",
"message_id": "[email protected]",
"created_at": "2026-10-11T08:30:12Z"
}
}Mail to an inbox address also fires email.received.
Domain events
domain.created, domain.updated and domain.deleted fire when you add, change or remove a domain through the API or dashboard. data is the domain object (for domain.deleted, only id, name and status).
Contact events
contact.created, contact.updated and contact.deleted fire when a contact changes through the API or dashboard.
{
"type": "contact.created",
"created_at": "2026-10-11T12:10:00.000Z",
"data": {
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"email": "[email protected]",
"first_name": "Ann",
"last_name": "Lee",
"unsubscribed": false,
"segment_ids": ["78261eea-8f8b-4381-83c6-79fa7120f1cf"],
"created_at": "2026-10-11T12:10:00Z",
"updated_at": "2026-10-11T12:10:00Z"
}
}contact.topics.updated fires when a contact's topic subscriptions change: data has the contact's email and the topics that were set, each { "id", "subscription": "opt_in" | "opt_out" }.
Topic events
topic.created, topic.updated and topic.deleted. data is the topic object (id, name, description, default_subscription); for topic.deleted, only id.
Suppression events
suppression.added fires when an address is added to your suppression list, by you or automatically after a hard bounce. suppression.removed fires when you remove one.
{
"type": "suppression.added",
"created_at": "2026-10-11T12:20:00.000Z",
"data": { "id": "5d1c2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f", "email": "[email protected]", "reason": "manual", "created_at": "2026-10-11T12:20:00Z" }
}