Escalation Dashboard

Get filter dropdown options (users, automations, departments)

GET
/api/escalation-dashboard/filters

Returns the option lists used to populate the dashboard's filter dropdowns: in-scope users, automations that have escalation configured, and (for ADMIN/SUPERADMIN only) all departments in the organization.

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.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/escalation-dashboard/filters"
{  "success": true,  "data": {    "users": [      {        "_id": "5f7b1c2e8a1d4e0012c3b4a5",        "fullName": "Sam Patel"      }    ],    "automations": [      {        "_id": "5f7b1c2e8a1d4e0012c3b4a5",        "name": "Inbound Support"      }    ],    "departments": [      {        "_id": "6a8c2d3f9b1e5a0023d4c5b6",        "name": "Customer Success"      }    ]  }}