Authentication
Learn how to authenticate your API requests with Pulpminer
Authentication
Pulpminer uses API keys to authenticate requests. You must include your API key in all API requests to our server.
API Keys
API keys are unique identifiers that authenticate your requests to the Pulpminer API. Each user can have multiple API keys, and each key has full access to all endpoints associated with your account.
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
- Click the copy button to copy the key to your clipboard
Keep your API keys secure and never share them publicly. If a key is compromised, generate a new one immediately.
Making Authenticated Requests
To authenticate an API request, include your API key in the request headers:
Header Format
All API requests must include the following header:
Header | Value | Description |
---|---|---|
apikey | YOUR_API_KEY | Your Pulpminer API key |
Example Requests
Using cURL
Using JavaScript/Node.js
Using Python
Error Responses
If authentication fails, you’ll receive one of these error responses:
Missing API Key
Invalid API Key
Best Practices
-
Keep Keys Secure
- Never commit API keys to version control
- Use environment variables to store keys
- Rotate keys periodically for security
-
Key Management
- Generate different keys for different environments (development, production)
- Monitor key usage for unusual patterns
- Revoke and replace compromised keys immediately
-
Error Handling
- Always handle authentication errors gracefully
- Implement proper retry logic for failed requests
- Log authentication failures for monitoring
Rate Limiting
API requests are limited by your available credits:
- Each JSON generation uses 1 credit
- Each API endpoint request uses 2 credits
Monitor your credit usage in the dashboard to ensure uninterrupted service.
Need Help?
If you’re having authentication issues:
- Verify your API key is correct
- Check your available credits
- Contact support at hello@pulpminer.com