Skip to content

Developers and integration

What is a webhook signature?

Definition

Webhook signature: A value computed with a secret both sides know, proving that a webhook really came from the sender and was not changed on the way.

Also known as: HMAC signature, signature verification

A webhook address is open to the internet: anyone who finds it can send it a request. A webhook signature is how you know that an incoming request really came from the expected sender and was not changed on the way. The sender signs the request with a secret only the two sides know, using HMAC, and sends the signature in a header; the receiver does the same calculation and compares the results.

The Standard Webhooks specification turns this into a common pattern. The signature is computed over the message ID, a timestamp and the raw body of the request. The timestamp lets the receiver reject requests that are more than a few minutes old, so a captured request cannot be replayed later. While a secret is being rotated, two signatures can be sent together and the receiver accepts either.

The most common mistake is to parse the body as JSON and write it out again before checking the signature: a single extra space breaks it. The comparison should also use a constant-time function. Sample code is in our webhook signature post.

Example

A shop's server gets a "new message" notification from a messaging service. Its code signs the raw body and headers again with the shared secret and compares the result with the signature in the request. If they don't match, it rejects the request with 401 and touches no record.

In UPPU

UPPU's webhooks are signed with Standard Webhooks (HMAC-SHA256). The webhooks page shows how to verify the signature.

Sources

Last checked: 22 October 2026

  1. Standard Webhooks specification (accessed 22 October 2026)

Posts that use this term

Talk to us

All terms