Skip to main content

API Key Authentication

JobHive uses API key authentication to secure all API endpoints. Your API key must be included in the Authorization 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 SettingsAPI 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 the Authorization 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 Separation

Purpose: Local development and testingFeatures:
  • Access to sandbox environment
  • Unlimited test interviews
  • No billing or credit consumption
  • Separate data isolation
Limitations:
  • 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:

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:
Expected successful response:
Security Tip: Always test API keys in development before deploying to production. Use the account profile endpoint to verify both authentication and permissions.
Important: API keys provide full access to your JobHive account. Treat them like passwords and follow security best practices to protect your data and prevent unauthorized usage.