QHR Developers

List attendance log rows: each employee's working days

GET/hr_attendance_log/records
Read token is enoughView attendance reports attendance/view_reportsRequires feature attendanceAvailable in Claudeattendance_log.records

Returns the detailed attendance log: one row per employee per working day in the period, newest day first, with the check-in and check-out (time in UTC, minutes late or left early, source, location, remote flag, distance from the location), minutes worked and the day's status. Show times in the timezone the response gives (the company's).

Weekends and holidays are not rows (a check-in on one still shows). Employees who have since left keep their past rows. Today has no absence rows until the nightly run, and an open day is working until it ends, then missing_check_out. late_minutes / early_minutes count only incidents still pending or deducted, never one HR excused.

When to use: "who was late on Monday and by how much?" — filter status=late and a one-day period; "who checked in remotely?" — location=remote. For totals per person use attendance_reports.employees.

Prerequisites: none. department_id and location ids from employees.meta_data.

Side effects: none. Up to 50 per page.

Before you call this

You will need ids that come from these operations:

Parameters

NameInTypeDescriptionExample
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
department_idqueryintegerOnly employees of this department (id from employees.meta_data, departments). An id that does not exist answers 422.4
searchquerystringName or employee number contains this text, case-insensitive. The name matched is the full name in the request's language (Accept-Language): the English name for en, the Arabic name for ar.Sara
statusquerystringOnly rows with this day status: present (on time, full day), late (a counted late arrival), early_leave (left early, not late), working (checked in, day still open), missing_check_out (checked in, the day is over and no check-out), absent or on_leave.
Allowed values: present, late, early_leave, working, missing_check_out, absent, on_leave
late
sourcequerystringOnly rows where the check-in or the check-out came from: mobile (QHR mobile app), web (QHR in a browser), app (QHR app, client not recorded), device (attendance device), manual (entered or adjusted by HR/manager) or system (closed automatically).
Allowed values: mobile, web, app, device, manual, system
mobile
locationquerystringOnly rows punched at this place: a location id (from employees.meta_data, locations) matched on either side, or remote for a check-in or check-out marked remote.remote
pagequeryintegerPage number, starting at 1.
min 1
1
per_pagequeryintegerRecords per page. Each list states its maximum.
min 1
20
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 A page of log rows.

FieldTypeDescription
timezoneRequiredstringThe company's timezone; show the UTC times in it.
recordsRequiredarray<object>The rows on this page, newest day first.
records[].idintegerAttendance record id.
records[].datestring (date)The working day, in the company's timezone.
records[].employeeobjectWho (people who have since left are kept).
records[].employee.idintegerEmployee id.
records[].employee.namestringFull name.
records[].employee.employee_nostringEmployee number.
records[].employee.departmentstringDepartment name.
records[].check_inobjectThe check-in.
records[].check_in.atstring (date-time)Time, UTC ISO-8601; null when there is none.
records[].check_in.late_minutesintegerCounted minutes late; null when not late.
records[].check_in.sourcestringmobile, web, app, device, manual or system (closed automatically); null with no time.
records[].check_in.locationobjectThe location it was attributed to.
records[].check_in.location.idintegerLocation id.
records[].check_in.location.namestringLocation name.
records[].check_in.remotebooleanTrue when punched as remote work.
records[].check_in.distance_mintegerDistance from the location in metres, for information only.
records[].check_outobjectThe check-out.
records[].check_out.atstring (date-time)Time, UTC ISO-8601; null when there is none.
records[].check_out.early_minutesintegerCounted minutes left early; null when not early.
records[].check_out.sourcestringmobile, web, app, device, manual or system (closed automatically); null with no time.
records[].check_out.locationobjectThe location it was attributed to.
records[].check_out.location.idintegerLocation id.
records[].check_out.location.namestringLocation name.
records[].check_out.remotebooleanTrue when punched as remote work.
records[].check_out.distance_mintegerDistance from the location in metres, for information only.
records[].worked_minutesintegerMinutes worked (net of breaks); null until the day has hours.
records[].statusstringpresent, late, early_leave, working, missing_check_out, absent or on_leave. Late wins over early leave.
paginationRequiredobject
pagination.current_pageRequiredintegerThis page's number.
pagination.per_pageRequiredintegerRecords per page.
pagination.total_entriesRequiredintegerRecords across all pages.
pagination.pagesRequiredintegerNumber of pages.

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.
422validation_failedA filter is not valid: a date not in YYYY-MM-DD, from after to, a period longer than 366 days, a department_id that does not exist, or a status, source or location outside its list. error says which.Fix the parameter named in error and send again.
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 →