QHR Developers

Get one team member's attendance totals and days

GET/team_attendance_reports/employees/{employee_id}
Read token is enoughView team attendance attendance/view_teamRequires feature attendanceAvailable in Claudeteam_attendance_reports.employee

Returns one of the token owner's active direct reports with their totals for the period (the same numbers as their row in team_attendance_reports.employees) and the exact days behind them: each absent day (and whether HR excused it), each counted late day with the check-in time (UTC) and minutes late, and each approved overtime. Lists are oldest first.

When to use: a manager's "which days was Sara late?".

Prerequisites: the employee_id, from team_attendance_reports.employees or employees.team. Anyone who is not your active direct report answers 404, so the API never confirms they exist.

Side effects: none.

Before you call this

You will need ids that come from these operations:

Parameters

NameInTypeDescriptionExample
employee_idRequiredpathintegerEmployee id, from the report's employees list (employee_id) or employees.list.1203
fromquerystring (date)First day of the period, YYYY-MM-DD, included. A calendar date in the company's timezone (the timezone set on the company, e.g. Asia/Riyadh), not UTC. Defaults to the first day of the current month in that timezone. from to to may span at most 366 days.2026-07-01
toquerystring (date)Last day of the period, YYYY-MM-DD, included, in the company's timezone. Defaults to the last day of the current month (a future date for most of the month; future days hold no attendance yet, so they change no number). Must be on or after from.2026-07-31
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 The team member's totals and days.

FieldTypeDescription
employeeobjectWho.
employee.idintegerEmployee id.
employee.namestringFull name, in the request's language when available.
employee.employee_nostringEmployee number.
employee.departmentstringDepartment name.
employee.employee_imagestringReserved; always null for now.
employee.employment_statusstringactive, notice_period or inactive.
periodobjectThe period used, after defaults.
period.fromstring (date)First day.
period.tostring (date)Last day.
summaryobjectThe same totals as the employee's row in the list.
summary.attendance_daysintegerDays attended in the period: days with a check-in (on time, late, or without a check-out yet). A check-in on a weekend or holiday counts too.
summary.absent_daysintegerWorking days with no check-in and no approved leave. Written each night for the previous day, so today never counts. Weekends, holidays and leave days are never absences.
summary.delay_daysintegerDays with a late arrival (still waiting on a manager or HR, or deducted). Lates HR excused (ignored) are not counted.
summary.delay_hoursnumberTotal minutes late on those days, in hours (2 decimals).
summary.overtime_hoursnumberApproved overtime in the period, in hours.
summary.permission_hoursnumberApproved permissions (short time off during the day) in the period, in hours.
summary.commitment_percentagenumberAttendance rate: attendance_days ÷ (attendance_days + absent_days) × 100, one decimal. Leave, weekends and holidays are outside the ratio. Null when the employee had no expected day (e.g. a new hire).
absent_daysarray<object>Each absent day, oldest first. excused is true only when HR excused the absence.
absent_days[].datestring (date)The day.
absent_days[].excusedbooleanTrue when HR excused (ignored) the absence.
delay_daysarray<object>Each late day counted in delay_days, oldest first.
delay_days[].datestring (date)The day.
delay_days[].check_in_atstring (date-time)Check-in time, UTC ISO-8601 with milliseconds.
delay_days[].minutes_lateintegerMinutes late counted.
overtime_daysarray<object>Each approved overtime, oldest first.
overtime_days[].datestring (date)The day.
overtime_days[].start_timestringStart, HH:MM local time.
overtime_days[].end_timestringEnd, HH:MM local time.
overtime_days[].hoursnumberHours approved.
total_overtime_hoursnumberSum of the approved overtime hours.

Errors

HTTPCodeMeaningHow to fix
401token_missingNo Authorization: Bearer … header, or it is malformed.Send Authorization: Bearer qhr_… with the full token.
401token_invalidThe token is unknown or wrong, or its owner's account is locked.Check the token was copied in full, or create a new one in QHR › Settings › API & Integrations.
401token_expiredThe token is past its expiry date.Create a new token.
401token_revokedThe token was revoked by its owner or an admin, or the owner was removed from the company (which revokes all their tokens).Create a new token, or ask your admin. If the owner was removed, they must be re-invited to the company first.
401tenant_inactiveThe company account is suspended.Contact QHR support.
403forbiddenThe token owner's role lacks the permission this operation needs.Ask an admin to grant the permission shown on this operation (x-permission).
403employee_inactiveThe token owner's employee record is not active.HR must reactivate the employee record.
403tenant_access_revokedThe token's owner is no longer an active member of this company. Rare: removing a member normally revokes their tokens, which answers 401 token_revoked instead.The owner must be re-invited to the company, then create a new token. If the owner is still a member, contact QHR support.
404not_foundThe record does not exist, or you cannot see it.Check the id. List the records first to get a valid one.
422validation_failedA date is not valid: not in YYYY-MM-DD, from after to, or a period longer than 366 days. error says which.Fix the date named in error and send again.
422employee_requiredThe token's owner is a system user with no employee profile, so has no team.Use a token created by a manager whose user is linked to an employee profile.
This endpoint can also return the errors that can happen on any endpoint →402 / 412 / 425 entitlement_blocked · 429 rate_limited · 500 internal_error

See the full error catalogue →