rb_test_*) route every send to a simulator that:
- Does not contact real carriers.
- Does not debit your wallet.
- Does fire webhooks with realistic delivery receipts.
- Does return deterministic outcomes based on magic numbers.
Creating a test key
In the dashboard: API keys → Create → check “test mode”. The returned key is prefixedrb_test_*.
Keep live and test keys in separate env vars. Convention:
ROBASE_API_KEY for prod, ROBASE_TEST_KEY for dev/CI.Magic numbers
Send to specific numbers to simulate outcomes:
Any other E.164 number defaults to the
…0001 behavior (fast delivery).
Example: exercise every branch
Webhooks in test mode
Test-mode sends fire webhooks exactly the same way live sends do. Register a test webhook at a tunnel URL (ngrok, cloudflared) while developing, then swap for your production URL when you ship. The event payload includestest_mode: true in the data object so you can branch or log differently: