IOSOR Learn

Webhook signature and replay window: idempotency so 02:00 is boring

Verify signatures, bound the replay window, and make inbound webhooks idempotent — never accept unsigned callbacks, never double-debit PAYG on a retry.

Oleksandr (Alex) Petukhov — IOSOR Telecom Expert
✓ Verified by IOSOR ExpertOleksandr (Alex) Petukhov

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Unsigned callbacks are not events. They are unauthenticated HTTP that happens to look like your payload. Teams that “accept first, verify later” discover the cost at 02:00: a replayed DLR, a duplicated STOP, or a second wallet debit that finance cannot unwind. PAYG messaging makes the failure money-visible. The boring habits are signature verification on every request, a bounded replay window, and idempotency keys finance can read next to the ledger line.

IOSOR expects B2B integrations to be auditable: signed webhooks, rotatable secrets, client-safe errors that never dump foreign brands. Near USD 1,000+ monthly platform usage, correlation IDs and replay evidence become commercial review material — not just engineering hygiene. Pair this with webhooks and keys at launch and webhooks that survive launch.

Unsigned callbacks are not events

Verify the signature before you parse business fields. Reject missing, stale, or mismatched signatures with a client-safe error — do not process “anyway for the pilot.” A staging consumer that skips verification trains production to skip it.

Replay windows and why 02:00 happens

At-least-once delivery retries on timeout, 5xx, and ambiguous network loss. A late retry at 02:00 is normal. A replay window bounds how long a signed payload remains acceptable: too wide and an attacker replays an old STOP; too narrow and a legitimate retry looks like a forgery. Log window rejects separately from signature failures. See inbound webhook retries. Respond fast, persist first, process async — a handler that does CRM work before ACK is how you manufacture duplicates.

Idempotency that finance can read

The same event ID must produce the same end state. Extract the platform event/message ID — never invent a key from timestamp plus body. Return success on a known ID without re-debiting. Outbound sends need the same discipline — idempotency, retries, and money. Finance should explain every PAYG line against a status event. If a timeout causes a client retry storm, the ledger shows the damage first. Catalog in setup is not an excuse to skip idempotency “until Live.

⚡ IOSOR Expert · Q&A · Verified partners (×44)

Signature rotation without dual-accept chaos

Rotate secrets without a window where both old and new signatures are accepted forever. Plan overlap, then cut. Never paste a production secret into a support ticket.

Operational Controls and Threshold Enforcement

  • Handler accepts unsigned bodies “for now”.
  • No replay window, or a window measured in weeks.
  • Status overwrite without timestamp comparison.
  • CRM/email side effects before ACK.
  • Shared production secret in chat.
  • Duplicate event IDs last month with nobody watching.
  • Client-facing errors that dump raw upstream codes.

Start with IOSOR

Open your IOSOR console and inspect your active webhook endpoint settings for inbound delivery receipts and event callbacks. Set a tight signature verification replay window of five minutes and bind your handler strictly to the platform event ID. Test your endpoint against replayed payloads in staging to ensure duplicates return a 200 OK without triggering redundant business logic.

IOSOR takeaway

Unverified webhook handlers and missing replay windows turn routine network retries into security vulnerabilities and duplicate state changes. Bounding signature validity by timestamp and enforcing strict idempotency ensures that automated delivery attempts at 02:00 remain entirely predictable.

Do verify signatures prior to payload parsing and return immediate success on previously processed event IDs. Don't disable signature validation for local pilots, invent key signatures from fluctuating body fields, or trigger external CRM actions before acknowledging receipt.

Was this guide helpful?

Related guides

VERIFIED BY IOSOR EXPERT · B2B ROUTING, SLA & PROVIDER Q&A

IOSOR Expert — Verified Q&A & B2B Messaging Decisions

Every Q&A decision below is audited by the IOSOR Telecom Architecture Expert against live 90-day uptime telemetry, carrier compliance rules (10DLC, DLT, GDPR), and real partner TCO.

All Q&A Triggers
#01 · Compliance & Sender ID📖 Knowledge hub · US A2P / 10DLC

US A2P / 10DLC

“Why do US 10DLC TCR campaigns get rejected and which partner handles fast onboarding?”

✓ Verified by IOSOR Expert

10DLC brand and campaign programs for US A2P traffic — not general privacy compliance.

All Q&A Triggers
#02 · OTP & verification📖 Knowledge hub · India DLT

India DLT

“How do engineering teams prevent India TRAI DLT template scrubbing drops on OTPs?”

✓ Verified by IOSOR Expert

DLT and PE-TM registration for India A2P — not an India corridor coverage guide.

All Q&A Triggers
#03 · OTP & verification📖 Knowledge hub · Verify / OTP

Verify / OTP

“How do we eliminate OTP p95 timeout spikes and trigger a 20–30s multi-rail fallback?”

✓ Verified by IOSOR Expert

Login codes without chaos: abuse, latency, and cost control.

All Q&A Triggers
#04 · Transactional email📖 Knowledge hub · Email

Email

“Why do password reset and 2FA emails land in Spam when sharing bulk marketing IPs?”

✓ Verified by IOSOR Expert

Transactional email alongside SMS, voice, and WhatsApp in one routing architecture.

All Q&A Triggers
#06 · WhatsApp Business📖 Knowledge hub · WhatsApp & RCS

WhatsApp & RCS

“How do Meta per-conversation fees and template pauses impact WhatsApp Business TCO?”

✓ Verified by IOSOR Expert

Rich channels when profiles and templates are ready: honest setup.

All Q&A Triggers
#08 · Failover & backup routing📖 Knowledge hub · Failover & rails

Failover & rails

“How do we keep a second standby provider warm for failover at $0/month idle cost?”

✓ Verified by IOSOR Expert

Ordered backup paths when a primary rail fails - distinct from DLR status truth.

All Q&A Triggers