Categories
Get Specific Category
Categories
Get Specific Category
This endpoint gets a specific category from your Knowledge Base.
curl --location --request GET 'https://www.pacekb.com/api/v2/categories/[id]' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
{
"success": true,
"data": {
"id": "<id>",
"name": "Getting Started",
"slug": "getting-started",
"order_by": 20,
"parent_id": "<id>",
"thumbnail_url": "https://pacekb.com/img.png",
"description": "Getting started with PaceKB is easy!",
"long_description": "<p>It's simple to get started with PaceKB</p>",
"icon_url": "https://pacekb.com/icon.png",
"language": null,
"language_parent": null
},
"newVersion": true
}
Response
Indicates whether the call was successful.
If there’s an error an accompanying error message will be visible
Category data
The unique ID of the category
The name of the category
The slug of the category
The numbered ordering priority of category
Parent ID of category (null = No parent assigned)
Image URL of category thumbnail
The short description of the category
The long description of the category
Image URL of category icon
The language code of the category (null = English)
ID of the English version of category (null = English copy)
Returns true if this is a copy into a new language that does not exist
curl --location --request GET 'https://www.pacekb.com/api/v2/categories/[id]' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
{
"success": true,
"data": {
"id": "<id>",
"name": "Getting Started",
"slug": "getting-started",
"order_by": 20,
"parent_id": "<id>",
"thumbnail_url": "https://pacekb.com/img.png",
"description": "Getting started with PaceKB is easy!",
"long_description": "<p>It's simple to get started with PaceKB</p>",
"icon_url": "https://pacekb.com/icon.png",
"language": null,
"language_parent": null
},
"newVersion": true
}
curl --location --request GET 'https://www.pacekb.com/api/v2/categories/[id]' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
{
"success": true,
"data": {
"id": "<id>",
"name": "Getting Started",
"slug": "getting-started",
"order_by": 20,
"parent_id": "<id>",
"thumbnail_url": "https://pacekb.com/img.png",
"description": "Getting started with PaceKB is easy!",
"long_description": "<p>It's simple to get started with PaceKB</p>",
"icon_url": "https://pacekb.com/icon.png",
"language": null,
"language_parent": null
},
"newVersion": true
}