The analytics and reporting surface of the Workforce Intelligence OS is split into four layers: per-user employee dashboards, manager team views, admin org-wide health panels, and a dedicated analytics router for deeper performance signals. Every endpoint is protected by a valid JWT and enforces role or permission checks before returning data. All paths are prefixed withDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Paramount-Intelligence/HR_Monitoring_System/llms.txt
Use this file to discover all available pages before exploring further.
/api/v1.
All analytics endpoints require an
Authorization: Bearer <token> header. Requests without a valid token receive 401 AUTH_ERROR.Employee Dashboard
GET /api/v1/dashboard/employee
Returns KPI cards and live session state for the currently authenticated employee. Any active role may call this endpoint.
Auth: Any authenticated user (get_current_user).
Current shift attendance summary.
Aggregated task counts for the user.
Active time-log state.
Human-readable session status, e.g.
"checked_in" or "not_checked_in".Total session minutes today.
Total logged productive minutes today.
Count of tasks currently in-progress.
Tasks due within 2 days.
Example Response
Manager Dashboard
GET /api/v1/dashboard/manager
Returns team attendance, pending approval counts, and overdue/blocked task summaries for the authenticated manager. Admins calling this endpoint see all active users as their “team.”
Auth: MANAGER or ADMIN role required.
List of team member attendance records for today.
Total pending leave requests + attendance corrections awaiting this manager.
Overdue tasks across the team.
Blocked tasks across the team.
Number of team members currently checked in.
Admin Dashboard
GET /api/v1/dashboard/admin
Returns organisation-wide health metrics including headcount, attendance breakdown, open alerts, and project counts.
Auth: ADMIN role required.
Total registered users.
Users with
ACTIVE status.Employees currently checked in.
Employees working from home today.
Employees in the office today.
Total org-wide pending approval decisions.
Number of unresolved system alerts.
Org-wide overdue task count.
Projects with
ACTIVE or APPROVED status.Example Response
Admin Analytics Dashboard
GET /api/v1/dashboard/admin/analytics
Delivers a rich analytics payload for the admin overview tab: KPIs, 7-day attendance trends, task and project statistics, per-department comparison, people exceptions, and recent activity.
Auth: ADMIN role required.
Top-level key performance indicators.
Daily attendance data points (typically last 7 days).
Counts by status:
total, completed, in_progress, on_hold, pending, rejected.Counts by status:
total, approved, pending, rejected, active.Per-department attendance rate and task completion metrics.
Employees flagged for exceptions (e.g. chronic late arrivals, blockers).
Latest system-wide activity log entries.
GET /api/v1/dashboard/admin/users-analytics
Returns the Users tab analytics payload: employee roster, role distribution, department distribution, attendance-by-department breakdowns, and individual performance metrics.
Auth: ADMIN or HR_OPERATIONS role required.
The current business date in
YYYY-MM-DD format (Asia/Karachi timezone).Always
"Asia/Karachi".High-level user counts.
Label/count pairs per role.
Label/count pairs per department.
Per-department attendance rate, headcount, late count.
Full employee activity roster including attendance status, task counts, and logged hours.
Per-employee performance index, attendance rate, and risk flags.
GET /api/v1/dashboard/admin/user-management-overview
Alias for admin/users-analytics. Returns the same UsersAnalyticsDashboard payload — provided for frontend route compatibility.
Auth: ADMIN or HR_OPERATIONS role required.
GET /api/v1/dashboard/admin/communication-analytics
Returns the Communication tab analytics payload: messaging activity, meeting summaries, announcement counts, and support ticket overviews.
Auth: ADMIN or HR_OPERATIONS role required.
Daily message volume trend (date + count).
Weekly meeting counts as label/count pairs.
Ticket distribution by status.
Latest active conversations with participant count and unread flag.
Scheduled meetings starting soonest.
Recently published announcements.
Recent open support ticket summaries.
GET /api/v1/dashboard/admin/projects-tasks-analytics
Returns the Projects & Tasks tab analytics payload: task status distribution, project progress, and detailed project/task tables.
Auth: ADMIN or HR_OPERATIONS role required.
Label/count pairs per task status.
Label/count pairs per task priority.
Project completion percentage distribution.
Task counts per department.
Project table rows with team size, status, and progress.
Task table rows with assignee, priority, status, and logged minutes.
Manager Analytics Tabs
GET /api/v1/dashboard/manager/overview
Returns the manager’s overview tab: KPIs, 7-day attendance trend, team health score, pending actions, and upcoming meetings.
Auth: MANAGER or ADMIN role required.
7-day team attendance trend (date, checked_in, late, absent).
Score (0–100), label, blocked/overdue counts, and active member count.
Prioritised list of actionable items with route hints.
Recent team activity log entries.
Team members flagged for exceptions.
Team meetings starting soonest.
GET /api/v1/dashboard/manager/team-analytics
Returns the manager’s Team tab: per-member attendance, workload distribution, task completion metrics, and the employee roster and performance tables.
Auth: MANAGER or ADMIN role required.
Team headcount, checked-in count, late count, on-leave count, WFH count, and high-workload member count.
Per-member attendance label/count pairs.
Task workload per team member.
Completed-task counts per member.
Daily logged-hours trend over the last 7 days.
Full activity roster for direct reports.
Per-member performance index and risk flags.
GET /api/v1/dashboard/manager/approvals-analytics
Returns the manager’s Approvals tab: pending leave requests, pending attendance corrections, and weekly approval throughput.
Auth: MANAGER or ADMIN role required.
Counts of pending leaves, WFH requests, attendance corrections, pending EODs, approvals this week, and rejections this week.
Leave requests awaiting this manager’s decision.
Attendance correction requests awaiting decision.
GET /api/v1/dashboard/manager/projects-tasks-analytics
Returns the manager’s Projects & Tasks tab, scoped to the manager’s direct reports.
Auth: MANAGER or ADMIN role required.
Returns the same ProjectsTasksAnalyticsDashboard schema as the admin version, filtered to the manager’s team scope.
GET /api/v1/dashboard/manager/eod-reports-analytics
Returns the manager’s EOD & Reports tab: EOD submission status, productivity trend, and per-member report rows.
Auth: MANAGER or ADMIN role required.
Per-member EOD report rows including attendance status, logged hours, and review status.
Daily productivity score distribution.
Daily blocker count trend.
Analytics Signals
GET /api/v1/analytics/best-performers
Returns a ranked list of top-performing employees based on task completion and attendance consistency. Requires analytics.view_org permission.
Auth: analytics.view_org permission required.
Array of
BestPerformer objects.GET /api/v1/analytics/workload-balance
Returns per-employee workload distribution and overload flags. Accessible to users with analytics.view_org or analytics.view_team.
Auth: analytics.view_org or analytics.view_team permission required.
Array of
WorkloadBalance objects.GET /api/v1/analytics/burnout-risks
Returns employees exhibiting burnout risk signals based on consecutive high-hour working days. Requires analytics.view_org permission.
Auth: analytics.view_org permission required.
Array of
BurnoutRisk objects.GET /api/v1/analytics/productivity-trend/{user_id}
Returns a time-series of daily productivity scores for a specific user. The authenticated user may always view their own trend; managers and admins may view any user in their scope.
Auth: Any authenticated user. Caller must have view access to the target user.
UUID of the employee whose trend to fetch.
Array of
ProductivityTrend objects.Example Response
Reports
GET /api/v1/reports/employee
Returns the authenticated user’s personal performance report for a specified date range.
Auth: Any authenticated user.
Report start date — ISO format
YYYY-MM-DD.Report end date — ISO format
YYYY-MM-DD.UUID of the employee.
Days with a completed attendance session.
GET /api/v1/reports/manager
Returns performance reports for all team members scoped to the authenticated manager’s direct reports. Admins see the full organisation.
Auth: MANAGER, HR_OPERATIONS, or ADMIN role required.
Report start date — ISO format
YYYY-MM-DD.Report end date — ISO format
YYYY-MM-DD.Array of
WeeklyReportRead objects — one per scoped team member.GET /api/v1/reports/hr
Returns performance report aggregations for all employees in the organisation, scoped to HR.
Auth: HR_OPERATIONS or ADMIN role required.
ISO format
YYYY-MM-DD.ISO format
YYYY-MM-DD.Array of
WeeklyReportRead objects for the full org.GET /api/v1/reports/admin
Returns organisation-wide performance report data for the admin. Identical in structure to the HR report but restricted to ADMIN role.
Auth: ADMIN role required.
ISO format
YYYY-MM-DD.ISO format
YYYY-MM-DD.GET /api/v1/reports/team-performance
Returns a paginated, filterable team performance report. Supports date range anchoring via a period mode or explicit start_date/end_date.
Auth: MANAGER, HR_OPERATIONS, or ADMIN role required.
One of
daily, weekly, monthly, or custom. Defaults to weekly.Anchor date for daily/weekly/monthly periods. ISO format
YYYY-MM-DD.Explicit start date for
custom period. ISO format YYYY-MM-DD.Explicit end date for
custom period. ISO format YYYY-MM-DD.Filter by employee name, email, role, department, or designation.
Filter by department UUID.
Filter by role string.
Page number (1-based). Omit for unpaginated results.
Rows per page. Min
1, max 200.Effective start date of the report period.
Effective end date of the report period.
Per-employee rows with hours, task counts, attendance breakdowns, and EOD status.
Example Request
GET /api/v1/reports/team-performance/export
Streams the team performance report as a CSV file. Accepts the same filter parameters as team-performance but returns all rows (no pagination). The response has Content-Type: text/csv and a Content-Disposition: attachment header.
Auth: MANAGER, HR_OPERATIONS, or ADMIN role required.
One of
daily, weekly, monthly, custom. Defaults to weekly.Anchor date ISO
YYYY-MM-DD.Explicit start date for custom period.
Explicit end date for custom period.
Name/email/role filter.
Filter by department UUID.
Filter by role string.
The exported CSV includes columns: Employee Name, Email, Role, Department, Designation, Hours, Tasks Worked On, Completed Tasks, Late, Early, WFH, Absences, EOD Status, Date Range.
Example Request
Error Responses
All analytics and reports endpoints share the standard error envelope:| HTTP Status | Code | Reason |
|---|---|---|
401 | AUTH_ERROR | Missing or invalid JWT |
403 | PERMISSION_ERROR | Insufficient role or permission |
422 | VALIDATION_ERROR | Invalid date range or query parameters |
500 | INTERNAL_ERROR | Service computation failure |
