Environments
Environments
Section titled “Environments”LMIF provides two environments for development and production use.
Environment URLs
Section titled “Environment URLs”| Environment | Base URL |
|---|---|
| Sandbox | https://sandbox.api.lookmaimfamous.com |
| Production | https://api.lookmaimfamous.com |
Sandbox Environment
Section titled “Sandbox Environment”The sandbox environment is for development and testing. It:
- Uses test API keys (
lmif_test_xxx) - Contains mock celebrity data for testing
- Does not trigger real enforcement
- Has lower rate limits
- Resets weekly
Test Identities
Section titled “Test Identities”The sandbox includes pre-configured test identities:
| Name | Policy | Notes |
|---|---|---|
Test Celebrity A | BLOCK_ALL | Always blocked |
Test Celebrity B | MONETIZE | 10% royalty rate |
Test Celebrity C | LICENSE | Requires license |
Test Celebrity D | OPEN | No restrictions |
Test Corporation | BLOCK_COMMERCIAL | Commercial blocked |
Testing Webhooks
Section titled “Testing Webhooks”In sandbox mode, you can trigger test webhook events:
// Trigger a test webhook eventawait lmif.webhooks.test({ eventType: 'box.created', endpoint: 'https://yoursite.com/webhooks/lmif',});curl -X POST https://sandbox.api.lookmaimfamous.com/v1/lmif/webhooks/test \ -H "Authorization: Bearer lmif_test_xxx" \ -H "Content-Type: application/json" \ -d '{ "eventType": "box.created", "endpoint": "https://yoursite.com/webhooks/lmif" }'Production Environment
Section titled “Production Environment”The production environment is for live integrations:
- Uses production API keys (
lmif_live_xxx) - Contains real protected identities
- Triggers real enforcement actions
- Higher rate limits
- Full SLA coverage
Going to Production
Section titled “Going to Production”Before switching to production:
- Complete sandbox testing - Test all policy types
- Implement webhook handlers - Handle all required events
- Set up monitoring - Track API errors and latency
- Request production access - Apply via dashboard
- Compliance review - We verify your implementation
SDK Configuration
Section titled “SDK Configuration”import { LMIFClient } from '@lookmaimfamous/lmif';
// Sandbox (default when using test key)const sandboxClient = new LMIFClient({ apiKey: 'lmif_test_xxx',});
// Production (automatic when using live key)const productionClient = new LMIFClient({ apiKey: 'lmif_live_xxx',});
// Explicit environment overrideconst client = new LMIFClient({ apiKey: process.env.LMIF_API_KEY, environment: process.env.NODE_ENV === 'production' ? 'production' : 'sandbox',});Environment-Specific Behavior
Section titled “Environment-Specific Behavior”| Feature | Sandbox | Production |
|---|---|---|
| Identity checks | Mock data | Real data |
| Webhooks | Test triggers | Real events |
| Grace periods | 1 day (accelerated) | 30 days |
| Enforcement | No real action | Real enforcement |
| Rate limits | 60/min | Plan-based |
| Data retention | Weekly reset | Permanent |