Horbit Developers
Categories

One category

GET
/v1/public/blog/categories/{category}

For its posts, call GET /posts?category={slug}.

Authorization

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

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

Path Parameters

category*string

Slug or id.

Response Body

Every category, flat — nest by parentId.

response?unknownapplication/json
curl -X GET 'https://api.horbit.ng/v1/public/blog/categories/community-news'
{  "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    }  ]}