Novu supports the following webhook event types:
- Email events: Events when Novu receives inbound mail on a verified domain with a webhook route.
- Message events: Events about message delivery status changes.
- Preference event: Event about subscriber preference changes.
- Workflow events: Events about workflow creation, updates, and deletions.
Each event includes detailed information about the affected resource and the changes that occurred.
Every event payload is published in the OpenAPI specification under x-webhooks. The Event Catalog on the Webhooks page renders those schemas, so it always matches what Novu sends.
Event envelope#
Every webhook body uses the same envelope. The resource itself is under data.object.
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier of the webhook event, prefixed with evt_ |
type | string | Event type, for example message.sent |
object | string | Resource type the event relates to: message, workflow, preference, or email_inbound |
timestamp | string | ISO timestamp of when the event occurred |
environmentId | string | Identifier of the environment the event belongs to |
data | object | Event payload. Always contains object, and previousObject on update events |
Email events#
email.received: Triggered when Novu receives an inbound email that matches an Inbound Email Webhook route on a verified domain. The payload includes normalized mail content (from, to, subject, text, html, headers, attachments, threading fields) plus domain and route metadata. When the matched route address is only in the SMTP envelope (a BCC recipient not present intoorcc), it appears inmail.bccandtois left unchanged; the field is omitted otherwise. Download files from each attachment’surlbeforeexpiresAt. See Attachments.
email.received is for user mail received on your domain. It is not the same as delivery or engagement events from your outbound email provider - see Email Activity Tracking for those.
Inbound email payload#
data.object contains domain, route, and mail.
| Field | Type | Description |
|---|---|---|
domain.id | string | Identifier of the domain that received the email |
domain.name | string | Domain name, for example mail.yourcompany.com |
domain.data | Record<string, string> | Custom data configured on the domain |
route.address | string | Local part of the receiving address, for example support |
route.data | Record<string, string> | Custom data configured on the route, for example a tenant identifier |
mail.from | Array<{ address, name }> | Sender addresses |
mail.to | Array<{ address, name }> | Recipient addresses |
mail.cc | Array<{ address, name }> | Carbon copy addresses, when the sender set any |
mail.bcc | Array<{ address, name }> | Matched SMTP envelope recipient when it is absent from to and cc. Omitted otherwise |
mail.subject | string | Email subject |
mail.text | string | Plain text body |
mail.html | string | HTML body |
mail.messageId | string | Value of the Message-ID header |
mail.headers | Record<string, string | string[]> | Raw mail headers, keyed by lowercase header name |
mail.date | string | null | Timestamp taken from the Date header, or null when the header is invalid |
mail.inReplyTo | string | Value of the In-Reply-To header, set on replies |
mail.references | string | string[] | Value of the References header, delivered as a single value or a list depending on the sender |
mail.attachments | array | Attachments found on the email. Empty array when there are none |
Each attachment has the following fields.
| Field | Type | Description |
|---|---|---|
filename | string | File name of the attachment |
contentType | string | MIME type of the attachment |
size | number | File size in bytes |
url | string | Presigned download URL. Absent on self-hosted deployments without S3, where content carries the bytes instead |
expiresAt | string | ISO timestamp when url stops being valid |
content | object | null | Deprecated, use url. Raw bytes as { "type": "Buffer", "data": number[] }, or null when rehydration failed |
contentBytes | number | Deprecated, use size |
Message events#
message.archived: This webhook is triggered when a subscriber archives a message. The payload contains the details of the event.message.deleted: This webhook is triggered when a message is deleted. The payload contains the details of the event.message.delivered: This webhook is triggered when a message delivery provider acknowledged the message delivery to the end receiving client. The payload contains the details of the event.message.failed: This webhook is triggered when Novu tries to send the message to the delivery provider and it got failed. The payload contains the details of the event.message.read: This webhook is triggered when a message has been read by the subscriber. The payload contains the details of the event.message.seen: This webhook is triggered when a subscriber opens a message. The payload contains the details of the event.message.sent: This webhook is triggered when Novu sends the message to the delivery provider. The payload contains the details of the event.message.snoozed: This webhook is triggered when a message is snoozed by the subscriber. The payload contains the details of the event.message.unarchived: This webhook is triggered when an archived message is unarchived. The payload contains the details of the event.message.unread: This webhook is triggered when a message is unread or marked as unread by the subscriber. The payload contains the details of the event.message.unsnoozed: This webhook is triggered when a message is unsnoozed by a subscriber. The payload contains the details of the event.
Email and push activity-tracking events use these same message.* types. The status mapping is in Activity tracking.
Message payload#
All message events share the same data.object shape.
| Field | Type | Description |
|---|---|---|
_id | string | Identifier of the message |
_templateId | string | Identifier of the workflow that produced the message |
_environmentId | string | Environment identifier |
_organizationId | string | Organization identifier |
_notificationId | string | Identifier of the notification |
subscriberId | string | Subscriber identifier supplied by the producer. Direct send and Inbox events use the external subscriber identifier |
actorSubscriber | object | Actor subscriber, when the message was triggered on behalf of another subscriber |
templateIdentifier | string | Workflow identifier used when triggering the workflow |
workflowId | string | Same as templateIdentifier. Included for correlation with workflow events |
stepId | string | Step identifier, used to correlate with workflow steps |
transactionId | string | Trigger transaction identifier |
channel | string | Channel the message was sent on |
providerId | string | Provider identifier that delivered the message |
status | string | Delivery status stored on the message: sent, error, or warning |
seen | boolean | Whether the message has been seen |
read | boolean | Whether the message has been read |
archived | boolean | Whether the message is archived |
archivedAt | string | Archive timestamp |
snoozedUntil | string | When set, the Inbox message is snoozed until this timestamp |
deliveredAt | string[] | Delivery timestamps recorded for the message |
firstSeenDate | string | First time the message was seen |
lastSeenDate | string | Last time the message was seen |
lastReadDate | string | Last time the message was read |
createdAt | string | Creation timestamp |
updatedAt | string | Last updated timestamp |
errorId | string | Provider or internal error identifier when delivery failed |
errorText | string | Provider or internal error text when delivery failed |
contextKeys | string[] | Context keys associated with the message |
providerResponseId | string | Provider response identifier for the send attempt |
deviceToken | string | Device token used for a push send |
channelData | object | Channel endpoint used for the send. Contains type, identifier, endpoint, and optionally token, subscriberTenantId, and clientId |
webhookUrl | string | Deprecated, use channelData. Chat webhook URL used for the send |
message.sent and message.failed can also include an error object next to object. Chat providers report a send failure on message.sent, so treat error as meaningful on both events.
| Field | Type | Description |
|---|---|---|
error.message | string | Error message from the provider or send attempt |
error.push.reason | string | Why a push send failed: token_invalid or generic_error |
error.push.deviceToken | string | Device token that failed |
Secrets on channelData such as token are redacted before delivery.
Activity tracking#
Email activity tracking and push activity tracking are delivered as message.* webhooks with the message payload.
Novu also sends message.sent when it hands the message to the provider, and message.failed when that handoff fails. Those events are independent of activity tracking. Email activity tracking sends message.sent again when the normalized status is sent. Resend (email.sent) and Amazon SES (Send) report that status. SendGrid and Mailgun do not.
data.object is the message record loaded when the event arrived. seen, read, deliveredAt, and status still hold the values from before this event. Use type as the activity signal.
Email#
Email activity tracking is available on Novu Cloud and Enterprise self-hosted. Provider events are normalized to the statuses in Event semantics, then mapped:
| Novu status | Webhook event |
|---|---|
sent | message.sent |
delivered | message.delivered |
opened | message.seen |
bounced | message.failed |
rejected | message.failed |
blocked | message.failed |
dropped | message.failed |
clicked | No webhook |
delayed | No webhook |
complaint | No webhook |
unsubscribed | No webhook |
clicked is written to the activity feed and sets read and seen on the message. delayed, complaint, and unsubscribed are written to the activity feed and leave the message unchanged. bounced, rejected, blocked, and dropped send message.failed and leave status on the message unchanged. The activity feed keeps the specific status. Any other normalized status, including spam and deferred, is not sent as a webhook.
Push#
Push events are the eventType values forwarded to the activity track API. Novu matches the event when eventId is the __nvMessageId from the notification. See Push activity tracking.
eventType | Webhook event |
|---|---|
delivered | message.delivered |
opened | message.seen |
clicked | message.read |
dismissed | message.read |
failed | message.failed |
clicked and dismissed both send message.read.
Preference event#
preference.updated: This webhook is triggered when a subscriber preference is updated. The payload contains the details of the event.
Preference payload#
data contains the updated preference under object, plus the subscriberId it belongs to.
| Field | Type | Description |
|---|---|---|
subscriberId | string | Identifier of the subscriber whose preference changed |
object.level | string | Whether this preference is global or template (workflow-specific) |
object.enabled | boolean | Whether notifications are enabled |
object.channels | object | Per-channel flags: email, sms, in_app, chat, push, and tool |
object.subscriptionId | string | Topic subscription identifier, on subscription preferences |
object.workflow | object | Workflow the preference applies to, on workflow-level preferences |
object.schedule | object | Delivery schedule, with isEnabled and an optional weeklySchedule |
object.condition | object | JsonLogic condition controlling whether this preference applies |
The nested workflow object has the following fields.
| Field | Type | Description |
|---|---|---|
id | string | Identifier of the workflow |
identifier | string | Workflow identifier used when triggering. May be absent for subscription preferences |
name | string | Name of the workflow |
critical | boolean | Whether the workflow ignores subscriber preferences |
severity | string | Workflow severity |
tags | string[] | Tags assigned to the workflow |
data | object | Custom workflow data |
Workflow events#
workflow.created: This webhook is triggered when a workflow is created. The payload contains the details of the event.workflow.deleted: This webhook is triggered when a workflow is deleted. The payload contains the details of the event.workflow.published: This webhook is triggered when aworkflowevent occurs, that is when a workflow is synced from dev to prod environment. The payload contains the details of the event.workflow.updated: This webhook is triggered when a workflow is updated. The payload contains the details of the event.
Workflow payload#
Workflow events carry one of two shapes, so check the table below before parsing.
| Event | data.object | data.previousObject |
|---|---|---|
workflow.created | Workflow response | Not sent |
workflow.updated | Workflow response | Stored workflow, as persisted before the update |
workflow.published | Workflow response | Workflow response, as published before this sync |
workflow.deleted | Stored workflow | Not sent |
The workflow response is the same shape the Workflows API returns, including workflowId, name, description, active, tags, steps, origin, status, severity, preferences, issues, createdAt, and updatedAt.
The stored workflow is the raw persisted document, so it uses internal field names rather than API names.
| Field | Type | Description |
|---|---|---|
_id | string | Identifier of the workflow |
name | string | Name of the workflow |
description | string | Description of the workflow |
active | boolean | Whether the workflow is active |
draft | boolean | Whether the workflow is a draft |
critical | boolean | Whether the workflow ignores subscriber preferences |
tags | string[] | Tags assigned to the workflow |
triggers | array | Workflow triggers, each with type, identifier, and declared variables |
steps | array | Persisted workflow steps, including stepId, _templateId, template, controls, and issues |
preferenceSettings | object | Per-channel preference defaults stored on the workflow |
issues | Record<string, array> | Runtime issues recorded on the workflow |
_environmentId | string | Environment identifier |
_organizationId | string | Organization identifier |
_notificationGroupId | string | Notification group identifier |
origin | string | Workflow origin |
status | string | Workflow status |
severity | string | Workflow severity |
payloadSchema | object | Payload JSON Schema for the workflow |
deleted | boolean | Deletion state captured before the event is processed. workflow.deleted normally carries false here |
createdAt | string | Creation timestamp |
updatedAt | string | Last updated timestamp |
On workflow.updated, previousObject may also include userPreferences and defaultPreferences when the update went through a workflow patch. Treat both fields as optional.