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
string
required
The public ID of the project to create the lead in. You can find this in the LeadTrackr Dashboard under Settings.
object
Contact information for the lead.
object
Attribution and tracking data. At least one of
userData or attributionData must contain data.object
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.object
Device and browser information. Used to improve attribution accuracy for GA4 and Meta integrations.
string
Channel flow tracking value (UTM journey). Also accepted as
lt_channelflow.string
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
string
A description of the result. Either
"Lead created successfully" or "Lead updated successfully".number
The ID of the created or updated lead.
string | null
The unique identifier for the lead, or
null if not provided.