Create a lead
lead.name is required. Without pipeline_id / stage_id, the lead goes to your default pipeline and its first stage.
- New person in the same call: send a top-level
contact(withemail). It is created and linked to the lead. - Where the lead came from: send
lead.marketing_attributionwith UTM and ad fields (utm_source,utm_campaign,landing_page_url, …). - Notes:
lead.notesis a list of{ "title", "content" }items (title up to 500 characters, content up to 50,000). - Custom fields:
lead.custom_fieldsitems are{ "field_id", "value" }. Get IDs from Custom Fields.
Returns lead_id, plus contact_id / company_id when those were created. The new lead runs your organization’s automations like one created in the app.
Headers
licenseKey
appSecret
Request
This endpoint expects an object.
lead
Lead create payload (same as internal, plus optional marketing_attribution). Use lead.contacts to associate existing contacts by id. Use top-level contact to create a new contact (auto-linked).
contact
Optional contact create payload.
lead_contact_label
Optional label for the created contact on the lead (lead_contacts.label).
Response
Created
status
Response status
message
Human-readable success message
statusCode
HTTP status code
code
Custom application status code
data
Payload for this endpoint
Errors
422
Unprocessable Entity Error