Create case

Open a support case for a contact, with or without an email to the customer.

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

write Confirm

Creates one case from the + Add Case form. With notify_customer true it uses the Send Email tab, which emails the customer; the default false uses Add Case and sends nothing. Title and contact are required; group and assigned_to place it with a team or person. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: create_case
NameTypeDescription
title string required string Case Title.
contact_name string required string Contact the case belongs to.
priority enum enum Urgent, High, Medium or Low.
group string string Group (team) to assign the case to.
assigned_to string string Person in the group to assign it to.
description string string What the customer reported.
notify_customer boolean boolean true emails the customer through the Send Email tab. Default: false.

Request

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

Example response

JSON

{
  "record_id": "3320",
  "title": "Wrong address on invoice 1051",
  "status": "New",
  "priority": "High",
  "group": "Billing",
  "contact": "Luis Ortega",
  "customer_emailed": false
}

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.