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
- Navigate to Settings in the sidebar
- Go to the API Keys section
- Click Generate API Key
- 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