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.

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 typetest_* 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.