# 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 |
with_subcategories | Set 1 - to get a sub categories as well. Do not use cid parameter with this one |
# 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
}