Leads
Create Lead
Create a lead from a client-side source such as Google Tag Manager or a browser script.
POST
This endpoint is designed for client-side use. It does not require an API key — the project is identified by the
projectId field in the request body.
If a lead with the same uniqueEventId already exists, it will be updated instead of duplicated.
For server-side integrations where you control the backend, use Create Server-Side Lead instead — it requires an API key and provides stronger security.
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.