Skip to main content
The SDK supports two environments for development and production use.

Available Environments

Configuration

API Key Permissions

API keys have scoped permissions that control which environments they can access. A single key can have permissions for test, live, or both environments.
See API Keys for details on the {env}:{resource}: {operation} permission pattern.

Environment Properties

Check the current environment at runtime:

Test Environment Features

The test environment:
  • Uses separate, isolated data from production
  • May have relaxed rate limits for testing
  • Supports test data patterns for validation
Test data created in the test environment is completely isolated from production.

Live Environment Features

The live environment:
  • Contains real production data
  • Has production rate limits
  • Requires validated and verified API keys
Be careful when working in the live environment. Operations affect real data and may have regulatory implications.

Environment-Specific Logic

You can implement environment-specific logic:

Best Practices

Use Environment Variables

Match Environment to Deployment

Add Safety Checks

Log Environment