Create lead
documentedCreate a new lead with optional nested data (contacts, addresses, custom fields).
POST /lead/Leadsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.close.com/api/v1/lead/" \
-X POST \
-H "Authorization: Basic {{CLOSE_API_KEY}}:" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name": "{{$lead_name}}", "title": "{{$title}}", "emails": [{"email": "{{$lead_email}}"}], "phones": [{"phone": "{{$lead_phone}}", "type": "work"}], "description": "{{$description}}", "status_id": "{{$status_id}}", "custom.cf_v6S011I6MqcbVvB2FA5Nk8dr5MkL8sWuCiG8cUleO9c": "{{$custom_field_1}}"}'