IOSOR Learn

Sandbox vs production keys: a cutover checklist without double billing

A developer checklist for cutting over from sandbox to production API keys on a PAYG white-label platform — without double billing, blind spots, or leaked test traffic.

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

Lead Telecom & Routing Architect · Lausanne, CH

IOSOR Expert · Q&A

A test key left live in a production build is how a load test becomes a real invoice. A production key pasted into a staging environment "just to check" is how a staging bug reaches real recipients. This guide is for engineering leads running a PAYG white-label integration who need a clean sandbox-to-production cutover — one that does not double the bill or double the blast radius.

IOSOR keeps sandbox and production on separate keys, separate credit posture, and separate webhook targets by design — the cutover checklist below is what makes that separation actually hold once a real launch date is on the calendar. Near USD 1,000+ monthly platform usage, a botched cutover is not a bug report, it is a reconciliation project.

Why sandbox/production confusion becomes a billing incident

Mistake What happens.
Sandbox traffic left pointed at the production key after go-live Test messages billed as real sends.
Production key used in a load test Real.

What separates a sandbox key from a production key

  • Distinct credential identity, never a shared key with an "environment" query parameter.
  • Different rate limits and, where relevant, different destination reachability.
  • Separate webhook/callback targets so test events never reach production listeners.
  • Clearly different prefix or label in the dashboard — no guessing by staring at the string.

The cutover sequence that avoids double billing

  1. Freeze sandbox traffic and confirm nothing in production code still references sandbox credentials.
  2. Issue the production key with least-privilege scope for the actual send types in use.
  3. Point webhooks and callback URLs to production endpoints before the first real send.
  4. Run one real, deliberate send with the production key and verify the ledger line matches expectation exactly.
  5. Revoke or downgrade the sandbox key's ability to reach real destinations once cutover is confirmed.
⚡ IOSOR Expert · Q&A · Verified partners (×44)

Key rotation and revocation without downtime

Rotate on a schedule and immediately after any suspected leak — but stagger revocation: issue the new key, confirm live traffic on it, then revoke the old one. Simultaneous issue-and-revoke is how a mid-flight deploy loses authentication for real customer traffic.

Operational Controls and Threshold Enforcement

  • One shared key toggled by an environment variable instead of two real credentials.
  • Sandbox webhook signature checks disabled "to make testing easier".
  • No record of who issued which key or when.
  • Production cutover done without a rollback plan for the sandbox path.
  • Load tests run against the production key "just this once".

Start with IOSOR

Open the IOSOR console credentials panel to audit active API keys and verify that your test environment uses distinct sandbox prefixes. Update your callback routing in the portal to ensure production webhooks point to live endpoints before deploying your code. Run a single zero-rate ping using the new production key before revoking the legacy sandbox credentials.

IOSOR takeaway

Using identical credentials across environments or toggling behavior with a simple flag inevitably leads to synthetic load hitting production channels and unexpected billing events. Clear credential isolation with distinct prefixes and dedicated webhook endpoints guarantees that test traffic never consumes real balance or fires live events.

Do stagger key rotation by issuing new production credentials and confirming active message flow before revoking old keys. Don't rely on a shared API key toggled by a query parameter or disable webhook signature validation to shortcut staging tests.

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