Create contact

Create a contact with email, phone, organization and lifecycle stage.

POST https://cotlet.dev/api/v1/vtiger/contacts

write Confirm

Creates one contact, the same as + Add Contact in the Contacts module. It does not look for duplicates, so call list_contacts with query first. Returns the new record_id. Fields your Vtiger layout marks mandatory must be filled; a missing one fails with the field name. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_contact
NameTypeDescription
first_name string string First name.
last_name string required string Last name.
email string string Email address.
phone string string Phone number.
organization string string Organization name. An existing organization is linked.
lifecycle_stage string string Lifecycle Stage, for example Lead.
assigned_to string string Owner. Default: the signed-in user.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/vtiger/contacts \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"last_name":"last name"}'
Python
result = client.call("vtiger", "create_contact", {"last_name":"last name"})
Node.js
const result = await cotlet.call('vtiger', 'create_contact', {"last_name":"last name"});
CLI
cotlet call vtiger create_contact --data '{"last_name":"last name"}'

Example response

JSON

{
  "record_id": "1530",
  "name": "Mira Okafor",
  "email": "mira@okaforlegal.example",
  "lifecycle_stage": "Lead",
  "assigned_to": "Sam Rivera"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.