List the company's overtime requests for HR
/hr_overtimes/requestsattendance/view_reportsRequires feature attendanceAvailable in Claudehr_overtimes.requestsHR's overtime queue, across the whole company, oldest work date first. Without a status filter it shows only the requests waiting for HR (pending_hr, already approved by the manager or with no manager); send q[status_eq] to see another status, for example approved to review what payroll will pay. Each row says whether the token owner may decide it now (can_act) and whether a payroll run has paid it (payroll_id).
When to use: to answer "what overtime is waiting for HR?" or "what overtime was approved in this period?", then decide with overtime_requests.approve or overtime_requests.reject. A manager's queue is team_overtimes.pending_requests.
Prerequisites: "View attendance reports". The token owner does not need an employee record to read the queue, but needs one to decide.
Side effects: none. Up to 50 requests 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[status_eq] | query | string | Only requests in this status. pending_hr when omitted.Allowed values: pending_manager, pending_hr, approved, rejected, cancelled | approved |
q[employee_id_eq] | query | integer | Only this employee's requests (id from employees.list). | 1203 |
q[date_gteq] | query | string (date) | Only requests for this date or later (YYYY-MM-DD). | 2026-11-01 |
q[date_lteq] | query | string (date) | Only requests for this date or earlier (YYYY-MM-DD). | 2026-11-30 |
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 A page of overtime requests.
| Field | Type | Description |
|---|---|---|
recordsRequired | array<object> | The requests on this page. |
records[].idRequired | integer | Overtime request id. |
records[].employee_idRequired | integer | Id of the employee who asked. |
records[].employee_no | string | Their employee number. |
records[].employee_name | string | Their full name. |
records[].dateRequired | string (date) | The work day the hours belong to (YYYY-MM-DD). |
records[].start_timeRequired | string | Start, HH:MM on the employee's wall clock (company time zone). |
records[].end_timeRequired | string | End, HH:MM. Earlier than the start means it ends the next day. |
records[].minutesRequired | integer | Length in minutes (1 to 720). |
records[].hours | number | Length in hours, two decimals. |
records[].reason | string | Why the overtime was worked. |
records[].statusRequired | string | Where the request stands: pending_manager (waiting for the employee's manager), pending_hr (waiting for HR), approved (will be paid), rejected or cancelled (by the employee).Allowed values: pending_manager, pending_hr, approved, rejected, cancelled |
records[].trimmed | boolean | True when QHR cut the asked window because part of it fell inside the shift. |
records[].original_start_time | string | The start originally asked, when trimmed. |
records[].original_end_time | string | The end originally asked, when trimmed. |
records[].current_approver_name | string | Who must decide next: the manager's name, or "HR" (translated). Null once decided. |
records[].can_act | boolean | True when the token owner may approve or reject it now. |
records[].attendance_profile | object | The employee's schedule on that date, so an approver can see the claim is outside it. |
records[].attendance_profile.id | integer | Attendance profile id. |
records[].attendance_profile.name | string | Attendance profile name. |
records[].attendance_profile.daily_target_hours | number | Hours a normal day asks. |
records[].attendance_profile.grace_period_minutes | integer | Late grace, minutes. |
records[].attendance_profile.shift_start | string | Shift start that day, HH:MM; null on a day off or flexible day. |
records[].attendance_profile.shift_end | string | Shift end that day, HH:MM. |
records[].attendance_profile.day_type | string | working_day, weekend, holiday or on_leave. |
records[].attendance_profile.flexible | boolean | True on a flexible day (hours owed, no fixed window). |
records[].attendance_profile.scheduled_hours | number | Hours owed that day; null when nothing is owed. |
records[].manager | object | The manager's decision: who, when and the note. Null until that desk has acted. |
records[].manager.id | integer | Employee id of the approver. |
records[].manager.name | string | Approver's full name. |
records[].manager.acted_at | string | When they decided, in UTC (ISO 8601). |
records[].manager.note | string | Their note; always present on a rejection. |
records[].hr | object | The HR decision: who, when and the note. Null until that desk has acted. |
records[].hr.id | integer | Employee id of the approver. |
records[].hr.name | string | Approver's full name. |
records[].hr.acted_at | string | When they decided, in UTC (ISO 8601). |
records[].hr.note | string | Their note; always present on a rejection. |
records[].payroll_id | integer | The payroll run that paid it; null until a run takes it. |
records[].created_at | string | When it was submitted, in UTC (ISO 8601). |
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. |
entitlement_blocked · 429 rate_limited · 500 internal_error