# API: Get knowledgebase categories

# getKBCategories

Get list of main knowledgebase categories

# Optional parameters

Parameter Description
brand_id If multibrand module is enabled, specify brand id to limit results to given brand
cid Id of category to get sub-categories of

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=getKBCategories

# PHP Samples

# Response

{
    "success": true,
    "categories": {
        "categories": [
            {
                "id": "1",
                "parent_cat": "0",
                "name": "First category",
                "description": "A regular entry"
            }
        ]
    },
    "call": "getKBCategories",
    "server_time": 1317712660
}
Last Updated: 1/2/2024, 3:19:45 PM