Create Lead
Create a Lead with optional contacts[] and addresses[] payload.
Identity rule (PRD §10.1):
customer_type=commercial→business_namerequired.customer_type=residential→ at least onecontacts[]item with first_name + last_name.
Primary-flag invariants: at most one is_primary=true per contacts[] / addresses[].
Headers
Request
Required: residential|commercial
Required: Lead source UUID
Optional: Free-text inquiry description
Required when addresses[] present. String max 120.
Optional: contact email. Valid email max 255.
Optional: contact phone. String max 64.
Required when addresses[] present. String max 120.
Conditional: pairs with contacts[0][first_name]. String max 120.
Conditional: required for residential leads when no other contact provides one. String max 120.
Optional: bool - at most one primary per contacts[]. Defaults to first row when none flagged.
Optional: bool - at most one primary per addresses[]. Defaults to first row when none flagged.
Optional: phone|email|sms
Required when addresses[] present. String max 32.
Required when addresses[] present. String max 255.

