Active grants aggregated per entitlement per organization. Same visibility scoping as the grants report: owner organization and Super Admins see the whole fleet, other users only their hierarchy.
GET
/entitlements/stats
curl \
--request GET 'https://api.your-domain.com/api/entitlements/stats' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "entitlement stats retrieved successfully",
"data": {
"stats": [
{
"entitlement": "nsec-blacklist",
"organization_id": "akkbs6x2wo82",
"organization_name": "ACME S.r.l.",
"active_grants": 12
}
]
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}
Response examples (500)
{
"code": 500,
"message": "internal server error",
"data": {}
}