> For a complete page index, fetch https://developer.close.com/llms.txt

# lead_id is now optional when creating a Contact or Opportunity

We have added the ability to [create a contact](https://developer.close.com/api/resources/contacts/create) without
specifying an existing lead_id. Doing so will create a new
[lead](https://developer.close.com/api/resources/leads/list), named after the contact, and associate the new
contact with this new lead.

We have also added the ability to
[create an opportunity](https://developer.close.com/api/resources/opportunities/create) without specifying an
existing lead_id. Doing so will create a new [lead](https://developer.close.com/api/resources/leads/list) with no
name (it will appear in the Close UI as "Untitled"), and associate the new
opportunity with this new lead.

This allows integrations to create contacts and opportunities without needing to
create leads first.