Skip to main content

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#

  1. Visit the Integrations page on Novu.
  2. Click Add a provider.
  3. Locate Email Webhook under the Email section and click Connect.
  4. Enter your:
    • Webhook URL (HTTPS endpoint that accepts POST JSON)
    • 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
  5. Confirm Active Integration is on. New integrations start active by default.
  6. Click Create Integration.

Request format#

For each email, Novu sends a POST request to your webhook URL with:

  • Content-Type: application/json
  • X-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:

FieldTypeDescription
idstringNovu message ID for this email.
tostring[]Recipient email addresses, including any to addresses added through email overrides.
fromstringSender email address.
senderNamestringSender display name.
subjectstringRendered subject line.
htmlstringRendered HTML body.
textstringPlain text body. Present only when set through email overrides.
ccstring[]CC addresses. Empty array when not set.
bccstring[]BCC addresses. Empty array when not set.
replyTostringReply-to address, when configured.
attachmentsobject[]Attachments passed in the trigger payload, when present.
headersobjectCustom email headers from email overrides. Empty object when not set.
customDataobjectCustom data from email overrides. Empty object when not set.
notificationDetailsobjectContains transactionId, workflowIdentifier, and subscriberId for the trigger that produced this email.
payloadDetailsobjectStep 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:

EncodingHow the key is interpreted
Text (default)The key value is used as raw UTF-8 text. Existing integrations keep signing exactly as before.
Base-64The key value is Base-64 decoded to raw bytes before signing.
HEXThe 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.

Note

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.

Note

Email Webhook is marked beta in Novu. Treat it as a custom delivery bridge and monitor your endpoint health.

Next Steps#