Horbit Developers
Categories

Every category, in the workspace's order

GET
/v1/public/blog/categories

Flat list; nest them with parentId if you show a tree. postCount counts published posts filed directly in the category.

Authorization

x-api-key
headerx-api-key<token>

A tenant API key — secret (htk_…) or, where allowed, publishable (hpk_…).

Response Body

Every category, flat — nest by parentId.

response?unknownapplication/json
curl -X GET 'https://api.horbit.ng/v1/public/blog/categories'
{  "status": true,  "message": "Categories retrieved successfully",  "data": [    {      "id": "9c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f",      "slug": "community-news",      "title": "Community News",      "color": "#3B9EFF",      "parentId": null,      "description": "Announcements and stories from the community.",      "image": {        "url": "https://cdn.horbit.ng/blog/community.jpg"      },      "sortOrder": 0,      "seo": {        "title": "Community News",        "description": "Announcements and stories from the community."      },      "postCount": 18    }  ]}