Authentication

Learn how to authenticate with the LeadRoute API.

All API requests must be authenticated using an API key. Include your key in the Authorization header.

Getting your API key

  1. Go to SettingsAPI
  2. Click Generate API Key
  3. Copy and store your key securely

Using your API key

curl https://leadroute.dev/api/v1/leads \
  -H "Authorization: Bearer sk_live_abc123..."
  -H "Content-Type: application/json"

API key types

  • Live keys (sk_live_) - Production use
  • Test keys (sk_test_) - Development/testing

Security best practices

  • Never expose API keys in client-side code
  • Use environment variables
  • Rotate keys periodically
  • Use test keys for development