create_lead_complex
Create a lead together with a new contact, company, tags, stage, and pipeline in one request. Use it when records must be created together; it always creates new records, not links existing ones.
Instructions
Create a lead together with a new contact and/or company in one request (POST /leads/complex). Not idempotent: always creates new records, never links existing ones. Returns the created lead. Phone and email are stored only if the account has contact fields named or coded PHONE and EMAIL. Use create_lead if no contact or company is needed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Lead name (title of the deal). | |
| tags | No | Tag names to attach to the lead. Created if missing. | |
| stage_id | No | Stage for the lead. Get IDs from list_stages. | |
| pipeline_id | No | Pipeline for the lead. Get IDs from list_pipelines. | |
| company_name | No | Name of a new company to create and attach. | |
| contact_name | No | Name of a new contact to create. Phone and email are ignored unless this is set. | |
| contact_email | No | Contact email address. | |
| contact_phone | No | Contact phone number, e.g. +15551234567. |