Leads
Create Server-Side Lead
Create a lead from your backend with API key authentication.
POST
This endpoint is designed for server-side integrations. It requires an API key sent via the
X-API-Key header.
If a lead with the same uniqueEventId already exists, it will be updated instead of duplicated.
Request body
The public ID of the project to create the lead in. You can find this in the LeadTrackr Dashboard under Settings.
Contact information for the lead.
Attribution and tracking data. At least one of
userData or attributionData must contain data.Form submission data. You can include any additional custom fields — they are stored as-is.Any additional fields you include (e.g.
formCustomField1, campaign, source) are passed through and stored as-is.Device and browser information. Used to improve attribution accuracy for GA4 and Meta integrations.
Channel flow tracking value (UTM journey). Also accepted as
lt_channelflow.A user-provided identifier to link this lead to your own system (e.g. your CRM lead ID or form submission ID). Max 255 characters. Also accepted as
unique_identifier.Response
A description of the result. Either
"Lead created successfully" or "Lead updated successfully".The ID of the created or updated lead.
The unique identifier for the lead, or
null if not provided.