Skip to main content
GET
/
api
/
escalation-dashboard
/
stats
Get aggregate escalation dashboard statistics
curl --request GET \
  --url https://your-instance.example.com/api/escalation-dashboard/stats \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "onlineAgents": 7,
    "availableAgents": 3,
    "queueLength": 4,
    "assignedToday": 28,
    "avgWaitTimeMs": 84500
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

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

Escalation stats returned

success
enum<boolean>
required
Available options:
true
data
object
required
Example:
{
"onlineAgents": 7,
"availableAgents": 3,
"queueLength": 4,
"assignedToday": 28,
"avgWaitTimeMs": 84500
}