Skip to main content
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

string
required
The public ID of the project to create the lead in. You can find this in the LeadTrackr Dashboard under Settings.
object
required
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.