Create contact
documentedCreates a new contact (PERSON) or company (COMPANY) depending on the type field.
POST /dev/api/contactsContactsno 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://{{$domain}}.agilecrm.com/dev/api/contacts" \
-X POST \
-u {{$AGILECRM_EMAIL}}:{{AGILECRM_API_KEY}} \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"star_value": "{{$star_value}}", "lead_score": "{{$lead_score}}", "tags": ["{{$tag1}}","{{$tag2}}"], "properties": [ {"type": "SYSTEM", "name": "first_name", "value": "{{$first_name}}"}, {"type": "SYSTEM", "name": "last_name", "value": "{{$last_name}}"}, {"type": "SYSTEM", "name": "email", "subtype": "work", "value": "{{$email}}"}, {"name": "address", "value": "{{$address}}"}, {"name": "phone", "value": "{{$phone_work}}", "subtype": "work"}, {"name": "phone", "value": "{{$phone_home}}", "subtype": "home"}, {"name": "website", "value": "{{$website_youtube}}", "subtype": "YOUTUBE"}, {"name": "website", "value": "{{$website_linkedin}}", "subtype": "LINKEDIN"}, {"name": "website", "value": "{{$website_url}}", "subtype": "URL"}, {"name": "My custom field of type text", "type": "CUSTOM", "value": "{{$custom_text}}"}, {"name": "My custom field of type date", "type": "CUSTOM", "value": "{{$custom_date}}"}]}' \
-v -X POST