Escalation Dashboard

Get aggregate escalation dashboard statistics

GET
/api/escalation-dashboard/stats

Returns top-line escalation dashboard counters: online agents, available agents, current queue length, assignments made today, and rolling 7-day average queue wait time. Optionally scoped to a department.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Query Parameters

departmentId?string

Optional department filter. ADMIN/SUPERADMIN may pass any departmentId; DEPARTMENT_HEAD is implicitly scoped to their own department and any other value is ignored.

tz?string

IANA timezone name (e.g. "America/Toronto") used to compute the start-of-today boundary for the assignedToday counter. Defaults to server local time.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/escalation-dashboard/stats"
{  "success": true,  "data": {    "onlineAgents": 7,    "availableAgents": 3,    "queueLength": 4,    "assignedToday": 28,    "avgWaitTimeMs": 84500  }}