IOSOR Learn
API Webhook Signature Verification During Route Failover
How partner signing keys, replay windows, and IP allowlists behave on failover mid-campaign, and why silent signature mismatches hide lost DLRs.
Lead Telecom & Routing Architect · Lausanne, CH
When a route fails over mid-campaign, the webhook signer changes with the route, so replay windows, key IDs, and IP allowlists must be re-verified per partner — otherwise a silent signature mismatch drops DLR evidence without any error on your side.
Why failover breaks signature verification
Signing is usually bound to the partner route, not to your endpoint. Primary and standby routes may use different HMAC keys, clock skew budgets, and source IP ranges. On failover, in-flight retries and late DLR receipts arrive signed by the standby route, which your verifier has never seen.
Audit criteria before you commit volume
Test each candidate route against five measurable checks. First, key rotation: confirm key IDs are published in advance and old keys stay valid past your replay window. Second, replay window: compare the route timestamp tolerance with your verifier tolerance; skew beyond one minute is a silent-mismatch risk. Third, IP allowlist: verify source ranges for both primary and standby, and whether they change on failover.
Silent mismatches mask lost deliveries
A mismatch that returns 401 and is not retried looks identical to a delivery that never happened. To separate the two, log verification failures with route ID, key ID, timestamp delta, and source IP, then reconcile against your submitted message IDs on a short cycle. If mismatches spike while DLR volume drops, you have proof of masking rather than evidence of carrier loss.
Sender and template gates that interact with failover
Registration state does not fail over automatically. A sender ID approved on the primary route may be unmapped on the standby route, producing rejects that look like signature errors. Pre-verify sender registration and template approval on every candidate route, and confirm the standby returns the same error taxonomy for unregistered sender IDs.
Operate the checks continuously
Run signature verification as a scheduled probe: synthetic sends on both routes, signed receipt assertions, and comparison of key IDs against the published set. Log every probe result with route and timestamp so trends are visible before a campaign. Keep a runbook step for failover that includes rotating the verifier key set, checking IP allowlist deltas, and draining the dead-letter queue.
Start with IOSOR
Run the comparison checklist before committing volume. For each candidate partner route, record: signing key IDs and rotation notice period, replay window tolerance, primary and standby IP allowlist ranges, DLR receipt coverage for delivered, failed, and expired states, signed webhook p95 latency, and sender plus template gate status.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
Signing is usually bound to the partner route, not to your endpoint. Keep a runbook step for failover that includes rotating the verifier key set, checking IP allowlist deltas, and draining the dead-letter queue (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Webhook Signature Verification: Legacy Scheme Replay and Acceptance Gate
Audit inbound provider callbacks: decide when legacy HMAC schemes, skewed timestamps, and replay caches are safe to accept, and when to enforce a cutover gate.
- Verify MCC MNC Porting Lag Gate on Developers Routes Before Scaling
Check MCC MNC porting lag gates on developers routes before raising SMS volume, then compare verified partner routes in /tools/brief for your corridor.
- Sandbox-to-Production Webhook Replay Parity Gate for Messaging APIs
Test whether sandbox webhooks replay identical signed payloads, retry cadence, and DLR order as production — then gate the route via a partner comparison.












