IOSOR Learn

Stale Webhook Endpoint Replay Safety During Provider Migration

Decide if legacy webhook endpoints can replay or re-emit events after cutover without duplicating downstream actions, then compare partner webhook and DLR semantics.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Legacy webhook endpoints can replay safely after cutover only when every re-emitted event carries a stable idempotency key and downstream handlers deduplicate on it; otherwise stale replays duplicate SMS actions, DLR state changes, and OTP confirmations. Verify this before decommissioning the old endpoint.

Map replay surfaces before cutover

Inventory every event class the legacy endpoint can re-emit: inbound SMS, DLR receipts, OTP delivery confirmations, STOP and Verify OK callbacks. For each class, record the payload shape, the identifier the old provider used, and whether that identifier survives a replay unchanged.

Test idempotency keys against real DLR receipts

Do not trust documentation alone. Capture a sample of real DLR receipts from the legacy endpoint, replay them twice into a staging handler, and confirm the second pass is a no-op. Check that the idempotency key is derived from provider message id plus event type, not from arrival timestamp or request hash, because timestamps change on replay.

Gate replay by sender and template state

Replay safety is not only about keys. A stale webhook may re-emit events for senders or templates that were retired during migration, and the new handler may reject or misroute them. Confirm that sender identity and template version are part of the event payload and that the handler resolves them against the current registry rather than the legacy one.

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

Measure webhook latency and replay windows

Stale endpoints often replay on a delay, so latency matters. Measure the p95 and p99 delivery gap between the legacy endpoint and the new one for the same event class. If the legacy replay window exceeds the downstream dedupe retention period, duplicates become possible even with correct keys. Set the replay window shorter than the dedupe retention, and record both numbers in the cutover checklist.

Compare partner webhook and DLR semantics

Partner behavior differs on retry counts, DLR receipt timing, and whether re-emitted events keep the original message id. Compare verified partner routes for your channel and corridor in the Decision Brief tool at compare partner routes before you lock the replay policy. Record each partner's retry schedule, DLR latency, and idempotency guarantees next to your replay matrix.

Start with IOSOR

Run this checklist before allowing any legacy replay: confirm a stable idempotency key exists for every event class; replay real DLR receipts twice and verify the second pass is a no-op; test retired sender and template events and confirm they are recorded as stale; measure p95 and p99 replay latency and keep the replay window shorter than dedupe retention; and compare partner webhook and DLR semantics for your corridor in the Decision.

Related: PAYG hold before first debit · Wallet stop-lines before production.

IOSOR takeaway

Inventory every event class the legacy endpoint can re-emit: inbound SMS, DLR receipts, OTP delivery confirmations, STOP and Verify OK callbacks. Record each partner's retry schedule, DLR latency, and idempotency guarantees next to your replay matrix (/tools/brief · DLR / webhook).

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