Key Types
Live Keys
- Used in production
- Full logging and analytics
- Rate limits and spend caps apply
Test Keys
- Used in development
- Logged separately from production
- Useful for testing without polluting prod data
Creating Keys
- Navigate to your project
- Go to Settings → API Keys
- Click Create Key
- Choose Live or Test
- Add an optional description
- Click Create
Using Keys
Gateway
Include the key in theX-Muxx-Api-Key header:
SDK
Pass the key when initializing:Rotating Keys
To rotate a key without downtime:- Create a new key
- Update your application to use the new key
- Deploy the change
- Delete the old key
Deleting Keys
- Go to Settings → API Keys
- Find the key to delete
- Click Delete
- Confirm deletion
Key Security
Never commit keys to git
Never commit keys to git
Use environment variables or secret management systems.
Use different keys per environment
Use different keys per environment
Production and staging should have separate keys.
Rotate keys regularly
Rotate keys regularly
Rotate keys periodically, especially if team members leave.
Monitor for unauthorized use
Monitor for unauthorized use
Key Limits
| Plan | Keys per Project |
|---|---|
| Free | 2 |
| Pro | 10 |
| Enterprise | Unlimited |