API Key Authentication
JobHive uses API key authentication to secure all API endpoints. Your API key must be included in theAuthorization header of every request.
Getting Your API Key
1
Access Your Dashboard
Log into your JobHive dashboard at app.jobhive.ai
2
Navigate to API Settings
Go to Settings → API Keys in the main navigation
3
Generate New Key
Click “Generate New API Key” and provide a descriptive name for identification
4
Copy and Store Securely
Copy your API key immediately - it will only be shown once. Store it securely in your environment variables.
Authentication Format
Include your API key in theAuthorization header using the Bearer token format:
Example Requests
API Key Types & Environments
Key Formats
JobHive API keys follow a consistent format for easy identification:| Environment | Format | Example |
|---|---|---|
| Development | jh_dev_* | jh_dev_abc123def456 |
| Production | jh_live_* | jh_live_xyz789ghi012 |
| Test Mode | jh_test_* | jh_test_mno345pqr678 |
Environment Separation
- Development Keys
- Production Keys
- Test Mode Keys
Purpose: Local development and testingFeatures:
- Access to sandbox environment
- Unlimited test interviews
- No billing or credit consumption
- Separate data isolation
- Cannot create production interviews
- Results not stored permanently
- Limited to development features
Security Best Practices
API Key Management
Secure Storage
Do’s
- Store in environment variables
- Use secret management systems
- Rotate keys regularly (quarterly)
- Use different keys per environment
Usage Protection
Don’ts
- Never commit keys to version control
- Don’t expose in client-side code
- Avoid logging keys in application logs
- Don’t share keys via email or chat
Environment Variable Setup
Key Rotation
Regular API key rotation is a security best practice:1
Generate New Key
Create a new API key in your dashboard before the current one expires
2
Update Applications
Deploy the new key to all applications and environments
3
Monitor Usage
Verify that all systems are using the new key successfully
4
Revoke Old Key
Delete the old API key from your dashboard once migration is complete
Error Handling
Authentication Errors
Handling Authentication Errors
API Key Permissions
Permission Scopes
API keys can be configured with specific permission scopes to limit access:| Permission | Description | Example Usage |
|---|---|---|
interviews:read | View interview data and results | Dashboard analytics |
interviews:write | Create and update interviews | Scheduling system |
interviews:delete | Cancel and delete interviews | Admin operations |
webhooks:read | View webhook configurations | Integration status |
webhooks:write | Create and manage webhooks | Event handling setup |
analytics:read | Access aggregate analytics | Reporting systems |
Creating Scoped Keys
1
Navigate to API Keys
Go to Settings → API Keys in your dashboard
2
Click Advanced Options
Select “Create Key with Custom Permissions” instead of default key
3
Select Permissions
Choose only the permissions your application needs
4
Set Expiration
Optionally set an expiration date for additional security
Rate Limiting & Quotas
Rate Limit Headers
All API responses include rate limiting information:Handling Rate Limits
Testing Authentication
Verify API Key
Test your API key with a simple request:Security Tip: Always test API keys in development before deploying to production. Use the account profile endpoint to verify both authentication and permissions.
