Skip to content

Sandbox vs Production ​

Sendivent has two environments. The environment is determined by your API key prefix.

API Key Prefixes ​

PrefixEnvironmentBase URL
test_*Sandboxhttps://api-sandbox.sendivent.com
live_*Productionhttps://api.sendivent.com

What's Different ​

SandboxProduction
Rate limit10 req/sec100 req/sec
Daily quota150Per plan

Data isolation ​

Shared across environments:

  • Integrations (channel configurations)
  • Senders (verified email addresses, phone numbers)

Separate per environment:

  • Events
  • Templates
  • Contacts

You'll configure events and templates twice — once for sandbox, once for production.

Push notifications (APNs) ​

Apple Push Notifications automatically uses the correct environment based on your API key:

API keyAPNs endpoint
test_*api.sandbox.push.apple.com (for development/TestFlight builds)
live_*api.push.apple.com (for App Store builds)

The same .p8 key works for both — no extra configuration needed. FCM and Expo have no sandbox distinction.

Webhooks ​

The webhook endpoint (webhooks.sendivent.com) is production-only. Channel integrations like Telegram bots register their webhook URL once and it handles traffic for both sandbox and production API keys.

Real delivery (no mock mode) ​

Both environments send actual notifications. If you use a real email with a test_* key, it will be delivered.

To avoid sending real emails during development:

  • Use your own email to verify delivery works
  • Use test@example.com (won't route anywhere)

When to Use Each ​

Use CaseEnvironment
Local developmentSandbox (test_*)
CI/CD testsSandbox (test_*)
StagingSandbox (test_*)
Production appProduction (live_*)

Switching Environments ​

Change both your API key AND base URL:

bash
# Sandbox (development)
SENDIVENT_API_KEY=test_your_key
SENDIVENT_API_URL=https://api-sandbox.sendivent.com

# Production
SENDIVENT_API_KEY=live_your_key
SENDIVENT_API_URL=https://api.sendivent.com

Common Mistakes ​

  • Wrong URL for key type — test_* keys only work with api-sandbox.sendivent.com
  • Real emails in sandbox — They WILL be delivered
  • Hardcoding keys — Use environment variables

See Also ​

Released under the MIT License.