Escalation Dashboard

List current escalation queue items

GET
/api/escalation-dashboard/queue

Returns the live escalation queue (contacts waiting for an agent), enriched with contact / automation metadata and per-item wait time in milliseconds. Sorted oldest-waiting first. Optionally scoped to a department by filtering on automations that escalate to that 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.

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/escalation-dashboard/queue"
{  "success": true,  "data": [    {      "conversationId": "8c3d4e0f9a1b3c4d5e6f7a8b9c01",      "contactId": "9d4e5f1a2b3c4d5e6f7a8b9c0d12",      "contactName": "Alex Morgan",      "contactPhone": "+14165550100",      "automationId": "5f7b1c2e8a1d4e0012c3b4a5",      "automationName": "Inbound Support",      "queuedAt": "2026-05-18T14:25:31.000Z",      "waitTimeMs": 331000,      "hasAccess": true    }  ]}