GET
/
collections
/
tree
Get collection tree with articles of a help center
curl --request GET \
  --url https://helpcenter.thena.ai/collections/tree \
  --header 'x-api-key: <api-key>'
{
  "data": [
    {
      "_id": "682c334124b3b0d0d29b3c17",
      "name": "How to setup Thena",
      "slug": "8805124718-how-to-setup-thena",
      "parentId": null,
      "order": 0,
      "icon": "BookOpenIcon",
      "description": "Learn how to get started with our platform",
      "isProtected": false,
      "depth": 0,
      "articles": [
        [
          "<any>"
        ]
      ],
      "childCollection": [
        {
          "_id": "682c334124b3b0d0d29b3c18",
          "name": "Getting Started",
          "slug": "getting-started",
          "parentId": "682c334124b3b0d0d29b3c17",
          "order": 0,
          "icon": "BookOpenIcon",
          "description": "Learn how to get started",
          "depth": 1,
          "articles": [],
          "childCollection": []
        }
      ]
    }
  ],
  "message": "Collections fetched successfully."
}

Authorizations

x-api-key
string
header
required

Enter your API key (format: keyId.keySecret)

Query Parameters

helpCenterId
string
required

Help Center ID

Example:

"507f1f77bcf86cd799439011"

Response

200
application/json

Collections fetched successfully.

The response is of type object.