API Key Management
Create and manage API keys for programmatic access
Creating an API Key
- Navigate to Settings → API Keys
- Click Create New API Key
- Enter a descriptive name
- Set permissions (read-only, read-write, admin)
- Click Generate Key
- Copy and store the API key securely (it won't be shown again)
API Key Permissions
- Read-Only: View aliases, domains, and logs
- Read-Write: Create, update, and delete resources
- Admin: Full access including account settings
Using API Keys
Include your API key in requests:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://msgs.global/api/v1/aliases
Managing API Keys
- View Usage: See when each key was last used
- Rotate Keys: Generate new keys and revoke old ones
- Set Expiration: Keys can expire automatically
- Delete Keys: Revoke access immediately
Security Best Practices
- Never commit API keys to version control
- Use environment variables to store keys
- Rotate keys regularly (every 90 days)
- Use read-only keys when possible
- Delete unused keys immediately