Skip to content
Support

My webhook signature doesn't match

Owner, AdminLast checked 25 November 20261 min readArticle ID: developers-signature-mismatch
On this page

If your signature never matches, you're usually hashing parsed JSON instead of the raw body, using the wrong secret, or the old header's formula.

What you see

Your endpoint works out the HMAC for a delivery, and it never equals the value in Skeduler's signature header, so you reject every delivery.

Why it happens

  1. You're hashing parsed JSON. Your framework parsed the body, and you turned it back into JSON before hashing. The bytes change (spacing, key order, escaping), so the signature does too.
  2. You're using the wrong secret. Each subscription has its own signing_secret. It isn't your app's client secret, and it isn't another subscription's secret.
  3. You're mixing up the two headers. X-Skeduler-Signature-V2 signs "<t>.<raw body>". The older X-Skeduler-Signature signs the body alone and starts with sha256=.
  4. Your clock is out. If you reject deliveries whose t is more than 5 minutes from your clock, as you should, a server clock that's wrong rejects good ones.

How to fix it

  1. Hash the raw request body, exactly as received. In Express, use express.raw({ type: "application/json" }) on the webhook route, not express.json(). In PHP, read php://input.

  2. Use the signing_secret from the answer you got when you created this subscription. If you've lost it:

    • subscribe again with the same event and URL, and Skeduler answers with the existing subscription and its secret, or
    • delete the subscription and subscribe again for a new secret.

    The web app doesn't show signing secrets.

  3. For X-Skeduler-Signature-V2 (t=<unix seconds>,v1=<hex>), work out HMAC-SHA256(secret, "<t>.<raw body>") as lowercase hex, and compare it to v1. If you check the older header, compare against the hex after sha256=. Use a constant-time comparison either way.

  4. Keep your server's clock in sync, for example with NTP.

The full steps, with Node and PHP code, are in Verify a webhook signature.

In this section