IOSOR Learn

WhatsApp RCS Message ID Deduplication Gate

Verify deduplication logic across WhatsApp and RCS to prevent duplicate billing and delivery. Confirm idempotency key handling, retry semantics, and webhook contract alignment via partner route comparison.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

Operators must ensure every outbound message across WhatsApp and RCS carries a stable idempotency key that survives retries, carrier handoffs, and webhook replays. Duplicate message IDs trigger double billing and recipient spam; the gate validates that each channel respects the same deduplication window and acknowledgment contract.

Idempotency Key Schema and Scope

Define a canonical key format combining E.164 recipient, channel identifier, template namespace, and a monotonic sequence or UUID. WhatsApp Business API uses message_id; RCS uses messageId or chatId depending on carrier. Map both into a single namespace so the deduplication store sees one logical key per user intent. Reject any submit where the key already exists within the configured TTL.

Deduplication Window and TTL Alignment

WhatsApp typically acknowledges within seconds; RCS carrier latencies can stretch to minutes. Set the deduplication TTL to cover the 99th percentile round-trip across both channels — usually 10–15 minutes. Expire keys only after final DLR (delivered/failed) or explicit webhook timeout. Do not evict on first ACK; a late carrier retry must still hit the gate.

Retry Semantics and Backoff Contract

Partner retries must preserve the original idempotency key. WhatsApp retries on 429/5xx with exponential backoff; RCS carriers may retry on transient SS7/SIGTRAN errors. Document each partner's max retry count, backoff curve, and whether they mutate the message payload. The gate blocks any retry that alters template parameters or media hashes while keeping the same key.

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

Webhook Contract and DLR Reconciliation

Normalize inbound webhooks to a common envelope: key, channel, status, timestamp, carrier_code, error_class. WhatsApp sends status callbacks; RCS delivers DLR via SMPP or HTTP. Reconcile both streams against the deduplication store. Flag any duplicate delivered events for the same key — these indicate a partner-side bug or a replay attack. Cross-reference with the DLR latency and read-receipt reconciliation guides.

Inbound Replay Defense and Signature Verification

Attackers can replay signed webhooks to force duplicate processing. Verify HMAC signatures per channel (WhatsApp X-Hub-Signature-256, RCS carrier-specific JWS). Enforce nonce or timestamp freshness windows. Store processed webhook hashes for the same TTL as the deduplication key. Reject replays before they reach the billing pipeline. See the inbound webhook replay defense article for implementation patterns.

Start with IOSOR

Compare verified partner routes for WhatsApp and RCS deduplication behavior using the partner route comparison. Confirm each route's idempotency key handling, retry limits, webhook signature method, and DLR latency SLA before routing production traffic.

Related: balance reservation before first debit · Wallet stop-lines before production.

IOSOR takeaway

Define a canonical key format combining E.164 recipient, channel identifier, template namespace, and a monotonic sequence or UUID See the inbound webhook replay defense article for implementation patterns (/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