Technical

Brevo webhook signature mismatch and changing list IDs: fixes

Intermittent Brevo webhook signature failures often come from verifying a re-serialized body instead of the raw bytes, or from a proxy altering the payload. Log the raw body and headers, verify against them, recreate the webhook if failures persist, and look up lists instead of trusting stored IDs.

Sohail HussainSohail Hussain10 min read

Short answer

  • Verify the signature against the exact raw bytes of the request body, never a parsed and re-stringified copy; most intermittent mismatches come from the receiving side.
  • Stop hardcoding list IDs. Look lists up through the API by name at runtime, and fail loudly when a lookup returns zero or two matches.
  • If failures persist with clean evidence, recreate the webhook, then send Brevo support raw bodies, headers and timestamps.

A team on a public SaaS community forum reported this in September 2025: Brevo webhook payload signatures stopped validating on some deliveries, a list ID changed, and two lists appeared to share one ID. They also said support was unhelpful. The query that lands people here is usually some version of "brevo webhook body signature mismatch list ids changed."

I can't confirm a Brevo-side cause for any of this, and I won't claim one. Those reports are anecdotal. What follows are checks that isolate the cause, plus ways to make your integration survive either outcome. Treat the two problems separately: the signature issue and the list ID issue may not be related.

As of November 2026, confirm the current signing and authentication options in Brevo's own webhook documentation. I'd rather you read the live docs than trust my memory of a header name or algorithm.

Why it happens

Causes are listed roughly from most to least common.

  1. Hashing a re-serialized body. An HMAC is computed over exact bytes. If your framework parses the JSON and you hash the re-stringified object, key order, whitespace, unicode escaping and number formatting can differ from what was signed. Payloads with accents, emoji or escaped slashes may fail while plain ones pass, which looks random.
  2. Something between Brevo and your code changes the body. A CDN, WAF or API gateway can rewrite, decompress or re-encode it.
  3. Mixed secrets across instances. A load balancer sends some requests to an older instance that still has the previous secret, common after a rotation.
  4. Retries across a rotation. A delivery retried later can arrive after you rotated a secret.
  5. A genuine vendor-side change or bug. Possible, not known. You only get to this conclusion with evidence from the steps below.

For list IDs, the usual explanations are mundane:

  • A list was deleted and recreated, which gives it a new ID.
  • Your code compares a folder ID with a list ID. If you read from different endpoints, the same integer can legitimately appear for both kinds of object.
  • You use more than one Brevo account, with an API key from each, and the numbers overlap.
  • Someone merged or renamed lists in the dashboard.
SymptomLikely causeFirst fix
Fails only on payloads with accents or emojiRe-serialized body hashedHash raw bytes
Fails on a fraction of requests, by instanceOld secret on one nodeAlign secrets, redeploy
Fails after adding a proxy or gatewayBody rewritten in transitCompare against a bare capture endpoint
Fails only on retried eventsSecret rotated in betweenAccept both secrets briefly
Stored list ID points to the wrong listDeleted and recreated, or folder vs listLook up by name at runtime
Two lists show the same ID in one accountUnknown; possibly folder/list mix-upSave raw API responses, contact support

Step-by-step fixes

Fix 1: Verify the signature against the raw body

Capture the raw body before any middleware touches it. In Express, for example:

import express from "express";
import crypto from "crypto";

const app = express();

// Raw bytes for this route only; do not use express.json() here.
app.post("/webhooks/brevo", express.raw({ type: "*/*" }), (req, res) => {
  const raw = req.body; // Buffer
  const received = req.get("x-your-signature-header") || "";
  const expected = crypto
    .createHmac("sha256", process.env.WEBHOOK_SECRET)
    .update(raw)
    .digest("hex");

  const a = Buffer.from(received);
  const b = Buffer.from(expected);
  const ok = a.length === b.length && crypto.timingSafeEqual(a, b);

  if (!ok) {
    console.error("signature mismatch", { len: raw.length });
    return res.status(401).end();
  }
  const payload = JSON.parse(raw.toString("utf8"));
  // ...handle payload
  res.status(200).end();
});

The header name, algorithm and encoding are placeholders; use whatever your Brevo setup documents. The pattern is what matters: raw bytes in, constant-time compare, parse only after the check passes.

Raw-body middleware order

If a global JSON parser runs before your webhook route, the raw bytes are already gone. Register the raw-body handler for this route first, or exclude the route from the global parser.

Fix 2: Rule out the path between Brevo and your code

If you verify raw bytes and still see failures, point a throwaway endpoint (any request-capture service, or a bare server with no middleware) at the same webhook and compare the bytes with what your production handler saw. Also check for body-size or charset settings that truncate or transcode large payloads.

If the capture endpoint verifies cleanly and production does not, the cause is yours. If both fail on the same deliveries, you have evidence worth sending to Brevo.

Fix 3: Log raw bodies for every failure

You can't debug what you didn't keep. For at least a few weeks, store for each failed verification:

  1. The raw body (base64 if it may contain odd bytes).
  2. All request headers.
  3. Your computed signature and the received one.
  4. A UTC timestamp and your server instance ID.

Then look for a pattern: only batched events, only one event type, only bodies above a certain size, only one instance. A pattern tells you whether to fix your handler or escalate. Mask personal data in these logs; they will contain email addresses.

Fix 4: Recreate the webhook

If the raw-body check is correct and failures persist, recreate the webhook in Brevo: delete it, create a new one with a fresh secret or credential where available, and update your receiver at the same moment. Do it during low traffic, because events sent in the gap may be lost or delayed. If your setup allows it, keep the old endpoint accepting both secrets for a short overlap.

This is a blunt step and only helps if the old configuration was the problem, so do it after logging is in place, not before.

Fix 5: Stop trusting stored list IDs

Whatever the cause, design so a changed ID can't misroute contacts.

  1. Resolve the target list at runtime from Brevo's lists API by name, cache it briefly, and refresh on failure.
  2. Treat names as a lookup key, not a guarantee: names can be edited or duplicated. Fail loudly if a lookup returns zero or more than one match instead of picking the first.
  3. Store both name and ID, and alert when the pair stops matching.
  4. Check which endpoint your code reads. Folders and lists are different objects, and their integers can overlap.
  5. If you can show two lists in one account returning the same ID from the lists API, save the raw responses with timestamps. That is a genuine anomaly worth escalating.

Fix 6: Make handlers idempotent

Key each event on a unique identifier from the payload (or a hash of the raw body) so replays and retries don't double-process. Webhooks are best-effort notifications, so plan for missed and repeated events; our email API and webhooks guide covers the pattern.

Choosing how much to depend on it

SituationWhat I'd do
Failures disappear after the raw-body fixKeep Brevo; keep the logging
Failures persist with clean capture evidenceRecreate the webhook, then escalate with logs
Webhooks drive billing, access or compliancePoll Brevo's API as a reconciliation job in addition to webhooks
Critical flow (password reset, receipts, order mail)Route through a separate sender so one vendor issue can't stop it
Lists keep driftingResolve by lookup, alert on duplicates

For critical mail, separating it from marketing is good practice anyway; see transactional vs marketing emails. If bounce and unsubscribe events feed your suppression list, keep that list in your own system too, so a dropped event can't re-mail someone who opted out.

Checklist before you escalate

  • The handler hashes raw bytes, not a re-serialized object.
  • The same secret is live on every instance.
  • A bare capture endpoint was tested against the same webhook.
  • Raw bodies, headers and timestamps are saved for at least three failures.
  • List lookups use the lists API and check for zero or multiple matches.
  • You compared folder IDs and list IDs, and checked for multiple Brevo accounts.

Prevent a repeat

Alert on the failure rate, not single failures; a spike tells you something changed. Keep secrets in one place so rotations hit every instance. Re-run your capture-endpoint test after any proxy, gateway or framework upgrade. And write a small nightly job that compares the lists you expect with what the API returns, so drift shows up within a day, not after a campaign has gone to the wrong audience.

If nothing works

Contact Brevo support through your account's help channel. Generic tickets get generic replies, so send:

  • Webhook ID, account ID and the endpoint URL.
  • Three or four failed deliveries with raw body, headers and UTC timestamps.
  • Proof the same payload verifies on a bare capture endpoint (or doesn't).
  • For lists: the API request, the full response showing the duplicate or changed ID, and when you first saw it.

Ask a specific question about byte-identical payloads and what changed on a given date. Here is a message you can adapt:

Subject: Webhook signature mismatch on some deliveries, account {account-id}

Webhook ID: {webhook-id}
Endpoint: {endpoint-url}

Since {date, UTC}, some deliveries fail signature verification. Our handler
hashes the raw request body. A bare capture endpoint receiving the same
webhook {verifies / also fails} on the same deliveries.

Attached: 4 failed deliveries with raw body, headers and UTC timestamps.

Question: is the signed payload byte-identical to what is delivered, and did
anything change in webhook signing or delivery on or around {date}?

Separately: the lists API returned ID {id} for both "{list-name-1}" and
"{list-name-2}" at {timestamp UTC} (response attached).

Common questions

Can I just skip signature verification while I debug?

Only on a private, temporary endpoint, and not in production. An unverified webhook endpoint accepts forged requests from anyone who finds the URL.

Should I match lists by name or by ID?

Use names for lookup and IDs for the API calls that follow, and verify that the pair still matches. Neither is trustworthy alone, which is why the check should fail loudly on zero or duplicate matches.

Do I need to leave Brevo over this?

Not on this evidence. If failures vanish after the raw-body fix, the cause was on your side. If they persist with clean capture evidence and support can't explain them, routing critical mail through a separate sender is a reasonable hedge before any bigger move.

Will recreated webhooks replay missed events?

I can't confirm that. Assume events sent during the gap may be lost or delayed, and reconcile through Brevo's API afterward.

technicalbrevo
Share this article
Sohail Hussain

Sohail Hussain

Founder & CEO at Mailneo

Building Mailneo — AI-powered email marketing for growing businesses.

Related Articles

Technical

Email marketing charges by contacts: why inactive ones add up

Many email platforms bill by how many contacts you store, not by who opens. An import with a long tail of dormant addresses can push you into a higher tier overnight. Prune inactive contacts before importing, then compare per-contact plans against per-send plans using your real monthly send volume.

Sohail Hussain|8 min read
Technical

Apollo API enrich returns demo leads ("Bill Gates"): checks

If Apollo's enrichment API returns demo records such as "Bill Gates" and uses no credits, the request is probably not being handled as a live, authenticated enrichment call. Check the key type, the endpoint, the host and how the key is sent, then give Apollo support a timestamped example if it persists.

Sohail Hussain|8 min read
Technical

Etsy AWeber Integration Cancelled: Build a Buyer List Safely

Etsy ended its AWeber integration, and copying buyer emails from orders into a list was never allowed without consent. Build the list with an opt-in lead magnet, a QR code on your package insert, and a link from your shop, then email only people who signed up themselves.

Sohail Hussain|9 min read
Technical

HubSpot CSV Import Duplicates: Clean Shared info@ and Blank Emails

HubSpot matches contacts on email address, so blank emails and shared addresses like info@ cause duplicates or merge different people. Before importing, pick a dedupe key, move blank and shared-email rows to a separate tab, standardize phones, tag the batch, and test 20 rows.

Sohail Hussain|11 min read

Ready to supercharge your email marketing?

Start sending smarter emails with AI-powered campaigns. No credit card required.

Get Started Free