Skip to main content
Most API endpoints require authentication via an API key sent in the X-API-Key header.

Getting your API key

  1. Go to your LeadTrackr Dashboard
  2. Open the project you want to connect
  3. Navigate to Settings and click API Integration in the sidebar
  4. Copy the API Key

Using your API key

Include the API key in the X-API-Key header with every request:
curl -X GET https://app.leadtrackr.io/api/leads/getLeads \
  -H "X-API-Key: your-api-key-here"

Endpoints without authentication

The Create Lead endpoint does not require an API key. It is designed for client-side use (e.g. from Google Tag Manager or browser scripts) and identifies the project via the projectId field in the request body.

Error responses

If the API key is missing or invalid, you will receive a 401 response:
{
  "message": "Missing X-API-Key header"
}
{
  "message": "Invalid API key"
}