API Keys
Learn how to create, manage, and secure your API keys.
Creating API Keys
API keys authenticate your requests to the Slice API. Create them from your dashboard.
- Navigate to API Keys in your dashboard
- Click "Create API Key"
- Enter a descriptive name (e.g., "Production Server")
- Optionally set an expiration date
- Copy the key immediately - it's only shown once!
Warning: API keys are sensitive credentials. Store them securely and never commit them to version control.
Security Best Practices
- Use environment variables to store API keys
- Use different keys for development and production
- Rotate keys periodically
- Set expiration dates when possible
- Revoke compromised keys immediately
- Monitor key usage in audit logs
Key Management
You can view all your API keys, see when they were last used, and revoke them from your dashboard.
See Authentication for more details.