Both environments serve the same API version at
/v1. The dashboard shows the address for the selected environment next to your keys at Developers, API keys.
What each environment keeps
Your organization keeps the same id in both environments. Everything below is kept separately, and nothing is copied between them.
The sandbox has no reset and no copy-to-production action. Set up production through its own API address and the dashboard’s Production environment.
API keys
A key belongs to one organization in one environment. Create it in the dashboard with that environment selected. Production keys start withsk_live_ and sandbox keys start with sk_test_. A key that starts with sk_ but not with sk_live_ or sk_test_ works in production only.
Send each key to the API address of its own environment. A key sent to the other environment returns 401 with environment_key_mismatch.
Selecting an environment in the dashboard changes only what the dashboard shows. Your application keeps the address and key you configure for it.
Headers
Every authenticated response carriesX-Scrip-Environment with the value production or sandbox. Check it to confirm which environment handled a request.
You can also send two optional request headers. Use them in shared configuration so that a deployment pointed at the wrong environment or organization fails before it changes anything:
Errors
These errors use the standard error body described on Errors:Rate limits
Each environment has its own rate limit for your organization. The same guidance applies to both. See Limits and durations.Simulations, trial programs, and MCP
- Simulations: Rule and configuration simulations roll back in both environments without changing live balances; see Testing.
- Trial programs in production: Webhook endpoints belong to the organization in each environment, not to one program, so a trial program in production still sends events to your live webhook endpoints. Use the sandbox to keep trial deliveries isolated.
- MCP server:
https://mcp.scrip.dev/mcpconnects to the sandbox, production, or both (defaulting to the sandbox); passenvironment: "production"when targeting production. See MCP environments.