# Example environment configuration for Braze MCP Write Server
# Copy this file to .env and update with your values
# ============================================================================
# REQUIRED CONFIGURATION
# ============================================================================
# Your Braze REST API key
# Get this from: Braze Dashboard → Settings → API Keys
BRAZE_API_KEY=your-api-key-here
# Your Braze REST API endpoint
# Examples:
# US-01: https://rest.iad-01.braze.com
# US-02: https://rest.iad-02.braze.com
# EU-01: https://rest.fra-01.braze.com
# Find yours at: Braze Dashboard → Settings → API Settings
BRAZE_BASE_URL=https://rest.iad-01.braze.com
# ============================================================================
# SAFETY CONFIGURATION
# ============================================================================
# Enable or disable write operations globally
# Set to "true" to enable write operations
# Set to "false" for read-only mode (default: false)
BRAZE_WRITE_ENABLED=true
# Allow writes to production workspaces
# DANGER: Only set to "true" if you know what you're doing
# Default: false (only demo/poc/test workspaces allowed)
BRAZE_ALLOW_PRODUCTION=false
# Comma-separated list of allowed workspace URL patterns
# Only workspaces with URLs containing these strings will allow writes
# Default: demo-,poc-,test-
BRAZE_ALLOWED_WORKSPACES=demo-,poc-,test-
# Enable dry run mode by default
# If true, all operations will be dry runs unless explicitly set to false
# Default: false
BRAZE_DRY_RUN_DEFAULT=false
# ============================================================================
# RATE LIMITING
# ============================================================================
# Maximum campaign/canvas sends per hour
# Helps prevent accidental API abuse
# Default: 1000
BRAZE_MAX_SENDS_PER_HOUR=1000
# Maximum catalog updates per minute
# Helps prevent hitting Braze rate limits
# Default: 100
BRAZE_MAX_CATALOG_UPDATES_PER_MIN=100