Overview
The Admin API provides administrative functions for license management, user administration, and organization configuration. All endpoints require admin or owner role access.Authentication
All admin endpoints require:- Valid Bearer token authentication
- User must have
adminorownerrole in the organization - Automatic organization scoping
Endpoints
License Management
GET/api/admin/license
Get license usage statistics and tier information.
Response:
- Starter: €15/user/month, max 50 users
- Growth: €10/user/month, 50-500 users
- Enterprise: €7/user/month, 500+ users
- Green: <80% usage (healthy)
- Yellow: 80-89% usage (monitor)
- Orange: 90-99% usage (upgrade soon)
- Red: 100%+ usage (immediate upgrade required)
User Management
GET/api/admin/users
List all organization users with roles and activity status.
Response:
- Owner: Full access (billing, settings, all features)
- Admin: Administrative access (users, analytics, settings - no billing)
- Member: Standard access (create evidence, view own data)
- Active: Logged in within last 24 hours
- Inactive: No activity for 30+ days
- Suspended: Account temporarily disabled
Organization Settings
GET/api/admin/settings
Retrieve current organization settings.
Response:
/api/admin/settings
Update organization settings.
Request Body:
Configuration Options
Industry Categories
technology,healthcare,finance,educationretail,manufacturing,other
Organization Size
1-10,11-50,51-200,201-1000,1000+
Branding (Enterprise Tier)
- Custom brand colors (hex codes)
- Logo URL (secure HTTPS)
- White-label domain configuration
Business Rules
Access Control
- Role Verification: Automatic role checking on all admin endpoints
- Organization Scoping: All operations scoped to user’s organization
- Audit Logging: All admin actions logged for compliance
License Enforcement
- Real-time Tracking: Active user counts updated in real-time
- Grace Period: 5% buffer above tier limits
- Automatic Alerts: Email notifications at usage thresholds
- Hard Limits: API calls blocked when limits exceeded
User Management
- Inactive Detection: 30-day inactivity threshold
- Bulk Operations: Support for bulk user role updates
- Security: Secure password reset flows
- Compliance: GDPR-compliant user data handling
