List labels
The labels set up in your Trengo, with colour, channels and whether they are archived.
GET https://cotlet.dev/api/v1/trengo/labels
read
Returns the labels from Settings > Settings > Labels. Use the name in add_label, remove_label and the label filter. A label belongs to the channels chosen when it was created, and archived labels are marked so the agent does not add them.
Parameters
No parameters.
Request
curl https://cotlet.dev/api/v1/trengo/labels \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("trengo", "list_labels") const result = await cotlet.call('trengo', 'list_labels'); cotlet call trengo list_labels Example response
{
"labels": [
{
"name": "Billing",
"color": "#E5484D",
"channels": [
"Support email"
],
"archived": false
},
{
"name": "Delivery",
"color": "#3E63DD",
"channels": [
"Support email",
"WhatsApp"
],
"archived": false
}
]
}