{"templateId":"markdown","versions":[{"version":"v1","label":"v1","link":"/developer-resources/ingrid-api/v1/webhooks/replay-prevention","default":true,"active":false,"folderId":"570314d1"},{"version":"v1.preview","label":"v1.preview","link":"/developer-resources/ingrid-api/v1.preview/webhooks/replay-prevention","default":false,"active":true,"folderId":"570314d1"}],"sharedDataIds":{"sidebar":"sidebar-developer-resources/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Replay prevention"},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"replay-prevention","__idx":0},"children":["Replay prevention"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To prevent replay attacks, reject requests where ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-Ingrid-Timestamp"]}," falls"," ","outside your allowed clock-skew window, store recently seen event identifiers"," ","for at least the duration of that window, and reject any request whose event"," ","identifier has already been accepted."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["A typical implementation accepts only recent deliveries, for example within a"," ","five-minute window from ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["X-Ingrid-Timestamp"]},", and treats each event identifier"," ","as single-use within that window."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your system uses queues or retries internally, apply deduplication before"," ","starting downstream processing so that repeated webhook deliveries do not create"," ","duplicate side effects."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"receiver-recommendations","__idx":1},"children":["Receiver recommendations"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Recommended practices include a short acceptance window for old requests,"," ","deduplication keyed by event ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["id"]},", and audit logging for rejected or replayed"," ","requests."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"defense-in-depth","__idx":2},"children":["Defense in depth"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Even when request signing is in place, standard transport controls should"," ","remain in effect. Require HTTPS, restrict ingress where possible, enforce"," ","request size limits, and isolate webhook processing from public application"," ","traffic."]}]},"headings":[{"value":"Replay prevention","id":"replay-prevention","depth":1},{"value":"Receiver recommendations","id":"receiver-recommendations","depth":2},{"value":"Defense in depth","id":"defense-in-depth","depth":2}],"frontmatter":{"title":"Replay Prevention","description":"How to validate freshness and prevent duplicate Ingrid webhook deliveries","seo":{"title":"Replay prevention"}},"lastModified":"2026-09-16T11:59:37.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-resources/ingrid-api/v1.preview/webhooks/replay-prevention","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}