Parameters
No parameters required
This endpoint takes no path, query, header or body parameters.
Returns a paginated list of all organisations with active member counts. Supports fulltext search by name, slug, or description. Sorted by liveness — the latest member activity (MAX last_activity_date) descending, falling back to organisation inserted date, so active organisations float to the top and dormant ones sink. Each item carries an isMember flag indicating whether the calling admin has an active (non-blocked) membership in that organisation. Requires internal admin membership.
No parameters required
This endpoint takes no path, query, header or body parameters.
1 status code documented
itemsobject[]RequirednamestringRequiredOrganisation display name.
slugstringRequiredURL-friendly organisation identifier.
descriptionstring | nullRequiredOrganisation description.
emojistring | nullRequiredOrganisation emoji icon.
memberCountnumberRequiredNumber of active (non-blocked) members.
contactCountnumberRequiredNumber of contacts (shop__contact rows, excluding soft-deleted).
orderCountnumberRequiredTotal number of orders (shop__order rows).
lastActivityAtstringRequiredMost recent member activity timestamp (ISO-8601). Falls back to the organisation inserted date when there has been no member activity yet. Drives the list ordering.
isMemberbooleanRequiredTrue when the calling admin is an active (non-blocked) member of this organisation.
tariffobject | nullRequiredAssigned tariff summary. NULL when no tariff row exists for the organisation.
codestringRequiredTariff code from the catalogue (e.g. "free", "business").
effectivePriceCzknumberRequiredEffective monthly price in whole CZK. Custom override wins over the catalogue price minus discount.
activeTostring | nullRequiredPaid-until date (ISO-8601). NULL when the tariff has no expiry set.
aiSpendobjectRequiredRollup of the organisation's AI usage in ai__question — lifetime and rolling 30-day windows. Uses per-token SCD pricing with margin.
tokensLifetimenumberRequiredTotal AI tokens ever billed to this organisation (input + output combined).
tokensLast30dnumberRequiredAI tokens billed to this organisation in the last 30 days.
promptsLifetimenumberRequiredTotal number of AI prompts stored for this organisation.
promptsLast30dnumberRequiredNumber of AI prompts stored in the last 30 days.
costCzkLifetimenumberRequiredBizKitHub-side lifetime cost in CZK — per-token price from ai__model_price × margin_multiplier, converted USD→CZK at today's fixing.
costCzkLast30dnumberRequiredCost in CZK for the last 30 days, same formula as costCzkLifetime.
itemCountnumberRequiredTotal number of organisations matching the filter.
{
"items": [
{
"name": "example_name",
"slug": "example_slug",
"memberCount": 0,
"contactCount": 0,
"orderCount": 0,
"lastActivityAt": "example_lastActivityAt",
"isMember": false,
"aiSpend": {
"tokensLifetime": 0,
"tokensLast30d": 0,
"promptsLifetime": 0,
"promptsLast30d": 0,
"costCzkLifetime": 0,
"costCzkLast30d": 0
}
}
],
"itemCount": 0
}GET /bff/admin/organisation-list
curl -X GET "https://api.bizkithub.com/bff/admin/organisation-list" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY"All BizKitHub public API endpoints require authentication via API key.