Docs

Webhook Security

Raw-body verification, freshness, and secret rotation.

Require HTTPS, cap the raw request body at 256 KiB, verify all signed fields with timing-safe comparison, reject timestamps outside ±300 seconds, and deduplicate event IDs. Retain old secrets by key ID while old deliveries remain redeliverable.

Use the complete verifier and order validation. Authenticate the exact raw bytes before JSON business processing, validate the signed event type/identity and require event-level and order-level deduplication. Signature success alone does not bind the event to the right order.