List conversation labels

Label categories with their sub-categories and which are mandatory.

GET https://cotlet.dev/api/v1/freshchat/conversation-labels

read

Returns the conversation labels an agent picks when resolving, with each category's sub-categories and whether a sub-category is mandatory. Use the names from here as label and sub_category in resolve_conversation. Only an Account Owner or Admin creates labels, in Admin > Conversation Labels.

Parameters

No parameters.

Request

cURL
curl https://cotlet.dev/api/v1/freshchat/conversation-labels \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("freshchat", "list_conversation_labels")
Node.js
const result = await cotlet.call('freshchat', 'list_conversation_labels');
CLI
cotlet call freshchat list_conversation_labels

Example response

JSON

{
  "labels": [
    {
      "label": "Feature Request",
      "sub_categories": [
        "Export to CSV",
        "Dark mode"
      ],
      "mandatory": false
    },
    {
      "label": "Bug Report",
      "sub_categories": [
        "Login error",
        "Payment error"
      ],
      "mandatory": true
    },
    {
      "label": "Happy Customer",
      "sub_categories": [],
      "mandatory": 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.