Secure API authentication for StateSet Commerce Network
sk_test_
Use for development and testing. Transactions are simulated and no real money moves.sk_live_
Use for production. All transactions are real and irreversible.Authorization
header:
1. Use Environment Variables
2. Implement Key Rotation
3. Use Separate Keys per Environment
4. Restrict Key Permissions
5. Monitor Key Usage
Plan | Requests/Second | Requests/Day | Burst Limit |
---|---|---|---|
Free | 10 | 1,000 | 20 |
Starter | 100 | 100,000 | 200 |
Growth | 1,000 | 10,000,000 | 2,000 |
Enterprise | Custom | Custom | Custom |
Error Code | Description | Solution |
---|---|---|
missing_api_key | No API key provided | Include Authorization header |
invalid_api_key | API key is invalid | Check key format and validity |
expired_api_key | API key has expired | Generate a new key |
insufficient_permissions | Key lacks required permissions | Use a key with proper permissions |
rate_limit_exceeded | Too many requests | Implement backoff and retry |
401 Unauthorized
403 Forbidden
Key Not Working