Test mode
Create a Test key (it starts with smt_). Everything works the same, but nothing is sent: a simulator moves each
message through the normal states within a second or two and fires the same webhooks, with "test": true.
| To | Result |
|---|---|
5000 0001 |
failed, error_code: INVALID_NUMBER |
5000 0002 |
expired |
5000 0003 |
sent, never delivered |
| any other Mauritian mobile | delivered |
POST /v1/otpwith a test key returns the code astest_code, so automated tests can verify it.- Test messages do not count toward quotas or usage. Cap: 2000 per project per day.
- The Mauritius-only rule still applies, so your validation behaves like production.
Use test keys in development, CI and with AI coding agents. Switch to a live key (smk_) for production.