License API#
Read-only view of the current tenant’s Cube license + active-user count.
- Endpoints:
GET /api/v1/license— full rowGET /api/v1/license/summary— compact view for dashboards
- Auth:
[Authorize] - Jira: BFC-29
- Legacy source:
MICSSYS(single-row config),aspmnx_ActiveUsers
Flow#
flowchart LR
Req[GET /license/summary] --> Svc[LicenseService]
Svc --> M[MICSSYS<br/>LicExpDate, LicKey, ...]
Svc --> A[COUNT aspmnx_ActiveUsers]
M & A --> Resp[200 { key, expirationDate,<br/>activeUsers, allowedUsers }]Response — summary#
{
"success": true,
"data": {
"companyName": "Manex Corp",
"licenseKey": "****-****-****-1234",
"expirationDate": "2027-06-30",
"daysUntilExpiration": 279,
"activeUsers": 42,
"allowedUsers": 100
}
}Rules#
- License key masked to last 4 chars in
/summary. Full key visible in/licensefor admins only (currently gated by[Authorize]— a future BFC-32 sibling should requiremod_admin). activeUsers=COUNT(*) FROM aspmnx_ActiveUsers. Session cleanup is a legacy responsibility; Cube 2.0 does not GC this table.