Getting Started
Sandbox and live mode
How sandbox mode differs from live, and how to graduate your team.
Every team starts in sandbox. Sandbox lets you build and test the full API without verifying a domain first and without any risk of reaching real customers.
Test keys (sk_test_…) always run in test mode, even after your
team goes live. Point your staging environment at a test key and it
can never send a real message to a customer, however it is set up.
What’s different in test mode
Test mode applies when your team is in sandbox, or when you call the API with a test key.
| Behaviour | Test mode | Live key on a live team |
|---|---|---|
| API endpoints | Same. | Same. |
Email from address | The ZevSend default sender, onboarding@zevsend.dev. | Any address on your approved domains. |
| Email recipients | People on your team only. | Anyone. |
| SMS and WhatsApp | Simulated. Recorded and reported, never delivered to a phone. | Delivered. |
| Verification codes | Not delivered. Returned as test_code in the response. | Delivered. |
| Brand fields | Your team name, marked (sandbox). | Your approved brand details. |
| Webhook events | Fire as normal. | Fire as normal. |
| Charges | Free. Emails still count toward your plan’s allowance. | Billed as usual. |
Every message in test mode carries "sandbox": true in API
responses and webhooks, and is marked as a test in your dashboard.
Who you can email in test mode
In test mode you can email the people on your team: anyone you’ve invited to the team in the dashboard, using the email address they sign in with. Invite a teammate from Settings → Members and you can send to them straight away.
Sending to anyone else is refused with 403 and the code
recipient_not_verified, so nothing leaves the platform.
Testing text messages
SMS and WhatsApp sends in test mode go through the full flow: we
validate the request, render your template, record the message and
fire your webhooks with status sent. The only step we skip is
handing it to a phone network, so there is no charge and no real
phone receives it.
Verification codes work the same way. Because the code is never
delivered, the start response includes it as test_code, so you
can call the check endpoint and test your whole flow end to end.
Going live
To switch to live mode you’ll need to:
- Verify at least one domain. This is the brand identity
we’ll use as the
fromfor email and the brand context for SMS and WhatsApp. - Submit your brand details. Customer support email, legal name, and a support URL. These are what we use to keep ZevSend a trustworthy place to receive a message from — and what recipients see when they ask “who is this?”.
- Request a go-live review. From the dashboard, click Go live. We review and either approve or come back with questions.
Once approved, create a live key from API keys for production traffic. Your test keys keep working, and stay in test mode, so your staging environment keeps running without ever reaching customers.
Switching keys at runtime
Use sk_test_ and sk_live_ keys to choose test mode or live
explicitly. Your code never needs to branch on anything else: the
key decides the mode.
const apiKey =
process.env.NODE_ENV === 'production'
? process.env.ZEVSEND_LIVE_KEY
: process.env.ZEVSEND_TEST_KEY; Updated at, Saturday, October 31, 2026