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.employeeReturns 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
| Name | In | Type | Description | Example |
|---|---|---|---|---|
employee_idRequired | path | integer | Employee id, from the report's employees list (employee_id) or employees.list. | 1203 |
from | query | string (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 |
to | query | string (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-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 The team member's totals and days.
| Field | Type | Description |
|---|---|---|
employee | object | Who. |
employee.id | integer | Employee id. |
employee.name | string | Full name, in the request's language when available. |
employee.employee_no | string | Employee number. |
employee.department | string | Department name. |
employee.employee_image | string | Reserved; always null for now. |
employee.employment_status | string | active, notice_period or inactive. |
period | object | The period used, after defaults. |
period.from | string (date) | First day. |
period.to | string (date) | Last day. |
summary | object | The same totals as the employee's row in the list. |
summary.attendance_days | integer | Days 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_days | integer | Working 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_days | integer | Days with a late arrival (still waiting on a manager or HR, or deducted). Lates HR excused (ignored) are not counted. |
summary.delay_hours | number | Total minutes late on those days, in hours (2 decimals). |
summary.overtime_hours | number | Approved overtime in the period, in hours. |
summary.permission_hours | number | Approved permissions (short time off during the day) in the period, in hours. |
summary.commitment_percentage | number | Attendance 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_days | array<object> | Each absent day, oldest first. excused is true only when HR excused the absence. |
absent_days[].date | string (date) | The day. |
absent_days[].excused | boolean | True when HR excused (ignored) the absence. |
delay_days | array<object> | Each late day counted in delay_days, oldest first. |
delay_days[].date | string (date) | The day. |
delay_days[].check_in_at | string (date-time) | Check-in time, UTC ISO-8601 with milliseconds. |
delay_days[].minutes_late | integer | Minutes late counted. |
overtime_days | array<object> | Each approved overtime, oldest first. |
overtime_days[].date | string (date) | The day. |
overtime_days[].start_time | string | Start, HH:MM local time. |
overtime_days[].end_time | string | End, HH:MM local time. |
overtime_days[].hours | number | Hours approved. |
total_overtime_hours | number | Sum of the approved overtime hours. |
Errors
| HTTP | Code | Meaning | How to fix |
|---|---|---|---|
| 401 | token_missing | No Authorization: Bearer … header, or it is malformed. | Send Authorization: Bearer qhr_… with the full token. |
| 401 | token_invalid | The 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. |
| 401 | token_expired | The token is past its expiry date. | Create a new token. |
| 401 | token_revoked | The 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. |
| 401 | tenant_inactive | The company account is suspended. | Contact QHR support. |
| 403 | forbidden | The token owner's role lacks the permission this operation needs. | Ask an admin to grant the permission shown on this operation (x-permission). |
| 403 | employee_inactive | The token owner's employee record is not active. | HR must reactivate the employee record. |
| 403 | tenant_access_revoked | The 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. |
| 404 | not_found | The record does not exist, or you cannot see it. | Check the id. List the records first to get a valid one. |
| 422 | validation_failed | A 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. |
| 422 | employee_required | The 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. |
entitlement_blocked · 429 rate_limited · 500 internal_error