Webhook Signature
What Is a Webhook Signature?
A webhook signature is a cryptographic check that confirms a webhook request came from the expected software service and was not altered. A webhook sends an HTTP event notification, while its signature usually arrives in a request header.
How Webhook Signature Verification Works
Verify the request before your application trusts or acts on it.
- Keep the exact raw request bytes.
- Read the signature header and timestamp.
- Calculate the expected HMAC or verify the public-key signature.
- Use constant-time comparison or the provider's SDK.
- Reject failures, then safely record the event.
HMAC vs Public-Key Webhook Signatures
Providers choose one of two common signing approaches.
| Method | Receiver stores | Signing ability |
|---|---|---|
| HMAC | Shared secret | Either holder of the secret |
| Public key | Public key | Only the private-key holder |
Benefits of Verifying Webhook Signatures
Verification creates a safer boundary around an endpoint.
- Blocks forged event requests.
- Detects changed payloads.
- Protects automated actions.
Practical Limits of Webhook Signatures
A valid signature is necessary, not sufficient.
- Use HTTPS and secure secret storage.
- Reject stale timestamps to limit replays.
- Handle duplicate events with idempotency.
- Apply rate limits and authorization checks.
Webhook Signature Best Practices
Small implementation details determine whether verification works.
- Use the official verifier when available.
- Verify raw bytes before parsing or side effects.
- Rotate keys with an overlap period.
- Log safe metadata, not secrets or full payloads.
- Test valid, altered, stale, and duplicate deliveries.
Webhook Signatures in Emergent
Emergent can help build full-stack integrations that verify incoming events before processing them, including e-signature workflows. Explore related terms in the Emergent glossary to plan secure integrations.
on Emergent today

