Email Webhook lets Novu hand each email payload to an HTTP endpoint you control. Instead of calling a built-in ESP SDK, Novu POSTs the rendered message to your Webhook URL and signs the body with your HMAC secret.
Use this when you want Novu workflows and templates, but delivery goes through an internal service or a provider that is not listed in the Integrations Store.
Creating an Email Webhook integration with Novu#
- Visit the Integrations page on Novu.
- Click Add a provider.
- Locate Email Webhook under the Email section and click Connect.
- Enter your:
- Webhook URL (HTTPS endpoint that accepts
POSTJSON) - Secret Hmac Key (used to sign each request)
- Secret Hmac Key Encoding (optional) — how Novu interprets your Secret Hmac Key when signing requests. Defaults to Text. Choose Base-64 or HEX if your verification side stores the key as binary material (for example, an AWS KMS imported key).
- From email address
- Sender name
- Webhook URL (HTTPS endpoint that accepts
- Confirm Active Integration is on. New integrations start active by default.
- Click Create Integration.
Request format#
For each email, Novu sends a POST request to your webhook URL with:
Content-Type: application/jsonX-Novu-Signature: <hmac-sha256-hex>of the raw JSON body, using your Secret Hmac Key
Verify the signature before processing the payload. Reject requests that do not match.
The JSON body contains the rendered email Novu prepared for the subscriber. Keys use camelCase:
| Field | Type | Description |
|---|---|---|
id | string | Novu message ID for this email. |
to | string[] | Recipient email addresses, including any to addresses added through email overrides. |
from | string | Sender email address. |
senderName | string | Sender display name. |
subject | string | Rendered subject line. |
html | string | Rendered HTML body. |
text | string | Plain text body. Present only when set through email overrides. |
cc | string[] | CC addresses. Empty array when not set. |
bcc | string[] | BCC addresses. Empty array when not set. |
replyTo | string | Reply-to address, when configured. |
attachments | object[] | Attachments passed in the trigger payload, when present. |
headers | object | Custom email headers from email overrides. Empty object when not set. |
customData | object | Custom data from email overrides. Empty object when not set. |
notificationDetails | object | Contains transactionId, workflowIdentifier, and subscriberId for the trigger that produced this email. |
payloadDetails | object | Step details and the variables Novu used to render the email, including the trigger payload. |
Fields with no value are omitted from the JSON body. To confirm the exact shape for your workflows, trigger a test email to an endpoint that logs the raw request body.
If your endpoint fails, Novu retries the request up to 3 times. See Delivery retries for details.
Secret Hmac Key encoding#
By default, Novu interprets your Secret Hmac Key as plain Text (UTF-8 bytes) when computing the HMAC. If the system that verifies the signature holds the key as binary material — for example an AWS KMS imported key — set Secret Hmac Key Encoding to match how the key is stored so both sides sign with the same bytes:
| Encoding | How the key is interpreted |
|---|---|
Text (default) | The key value is used as raw UTF-8 text. Existing integrations keep signing exactly as before. |
Base-64 | The key value is Base-64 decoded to raw bytes before signing. |
HEX | The key value is hexadecimal decoded to raw bytes before signing. |
The encoding only changes how the stored key is decoded into signing bytes; the resulting X-Novu-Signature is still a hex-encoded HMAC-SHA256 of the raw request body.
Leave this set to Text unless your verification side requires binary key material. Changing the encoding on an existing integration changes the signatures Novu produces.
Email Webhook is marked beta in Novu. Treat it as a custom delivery bridge and monitor your endpoint health.
Next Steps#
Learn how to configure bcc, cc, and reply-to for your email notifications using email overrides
Learn how to send attachments with email notifications
Learn how to use different email provider integrations to be used to send emails