Skip to main content
GET
/
hierarchy
List folders
curl --request GET \
  --url https://api.closebot.com/hierarchy \
  --header 'X-CB-KEY: <api-key>'
[
  {
    "id": "<string>",
    "name": "<string>",
    "bots": [
      "<string>"
    ],
    "personas": [
      "<string>"
    ],
    "children": [
      "<string>"
    ]
  }
]

Authorizations

X-CB-KEY
string
header
required

CloseBot API Key Authorization

Response

Success

id
string | null

The ID of the folder

name
string | null

The name of the folder

bots
string[] | null

The list of bots in the folder

personas
string[] | null

The list of personas in the folder

children
string[] | null

The list of children folders