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
curl https://cotlet.dev/api/v1/trengo/labels \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("trengo", "list_labels")
Node.js
const result = await cotlet.call('trengo', 'list_labels');
CLI
cotlet call trengo list_labels

Example response

JSON

{
  "labels": [
    {
      "name": "Billing",
      "color": "#E5484D",
      "channels": [
        "Support email"
      ],
      "archived": false
    },
    {
      "name": "Delivery",
      "color": "#3E63DD",
      "channels": [
        "Support email",
        "WhatsApp"
      ],
      "archived": 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.