# What is a webhook signature?

A webhook signature is an HMAC hash of the request body sent in a header, so your server can prove an event is genuine. How WhatsApp webhooks are signed.

Canonical URL: https://superskope.com/glossary/webhook-signature
Updated: 2026-11-27
Author: SuperSkope

## Short answer

A webhook signature is a hash, usually HMAC-SHA256, that the sender computes over the request body with a shared secret and sends in a header. The receiver recomputes it to prove the event came from the sender and was not changed.

## How do you verify a webhook signature?



1. Read the raw request body before parsing the JSON.
2. Compute HMAC-SHA256 over it (or over timestamp + "." + body, if the sender signs a timestamp) with your shared secret.
3. Compare your result with the header value using a constant-time comparison.
4. Reject old timestamps, then deduplicate the event ID, because senders retry.

## How WhatsApp webhooks are signed



| Sender | Header | Signed with |
| --- | --- | --- |
| Meta Cloud API | X-Hub-Signature-256: sha256=<hex> | HMAC-SHA256 of the payload with your app secret |
| SuperSkope | X-SuperSkope-Signature: <hex>, X-SuperSkope-Timestamp | HMAC-SHA256 of timestamp + "." + body with your webhook secret; reject timestamps older than five minutes |

## Example

An attacker who finds your webhook URL posts a fake "payment received" message. Without a signature check your bot replies with a receipt. With it, the request fails verification and is dropped. Meta retries failed deliveries for up to 7 days, so a valid event can still arrive twice: verify, then deduplicate.

- [WhatsApp webhook guide](https://superskope.com/blog/whatsapp-webhook-guide)
- [Webhook retries without duplicates](https://superskope.com/blog/webhook-retries-without-duplicates)
- [Idempotency key](https://superskope.com/glossary/idempotency-key)

## Frequently asked questions

**What is a WhatsApp webhook?** An HTTPS endpoint on your server that WhatsApp, or a tool like SuperSkope, calls when something happens: a new message, a delivery status or a group change. It pushes events to you so you do not have to poll.

**Why must I use the raw body?** Parsing and re-serialising JSON can change spacing or key order, which changes the hash. Verify the exact bytes you received.

## Sources



- [Meta for Developers: Create a webhook endpoint](https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/create-webhook-endpoint)
- [Meta for Developers: Webhooks overview](https://developers.facebook.com/documentation/business-messaging/whatsapp/webhooks/overview)

## Continue reading

- [WhatsApp webhooks: setup, signatures, retries and troubleshooting](https://superskope.com/blog/whatsapp-webhook-guide)
- [What is an idempotency key?](https://superskope.com/glossary/idempotency-key)
- [Handle WhatsApp webhook retries without duplicate replies.](https://superskope.com/blog/webhook-retries-without-duplicates)
