GET
/
tag
/
tree
curl --request GET \
  --url https://demo.enneo.ai/api/mind/tag/tree
[
  {
    "id": 123,
    "name": "Complaint",
    "fullName": "Second Level: Complaint",
    "parent": 6,
    "reference": "ticket",
    "type": "skill",
    "visibility": "public",
    "color": "grey",
    "properties": {},
    "complexity": "moderate",
    "sla": 8,
    "priority": "do-not-change",
    "assignment": [
      "assignBySubchannel",
      "assignByCustomLogic"
    ],
    "testCase": {},
    "modifiedBy": "John Doe",
    "modifiedAt": "2024-08-29 14:38:12",
    "children": [
      {
        "id": 123,
        "name": "Complaint",
        "fullName": "Second Level: Complaint",
        "parent": 6,
        "reference": "ticket",
        "type": "skill",
        "visibility": "public",
        "color": "grey",
        "properties": {},
        "complexity": "moderate",
        "sla": 8,
        "priority": "do-not-change",
        "channels": [
          "email",
          "chat"
        ],
        "subchannels": [
          2,
          4
        ],
        "detectionDetails": {},
        "assignment": [
          "assignBySubchannel",
          "assignByCustomLogic"
        ],
        "testCase": {},
        "modifiedBy": "John Doe",
        "modifiedAt": "2024-08-29 14:38:12"
      }
    ]
  }
]

Authorizations

connect.sid
string
cookie
required

Cookie-based authentication

Query Parameters

type
enum<string>

Show only tags of a specific type. If not set, shows all tags.

Available options:
skill,
product,
brand,
customerProperty,
contractProperty,
other
includeDisabled
boolean

Also include disabled tags

Response

200
application/json
Successful operation
id
integer | null

Internal id, e.g. 123

Example:

123

name
string

e.g. "Complaint"

Example:

"Complaint"

fullName
string

The full name when not shown in a tree

Example:

"Second Level: Complaint"

parent
integer | null

The id of the parent tag. null if on root level. Can be created to create the tree structure of tags

Example:

6

reference
enum<string>

To what this tag can be assigned to

Available options:
ticket,
contract,
customer
Example:

"ticket"

type
enum<string>

Type of the tag

Available options:
skill,
product,
brand,
customerProperty,
contractProperty,
other
Example:

"skill"

visibility
enum<string>
default:public

Visibility of the tag

Available options:
public,
private,
disabled
Example:

"public"

color
enum<string>
default:grey

Color of the tag. Default is grey

Available options:
grey,
green,
red,
blue,
yellow,
purple,
orange,
teal
Example:

"grey"

properties
enum<string>[]

An array of strings that specify special properties. Currently only ['defaultSkill'], if this tag should be assigned if no skill was found

Available options:
defaultSkill
Example:
{}
complexity
string

The complexity of the tag

Example:

"moderate"

sla
number | null

SLA in business hours. So if we have business hours from 9-17h, an 8 hour SLA means ticket has to be solved within one day. NULL means no SLA is assigned.

Example:

8

priority
enum<string>

The priority of the tag

Available options:
do-not-change,
low,
medium,
high
Example:

"do-not-change"

assignment
enum<string>[]

Specifies how this tag is being assigned. The details in the assignment are specified in the settings page of the tag. So for example 'assignBySubchannel', 'assignByCustomLogic' means this tag is auto-assigned for certain subchannels, and using a custom logic defined in an executor.

Available options:
assignByChannel,
assignBySubchannel,
assignByTicketProperty,
assignByContractProperty,
assignByCustomerProperty,
assignByCustomLogic,
assignByAI
Example:
["assignBySubchannel", "assignByCustomLogic"]
testCase
object

Test case for the tag

modifiedBy
string

The user that last modified the tag

Example:

"John Doe"

modifiedAt
string

The date and time when the tag was last modified

Example:

"2024-08-29 14:38:12"

children
object[]

Tag object