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
| Name | Type | Description |
|---|---|---|
| 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 -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"}' result = client.call("vtiger", "create_contact", {"last_name":"last name"}) const result = await cotlet.call('vtiger', 'create_contact', {"last_name":"last name"}); cotlet call vtiger create_contact --data '{"last_name":"last name"}' Example response
{
"record_id": "1530",
"name": "Mira Okafor",
"email": "mira@okaforlegal.example",
"lifecycle_stage": "Lead",
"assigned_to": "Sam Rivera"
}