List agents with current presence and capacity
curl --request GET \
--url https://your-instance.example.com/api/escalation-dashboard/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://your-instance.example.com/api/escalation-dashboard/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your-instance.example.com/api/escalation-dashboard/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/escalation-dashboard/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/escalation-dashboard/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-instance.example.com/api/escalation-dashboard/agents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/escalation-dashboard/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"_id": "5f7b1c2e8a1d4e0012c3b4a5",
"fullName": "Sam Patel",
"email": "sam.patel@acme.example",
"isOnline": true,
"isAvailable": true,
"unresolvedChats": 2,
"maxChats": 5,
"lastAssignedAt": "2026-05-18T14:31:02.000Z"
}
]
}{
"success": false,
"message": "Access denied"
}{
"success": false,
"message": "Access denied"
}Escalation Dashboard
List agents with current presence and capacity
Returns one entry per agent in scope with their connection state, availability toggle, current unresolved chat count, configured max-chats ceiling, and the last assignment / availability timestamps. Used to populate the agent grid on the escalation dashboard.
GET
/
api
/
escalation-dashboard
/
agents
List agents with current presence and capacity
curl --request GET \
--url https://your-instance.example.com/api/escalation-dashboard/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://your-instance.example.com/api/escalation-dashboard/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://your-instance.example.com/api/escalation-dashboard/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/escalation-dashboard/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/escalation-dashboard/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://your-instance.example.com/api/escalation-dashboard/agents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/escalation-dashboard/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": [
{
"_id": "5f7b1c2e8a1d4e0012c3b4a5",
"fullName": "Sam Patel",
"email": "sam.patel@acme.example",
"isOnline": true,
"isAvailable": true,
"unresolvedChats": 2,
"maxChats": 5,
"lastAssignedAt": "2026-05-18T14:31:02.000Z"
}
]
}{
"success": false,
"message": "Access denied"
}{
"success": false,
"message": "Access denied"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Optional department filter. ADMIN/SUPERADMIN may pass any departmentId; DEPARTMENT_HEAD is implicitly scoped to their own department and any other value is ignored.