curl --location --request GET 'https://www.pacekb.com/api/v2/categories' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
{
"success": true,
"data": [
{
"other_categories_categories_language_parentTocategories": [
{
"language": "fr"
}
],
"id": "<id>",
"name": "Getting Started",
"order_by": 200,
"users_categories_created_byTousers": {
"username": "benj",
"first_name": "Ben",
"last_name": "Jenkins",
"email_address": "ben@example.com"
},
"article_relationships": {
"added_date": "2023-06-05T20:42:23.805Z",
"category_id": "<id>",
"id": "<id>",
"site_id": "<id>",
},
"other_categories_categories_parent_idTocategories": {
"name": "PaceKB"
}
}
]
}
This endpoint gets all categories from your Knowledge Base.
curl --location --request GET 'https://www.pacekb.com/api/v2/categories' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
{
"success": true,
"data": [
{
"other_categories_categories_language_parentTocategories": [
{
"language": "fr"
}
],
"id": "<id>",
"name": "Getting Started",
"order_by": 200,
"users_categories_created_byTousers": {
"username": "benj",
"first_name": "Ben",
"last_name": "Jenkins",
"email_address": "ben@example.com"
},
"article_relationships": {
"added_date": "2023-06-05T20:42:23.805Z",
"category_id": "<id>",
"id": "<id>",
"site_id": "<id>",
},
"other_categories_categories_parent_idTocategories": {
"name": "PaceKB"
}
}
]
}
Show Toggle object in array
curl --location --request GET 'https://www.pacekb.com/api/v2/categories' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <api_key>' \
{
"success": true,
"data": [
{
"other_categories_categories_language_parentTocategories": [
{
"language": "fr"
}
],
"id": "<id>",
"name": "Getting Started",
"order_by": 200,
"users_categories_created_byTousers": {
"username": "benj",
"first_name": "Ben",
"last_name": "Jenkins",
"email_address": "ben@example.com"
},
"article_relationships": {
"added_date": "2023-06-05T20:42:23.805Z",
"category_id": "<id>",
"id": "<id>",
"site_id": "<id>",
},
"other_categories_categories_parent_idTocategories": {
"name": "PaceKB"
}
}
]
}