name, email, phone, or custom is required.
Required Fields
At least one of the following must be provided:name- Lead nameemail- Lead email addressphone- Lead phone numbercustom- Custom JSON string with additional data
Attribution Fields
Include these fields to track lead sources and enable proper attribution:- Google Ads:
gclid(Google Click ID) - Facebook/Meta:
fbc(Facebook Click ID),fbp(Facebook Browser ID) - Google Analytics:
ga4cid(Client ID),ga4sid(Session ID) - LinkedIn:
li_fat_id(First-Party Ad Tracking ID) - Microsoft Ads:
msclkid(Microsoft Click ID) - UTM Parameters:
utm_source,utm_medium,utm_campaign
Consent Management
For GDPR compliance, include consent status:ad_storage- Cookie consent for ad storagead_user_data- Cookie consent for ad user dataad_personalization- Cookie consent for ad personalizationanalytics_storage- Cookie consent for analytics storage
true, false, or string values like "granted", "denied".
Example Usage
Basic lead creation
Lead with full attribution
Response
Returns the created lead ID:Authorizations
API key for authentication
Body
Lead data
At least one of name, email, phone, or custom is required
Lead name
"Jane Smith"
Lead email
"jane@example.com"
Lead phone number
"+1234567890"
Google Click ID
"abc123"
Facebook Click ID
"fb.1.123456789"
Facebook Browser ID
"fb.1.987654321"
Google Analytics 4 Client ID
"ga4_client_id"
Google Analytics 4 Session ID
"ga4_session_id"
LinkedIn First-Party Ad Tracking ID
"linkedin_id"
Microsoft Click ID
"microsoft_click_id"
UTM source parameter
"google"
UTM medium parameter
"cpc"
UTM campaign parameter
"winter_sale"
Referrer website
"https://example.com"
Page path where lead was captured
"/contact"
Cookie consent: ad_storage
false
Cookie consent: ad_user_data
false
Cookie consent: ad_personalization
false
Cookie consent: analytics_storage
false
Custom JSON string for additional data
"{\"custom_field\": \"value\"}"
Notes about the lead
"Interested in enterprise plan"
Response
Lead created successfully
"lead_123"