Skip to navigation

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 (with email). It is created and linked to the lead.
  • Where the lead came from: send lead.marketing_attribution with UTM and ad fields (utm_source, utm_campaign, landing_page_url, …).
  • Notes: lead.notes is a list of { "title", "content" } items (title up to 500 characters, content up to 50,000).
  • Custom fields: lead.custom_fields items 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

licenseKeystringRequired
appSecretstringRequired

Request

This endpoint expects an object.
leadobjectRequired

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).

contactobject or nullOptional
Optional contact create payload.
lead_contact_labelstring or nullOptional<=255 characters

Optional label for the created contact on the lead (lead_contacts.label).

Response

Created
statusstring
Response status
messagestring

Human-readable success message

statusCodeinteger
HTTP status code
codestring
Custom application status code
datamap from strings to any or list of any or string or double or boolean or nullOptional
Payload for this endpoint

Errors

422
Unprocessable Entity Error