List raw availability events (paginated)
curl --request GET \
--url https://your-instance.example.com/api/escalation-dashboard/availability-events \
--header 'Authorization: Bearer <token>'import requests
url = "https://your-instance.example.com/api/escalation-dashboard/availability-events"
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/availability-events', 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/availability-events",
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/availability-events"
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/availability-events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/escalation-dashboard/availability-events")
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": {
"events": [
{
"_id": "7b2c4e0d9f1a3b4e5c6d7e8f9012",
"userId": "5f7b1c2e8a1d4e0012c3b4a5",
"userName": "Sam Patel",
"category": "availability",
"value": "available",
"source": "toggle",
"occurredAt": "2026-05-18T14:31:02.000Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 143,
"totalPages": 3
}
}
}{
"success": false,
"message": "Access denied"
}{
"success": false,
"message": "Access denied"
}{
"success": false,
"message": "Access denied"
}Escalation Dashboard
List raw availability events (paginated)
Returns the raw AgentAvailabilityEvent stream (connection / availability / capacity transitions) within a time window, optionally filtered by user, category, value, and source. Used to back the audit / drill-down view on the escalation dashboard.
GET
/
api
/
escalation-dashboard
/
availability-events
List raw availability events (paginated)
curl --request GET \
--url https://your-instance.example.com/api/escalation-dashboard/availability-events \
--header 'Authorization: Bearer <token>'import requests
url = "https://your-instance.example.com/api/escalation-dashboard/availability-events"
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/availability-events', 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/availability-events",
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/availability-events"
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/availability-events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/escalation-dashboard/availability-events")
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": {
"events": [
{
"_id": "7b2c4e0d9f1a3b4e5c6d7e8f9012",
"userId": "5f7b1c2e8a1d4e0012c3b4a5",
"userName": "Sam Patel",
"category": "availability",
"value": "available",
"source": "toggle",
"occurredAt": "2026-05-18T14:31:02.000Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 143,
"totalPages": 3
}
}
}{
"success": false,
"message": "Access denied"
}{
"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.
ISO-8601 start of the window. Defaults to end - 24h.
ISO-8601 end of the window. Defaults to now.
1-based page number.
Required range:
x >= 1Page size. Clamped to [1, 200].
Required range:
1 <= x <= 200Available options:
connection, availability, capacity Available options:
online, offline, available, unavailable, at_capacity, has_capacity Available options:
socket, toggle, auto_away, assignment, resolution, system