Core Features
API Keys
Managing and using Pulpminer API keys
API Keys
API keys are unique identifiers that authenticate your requests to Pulpminer. This guide explains how to manage and use your API keys securely.
Getting Your API Key
- Sign in to your Pulpminer account
- Navigate to the API Keys section
- Your API key will be displayed in the dashboard
- Use the copy button to copy the key
Never share your API key publicly or commit it to version control. Keep it secure at all times.
Using API Keys
Header Format
Include your API key in the request header:
Example Requests
cURL
JavaScript
Python
Security Best Practices
1. Environment Variables
Store your API key in environment variables:
2. Access Control
- Keep keys secure
- Use different keys for different environments
- Rotate keys periodically
- Monitor key usage
3. Error Handling
Handle authentication errors gracefully:
Key Management
Viewing Keys
- Log into your dashboard
- Go to API Keys section
- View all active keys
- Check last used timestamp
Key Status
Monitor your keys:
- Active/Inactive status
- Usage statistics
- Associated endpoints
- Creation date
Error Responses
Invalid Key
Missing Key
Development vs Production
Development
- Use separate keys for testing
- Implement proper error handling
- Monitor usage patterns
- Test key rotation
Production
- Use secure key storage
- Implement retry logic
- Monitor for unauthorized use
- Regular key rotation
Key Storage
Recommended
✅ Environment variables ✅ Secret management services ✅ Encrypted configuration ✅ Key vaults
Not Recommended
❌ Source code ❌ Public repositories ❌ Unencrypted files ❌ Shared documents
Implementation Examples
Node.js Express
Python Flask
Best Practices
-
Security
- Use environment variables
- Implement proper encryption
- Regular key rotation
- Monitor for breaches
-
Implementation
- Validate keys server-side
- Handle errors gracefully
- Use retry logic
- Log authentication failures
-
Monitoring
- Track usage patterns
- Monitor for abuse
- Set up alerts
- Regular audits
Troubleshooting
Common Issues
-
Authentication Failures
- Verify key is correct
- Check header format
- Ensure key is active
- Check for typos
-
Implementation Problems
- Validate header format
- Check environment variables
- Verify request format
- Test error handling
-
Security Concerns
- Audit key usage
- Check for exposure
- Review access patterns
- Monitor for abuse
Need Help?
If you’re having API key issues:
- Verify your implementation
- Check the error response
- Review security practices
- Contact support at hello@pulpminer.com