curl --request GET \
--url https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance', 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://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance",
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://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance"
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://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance")
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{
"data": [
{
"date": "2026-10-29",
"operator": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"teams": [
{
"id": "<string>",
"name": "<string>"
}
],
"shiftNumber": 123,
"shiftCount": 123,
"shiftName": "<string>",
"scheduledStart": "2026-10-29T07:00:00.000Z",
"scheduledEnd": "2026-10-29T07:00:00.000Z",
"timeScheduledMinutes": 123,
"loggedStart": "2026-10-29T07:00:00.000Z",
"loggedEnd": "2026-10-29T07:00:00.000Z",
"sessions": [
{
"start": "<string>",
"end": "<string>"
}
],
"timeLoggedMinutes": 123,
"productiveTimeMinutes": 123,
"breaksMinutes": 123,
"lateMinutes": 123,
"leftEarlyMinutes": 123,
"overtimeMinutes": 123,
"unplannedTimeOff": true,
"plannedTimeOff": true,
"occupancyPercent": 123,
"adherencePercent": 123,
"conformancePercent": 123,
"utilizationPercent": 123
}
],
"pagination": {
"cursor": "<string>",
"hasMore": true
}
}List attendance rows
Returns the Attendance report for each day in the range: one row per operator for each part of a shift and for time logged outside them, matching the Attendance CSV export. Days are calendar days in timezone. A day that has not ended yet returns what has happened so far. Pages can shift if the data changes between calls. Both reports share a limit of 30 calls per 10 seconds per account.
curl --request GET \
--url https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance', 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://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance",
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://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance"
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://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.chatbase.co/api/v2/agents/{agentId}/helpdesk/attendance")
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{
"data": [
{
"date": "2026-10-29",
"operator": {
"id": "<string>",
"name": "<string>",
"email": "<string>"
},
"teams": [
{
"id": "<string>",
"name": "<string>"
}
],
"shiftNumber": 123,
"shiftCount": 123,
"shiftName": "<string>",
"scheduledStart": "2026-10-29T07:00:00.000Z",
"scheduledEnd": "2026-10-29T07:00:00.000Z",
"timeScheduledMinutes": 123,
"loggedStart": "2026-10-29T07:00:00.000Z",
"loggedEnd": "2026-10-29T07:00:00.000Z",
"sessions": [
{
"start": "<string>",
"end": "<string>"
}
],
"timeLoggedMinutes": 123,
"productiveTimeMinutes": 123,
"breaksMinutes": 123,
"lateMinutes": 123,
"leftEarlyMinutes": 123,
"overtimeMinutes": 123,
"unplannedTimeOff": true,
"plannedTimeOff": true,
"occupancyPercent": 123,
"adherencePercent": 123,
"conformancePercent": 123,
"utilizationPercent": 123
}
],
"pagination": {
"cursor": "<string>",
"hasMore": true
}
}Authorizations
API key from your account settings
Path Parameters
The agent ID
1"5QHA6VB-DIAbBhxwqxfdi"
Query Parameters
Opaque cursor from a previous response to fetch the next page
"eyJ0IjoiMjAyNC0wMS0xNVQxMDozMDowMC4wMDBaIiwiaWQiOiJhYmMxMjMifQ=="
Number of items per page (1 to 1000, default 100)
1 <= x <= 1000100
First day to return (YYYY-MM-DD), as a calendar day in timezone. At most 396 days ago.
"2026-10-29"
Last day to return (YYYY-MM-DD), inclusive. Not after today in timezone, and at most 31 days from startDate counting both.
"2026-10-30"
IANA time zone that decides where each day starts and ends, the same as the time zone picker on the dashboard.
"Africa/Cairo"