Replaying webhooks after an outage without tripping the 5-minute timestamp check

If you replay a stored webhook with its original signature hours later, it will fail. That is the timestamp check doing its job.

The fix is to verify the provider once when the event arrives, store it, and send it on later with a fresh signature.

Checked 9 Nov 2026.

Why old requests fail

Stripe and Standard Webhooks sign a timestamp along with the body. Stripe's libraries reject a request when that timestamp is more than five minutes old. Stripe also recommends NTP so clock drift doesn't cause false failures.

SolidHooks uses the same default on incoming events: toleranceSeconds is 300 (verification). A timestamp too far in the future fails too.

The window exists to stop someone replaying a captured request. Widening it to days so old headers pass weakens that protection.

The pattern that breaks

A home-made dead-letter queue often saves the raw body and the original Stripe-Signature header. After an outage, it sends both back into constructEvent.

The signature still matches the body, but the timestamp is hours old, so the library rejects it with "timestamp outside the tolerance zone". At SolidHooks ingest the same case shows up as timestamp_out_of_tolerance.

Developers run into this often. One r/node thread about a self-hosted DLQ talks about re-signing to get past Stripe's five-minute check. SolidHooks doesn't work that way.

Provider retries are already fresh

Stripe creates a new timestamp and signature every time it sends an event, retries included. So Stripe's own retries aren't the problem. The trouble starts when you resend a saved copy yourself.

Hookdeck's 5 Nov 2026 changelog describes the same approach on its gateway: it signs every attempt again, so a retry an hour later still passes a five-minute check.

What works

Give the provider an ingest URL that checks the signature on the raw body straight away. Store the verified event with its body and headers. Return a 2xx quickly and do the real work later.

When your app is back up, send the event on with a new signature. Your app checks that signature, which has a current webhook-timestamp, and ignores the hours-old provider header.

Deduplicate on stable ids. Use Stripe's event.id for business logic and webhook-id for each delivery.

The check below runs on your destination. SolidHooks deliveries use Standard Webhooks headers by default (delivery signatures). The secret is your destination's whsec_ value, not Stripe's.

typescript
import { createHmac, timingSafeEqual } from 'node:crypto';
 
const TOLERANCE_SECONDS = 300;
 
export function verifySolidHooksDelivery(
  secret: string, // whsec_...
  headers: Record<string, string | undefined>,
  rawBody: Buffer
): boolean {
  const id = headers['webhook-id'];
  const timestamp = headers['webhook-timestamp'];
  const signatures = headers['webhook-signature'];
  if (!id || !timestamp || !signatures) return false;
 
  const seconds = Number(timestamp);
  if (!Number.isInteger(seconds) || Math.abs(Date.now() / 1000 - seconds) > TOLERANCE_SECONDS) {
    return false;
  }
 
  const key = Buffer.from(secret.replace(/^whsec_/, ''), 'base64');
  const signed = Buffer.concat([Buffer.from(`${id}.${timestamp}.`), rawBody]);
  const expected = Buffer.from(`v1,${createHmac('sha256', key).update(signed).digest('base64')}`);
  return signatures.split(' ').some((entry) => {
    const given = Buffer.from(entry);
    return given.length === expected.length && timingSafeEqual(given, expected);
  });
}

Retry or replay

Start with a retry: POST /v1/deliveries/{id}/retry. It is free, reuses the same delivery and keeps the same webhook-id. If the delivery is still queued or throttled, you get a 409. Wait rather than looping.

Use a replay, POST /v1/events/{id}/replay, when you need new deliveries through the connections active now. Each replay is a new billable delivery with a new id. There is no bulk replay, so call it once per event and watch your quota.

Events older than your plan's retentionDays are purged and can't be retried or replayed (events, plans).

What to know about SolidHooks

The tolerance setting only applies to schemes that sign a timestamp: Stripe, Standard Webhooks, and HMAC with a timestampHeader. GitHub, Linear, Shopify and Paystack sign without one, so you won't see timestamp_out_of_tolerance for them.

SolidHooks doesn't re-sign with the provider's secret. If you turn on forwardHeaders for a destination, the original headers arrive renamed as x-forwarded-src-<name> (destinations). That forwarded signature is the old one, so don't verify against it.

Events that fail verification are never delivered and can't be replayed. Under a flood, the rejected log is a sample per source, so it may not show every 401.

FAQ

Get started

The Hobby plan is free for 10,000 deliveries a month. Point your provider at a SolidHooks source, check SolidHooks signatures on your destination, and retry before you replay. See replay for the difference.