Create lead
documentedCreate a new Lead.
POST /LeadsLeadsno 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.{{$pod}}.insightly.com/v3.1/Leads" \
-X POST \
-H "Authorization: Basic {{INSIGHTLY_API_KEY}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"LAST_NAME": "{{$last_name}}", "FIRST_NAME": "{{$first_name}}", "TITLE": "{{$title}}", "EMAIL_ADDRESS": "{{$email}}", "PHONE_NUMBER": "{{$phone}}", "MOBILE_PHONE_NUMBER": "{{$mobile}}", "WEBSITE_URL": "{{$website}}", "ADDRESS_STATE": "{{$state}}", "ORGANISATION_NAME": "{{$organization_name}}", "LEAD_SOURCE_ID": {{$lead_source_id}}, "LEAD_STATUS_ID": {{$lead_status_id}}, "LEAD_DESCRIPTION": "{{$lead_description}}", "OWNER_USER_ID": {{$owner_user_id}}, "CUSTOMFIELDS": [ {"FIELD_NAME": "{{$custom_field1_name}}", "FIELD_VALUE": "{{$custom_field1_value}}"}, {"FIELD_NAME": "{{$custom_field2_name}}", "FIELD_VALUE": "{{$custom_field2_value}}"} ] }'