Returns availability state buckets over a time window for charting. Each bucket carries the dominant state per agent and the aggregate state across the org/department, plus per-agent online / available / at-capacity durations within the bucket. Defaults to the last 24 hours with 15-minute buckets if start/end/bucketMinutes are omitted.
Documentation Index
Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
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.
Bucket size in minutes. Clamped to [1, 120].
1 <= x <= 120Availability timeline returned
true {
"start": "2026-05-18T00:00:00.000Z",
"end": "2026-05-18T15:00:00.000Z",
"bucketMinutes": 15,
"buckets": [
"2026-05-18T14:30:00.000Z",
"2026-05-18T14:45:00.000Z"
],
"agents": {
"5f7b1c2e8a1d4e0012c3b4a5": ["available", "at_capacity"]
},
"aggregate": [
{
"state": "available",
"onlineUserIds": ["5f7b1c2e8a1d4e0012c3b4a5"],
"availableUserIds": ["5f7b1c2e8a1d4e0012c3b4a5"],
"atCapacityUserIds": [],
"userDurations": []
}
],
"users": [
{
"_id": "5f7b1c2e8a1d4e0012c3b4a5",
"fullName": "Sam Patel",
"email": "sam.patel@acme.example"
}
]
}