curl -X GET "https://yoursite.com/api/knowledge_base/groups" \
-H "authtoken: YOUR_API_TOKEN"
Success-Response:
HTTP/1.1 200 OK
{
"data": [
{
"groupid": "3",
"name": "Billing & Payments",
"group_slug": "billing-payments",
"description": "Invoices, subscriptions and refunds",
"active": "1",
"color": "#28B8DA",
"group_order": "2"
}
],
"meta": {
"page": 1,
"per_page": 20,
"total": 5,
"total_pages": 1,
"has_more": false,
"current_page": 1,
"last_page": 1
}
}
Error-Response:
HTTP/1.1 404 Not Found
{
"status": false,
"message": "No data were found"
}