Authentication

Learn how to authenticate your API requests

API Keys

API keys are the primary method for authenticating with the Content Hub API. Each API key is associated with a specific account and has its own permissions.

Authorization: Bearer YOUR_API_KEY

Include your API key in the Authorization header of every request.

Generating API Keys

  1. Log in to your Content Hub account
  2. Navigate to Settings → API Keys
  3. Click "Generate New Key"
  4. Give your key a descriptive name
  5. Copy and store your key securely

Security Best Practices

  • Never commit API keys to version control
  • Use environment variables to store keys
  • Rotate keys regularly
  • Use different keys for development and production
  • Revoke keys immediately if compromised