BizKitHub
DocsAPI ReferencePost/bff/post/status-count
getPostAdmin BFF

/bff/post/status-count

Returns the number of posts per computed status (draft / scheduled / published / private / archived) so the "Stav" filter chip can render (N) counts next to each option and sort by count DESC. Mirrors the exact CASE in selectPostList (soft-deleted → archived, future publish → scheduled, private visibility → draft/private depending on published_date, everything else → published) so the count and the grid rows stay consistent.

PostgetBffPostStatus-count

Parameters

No parameters required

This endpoint takes no path, query, header or body parameters.

Response schema

1 status code documented

200Success
itemsobject[]Required
Each array item:
status"draft" | "scheduled" | "published" | "private" | "archived"Required

Computed post status — mirrors resolvePostStatus.

postCountnumberRequired

Number of posts (kind=post) in the organisation with this computed status.

Example42

Response example

application/json
{
  "items": [
    {
      "postCount": 42
    }
  ]
}

Request example

GET /bff/post/status-count

get
curl -X GET "https://api.bizkithub.com/bff/post/status-count" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key