LeadSail
Getting Started

API Keys

Create and manage API keys for external integrations.

API Keys

API keys allow external systems to authenticate with the LeadSail API without requiring a user session.

Creating an API Key

  1. Navigate to Settings in the sidebar
  2. Go to the API Keys section
  3. Click Generate API Key
  4. Copy the key — it will only be shown once

Using an API Key

Include the key in the X-API-Key header of your HTTP requests:

curl -X GET https://api.leadsail.app/api/v1/campaigns \
  -H "X-API-Key: your_api_key"

Security Best Practices

  • Store API keys securely — never commit them to source control
  • Rotate keys periodically
  • Use separate keys for different integrations so you can revoke individually
  • Monitor the activity log for unexpected API usage

On this page