IOSOR Learn
Sub-Account Spend Anomaly Alerts: Set Thresholds That Survive Real Traffic
How to set per-sub-account spend anomaly thresholds and escalation so runaway sends, misrouted traffic, or compromised keys are caught before the parent credit pool drains.
Lead Telecom & Routing Architect · Lausanne, CH
Set anomaly thresholds per sub-account on absolute spend rate, message velocity, and failure ratio, then escalate in two stages so a real burst is caught before it drains the shared credit pool. Validate that your partner exposes per-account usage in near real time first.
Why static monthly caps fail under real send traffic
A monthly cap only tells you the pool is empty once the damage is done. Real traffic is bursty: an OTP campaign at peak, a retry storm after a carrier incident, or a misrouted template can triple a sub-account's spend for twenty minutes and never breach a monthly ceiling until the last week. Thresholds must watch rate, not just cumulative amount.
The three metrics worth alerting on per sub-account
Spend velocity catches compromised keys and sudden campaign errors: track USD per minute and compare to the trailing weekly maximum. Message velocity catches runaway retry loops that inflate cost even when per-message price is fixed. Failure ratio catches misrouted traffic: a template or sender mismatch often shows a DLR failure spike before spend climbs, because carriers reject at handoff.
Two-stage escalation that survives on-call reality
Stage one is a soft alert to the sub-account owner through webhook and dashboard, with no automatic action beyond a warning banner and a spend checkpoint. Stage two, triggered if the anomaly persists past a short grace window or crosses a hard ceiling, throttles the sub-account's send rate or pauses it. Keep the hard ceiling at a level where the parent pool keeps at least a day of normal traffic after the pause.
What to verify before you trust a threshold
Confirm that the partner reports per-sub-account usage at a granularity of minutes, not hours, and that the webhook pushes the event with the sub-account ID and the metric that breached. Check DLR receipt timing: if receipts lag by more than a few minutes, the failure-ratio alert will be late and should be paired with a spend-velocity guard instead.
Threshold configuration worksheet
Write down for each sub-account: baseline spend per minute, baseline messages per minute, expected DLR failure ratio, the anomaly band multiplier, the grace window, the hard ceiling, and the named owner. Review weekly and after any incident. Keep the bands in version control alongside the sub-account definition so changes are auditable.
Start with IOSOR
Use the Decision Brief to compare partner routes on per-account usage granularity, webhook delivery, and alerting scope before you commit thresholds. Open the partner comparison brief and run the checklist: confirm per-minute usage reporting, webhook payload fields and latency, sub-account-scoped throttle and pause, and thirty-day history for tuning.
Related: PAYG hold before first debit · Wallet stop-lines before production.
IOSOR takeaway
A monthly cap only tells you the pool is empty once the damage is done. Keep the bands in version control alongside the sub-account definition so changes are auditable (/tools/brief · DLR / webhook).
Was this guide helpful?
Related guides
- Sub-Account Webhook Signing Secrets: Isolation and Rotation Gates
Verify per-sub-account webhook signing secrets stay isolated, rotatable, and auditable without cross-tenant leakage, then compare partner routes via the Decision Brief.
- Sub-Account Sender ID Registry Conflicts: Resolve Before Route Selection
Detect and resolve alpha-tag collisions across sub-accounts before provisioning routes, so carrier rejection and DLR ambiguity never reach production traffic.
- Sub-Account Sender ID Registration and Ownership Verification Gate
Ops gate for sub-account sender ID registration: verify carrier validity, ownership attestation, and collision-free routes before enabling outbound SMS.












