List my attendance history
/attendances/my_historyattendance/view_ownRequires feature attendanceAvailable in Claudeattendances.my_historyReturns the token owner's attendance, one row per work date, newest first: status (present, late, absent, on leave, holiday, weekend…), check-in and check-out times and how each was recorded, hours worked, breaks, the deductions the day produced (late arrival, early leave…) with whether a reason was given, and the hourly permissions that covered it.
When to use: to answer "when did I arrive last week?", "which days was I late?" or "do I have any deductions to explain?". Filter by date range and status. For today alone, attendances.check_in_status is lighter; for the hours of the current week, attendances.weekly_summary.
Prerequisites: a token created by a user linked to an employee record. Dates are work dates in the company's timezone (YYYY-MM-DD); times are UTC.
Side effects: none. Up to 50 days per page.
Parameters
| Name | In | Type | Description | Example |
|---|---|---|---|---|
page | query | integer | Page number, starting at 1. min 1 | 1 |
per_page | query | integer | Records per page. Each list states its maximum. min 1 | 20 |
q[date_gteq] | query | string (date) | From this work date (inclusive). | 2026-10-01 |
q[date_lteq] | query | string (date) | Up to this work date (inclusive). | 2026-10-31 |
q[status_eq] | query | string | Only days with this status. Allowed values: present, late, incomplete, absent, on_leave, holiday, weekend | late |
q[check_in_at_gteq] | query | string (date-time) | Checked in at or after this time (ISO 8601). | 2026-10-01T00:00:00Z |
q[check_out_at_lteq] | query | string (date-time) | Checked out at or before this time (ISO 8601). | 2026-10-31T23:59:59Z |
q[s] | query | string | Sort, <field> asc|desc, e.g. date desc. Newest first when omitted. | date desc |
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 A page of attendance days.
| Field | Type | Description |
|---|---|---|
recordsRequired | array<object> | The days on this page. |
records[].idRequired | integer | Attendance record id. |
records[].dateRequired | string (date) | Work date, in the company's timezone. A night shift belongs to the date it started. |
records[].statusRequired | string | present, late (arrived after the start plus the grace period), incomplete (checked in, not out), absent, on_leave, holiday or weekend. An early leave stays present; it shows in incidents.Allowed values: present, late, incomplete, absent, on_leave, holiday, weekend |
records[].check_in_at | string (date-time) | Check-in time, UTC. |
records[].check_out_at | string (date-time) | Check-out time, UTC. |
records[].hours_worked | number | Hours worked, net of breaks on a day that tracks breaks; null until the day is closed. |
records[].check_in_source | string | How that side was recorded: app (the QHR app or this API), device (a fingerprint or face device), manual (corrected by a manager or HR); null when there is no time.Allowed values: app, device, manual, null |
records[].check_out_source | string | How that side was recorded: app (the QHR app or this API), device (a fingerprint or face device), manual (corrected by a manager or HR); null when there is no time.Allowed values: app, device, manual, null |
records[].check_in_device | object | The device scan behind that side, when it came from a device. |
records[].check_in_device.name | string | Device name. |
records[].check_in_device.external_employee_no | string | The employee's number on the device. |
records[].check_out_device | object | The device scan behind that side, when it came from a device. |
records[].check_out_device.name | string | Device name. |
records[].check_out_device.external_employee_no | string | The employee's number on the device. |
records[].incidents | array<object> | Deductions this day produced (late arrival, early leave…), and whether the employee has explained each. Details with attendances.justification_context. |
records[].incidents[].id | integer | Time incident id. |
records[].incidents[].kind | string | absence, late, early_leave, short_hours or incomplete. |
records[].incidents[].status | string | pending (under review), deducted or ignored. |
records[].incidents[].justification_state | string | submitted or none. |
records[].permissions | array<object> | Approved and pending hourly permissions on this day (history only). |
records[].permissions[].id | integer | Permission request id. |
records[].permissions[].kind | string | Permission kind, e.g. late_arrival, early_leave. |
records[].permissions[].status | string | approved or pending. |
records[].permissions[].start_time | string | Start, HH:MM local. |
records[].permissions[].end_time | string | End, HH:MM local. |
records[].tracks_breaks | boolean | True when this day records breaks (pause / resume). |
records[].day_state | string | On a day that tracks breaks: working, paused or ended; null otherwise. |
records[].ended_by | string | Who ended a tracked day: employee (from the app or a device) or system (closed automatically). |
records[].break_minutes | integer | Minutes on break. |
records[].breaks | array<object> | The day's breaks; empty when breaks are not tracked. |
records[].breaks[].started_at | string (date-time) | Break start, UTC. |
records[].breaks[].ended_at | string (date-time) | Break end, UTC; null while the break is running. |
records[].breaks[].started_via | string | app or device. |
records[].breaks[].ended_via | string | app or device. |
records[].breaks[].started_device_name | string | Device that started the break. |
records[].breaks[].ended_device_name | string | Device that ended the break. |
paginationRequired | object | |
pagination.current_pageRequired | integer | This page's number. |
pagination.per_pageRequired | integer | Records per page. |
pagination.total_entriesRequired | integer | Records across all pages. |
pagination.pagesRequired | integer | Number of pages. |
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. |
| 422 | employee_required | The token's owner is a company user with no employee record, so they have no attendance. | Use a token created by a user who is linked to an employee, or ask HR to link this user to their employee record. |
entitlement_blocked · 429 rate_limited · 500 internal_error