The signature is the lowercase hexadecimal HMAC-SHA256 digest of:
Node.js Example
secrets. During a planned rotation, temporarily
pass both the new and previous secrets until the overlap expires.
Rotation Behavior
When you rotate a secret, the new secret is active immediately and the previous secret remains valid for 24 hours. During that overlap the signature header is:previous_secret_valid_until timestamp, remove the previous secret from your
receiver.
Safe Processing Order
- Read the raw request body.
- Validate the timestamp and signature.
- Parse the JSON.
- Deduplicate by the event
id. - Persist or enqueue the event.
- Return a
2xxresponse.