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 https://cotlet.dev/api/v1/freshchat/conversation-labels \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("freshchat", "list_conversation_labels") const result = await cotlet.call('freshchat', 'list_conversation_labels'); cotlet call freshchat list_conversation_labels Example response
{
"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
}
]
}