List the company's permission requests for HR
/hr_permissions/requestsattendance/view_reportsRequires feature attendanceAvailable in Claudepermission_requests.hr_listReturns permission requests (hourly leaves of absence) across the whole company, earliest window first. By default only those waiting for HR (pending_hr): requests on the hr route, requests the manager recommended on manager_and_hr, and requests whose employee has no manager able to approve. Filter with q[status_eq] or q[status_in][] for the history (approved, rejected, withdrawn or revoked…). A request the manager withdrew before HR decided shows as revoked with revoke_type: withdrawn.
When to use: to answer "which permissions are waiting for HR?" before permission_requests.approve / permission_requests.reject, or to review who took time off in a period.
Prerequisites: "View attendance reports". No employee record is needed to read; deciding needs one. Without from / to there is no date limit.
Side effects: none. Up to 50 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 |
from | query | string (date) | First date (YYYY-MM-DD) of the permission's date. With only to, from the start of the current month. | 2026-11-01 |
to | query | string (date) | Last date, inclusive. With only from, to the end of the current month. | 2026-11-30 |
q[status_eq] | query | string | Only this status. pending_hr when neither status filter is sent.Allowed values: pending_manager, pending_hr, approved, rejected, cancelled, revoked | approved |
q[status_in][] | query | array<string> | Any of these statuses, e.g. all of them for the full history. | approved,rejected |
q[employee_id_eq] | query | integer | Only this employee (id from employees.list). | 1203 |
q[kind_eq] | query | string | Only this kind. Allowed values: late_arrival, early_leave, mid_shift, flexible | late_arrival |
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 A page of requests.
| Field | Type | Description |
|---|---|---|
recordsRequired | array<object> | The requests on this page. |
records[].idRequired | integer | Permission request id. |
records[].reference | string | Reference shown to people, PRM-<id>. |
records[].employee_idRequired | integer | The employee who asked. |
records[].employee_no | string | Their employee number. |
records[].employee_name | string | Their full name. |
records[].dateRequired | string (date) | The working day the permission is for. |
records[].start_timeRequired | string | Start, wall-clock time HH:MM in the attendance profile's timezone. |
records[].end_timeRequired | string | End, wall-clock time HH:MM in the attendance profile's timezone. |
records[].starts_at | string (date-time) | Absolute start, in UTC. For an overnight shift it may fall on the next calendar day. |
records[].ends_at | string (date-time) | Absolute end, in UTC. |
records[].minutes | integer | Length in minutes. |
records[].hours | number | Length in hours, two decimals. |
records[].kind | string | What the window is, worked out by QHR from the shift: late_arrival (starts when the shift starts), early_leave (ends when the shift ends), mid_shift (inside the shift) or flexible (a day with no fixed hours).Allowed values: late_arrival, early_leave, mid_shift, flexible |
records[].note | string | The employee's reason (up to 500 characters). |
records[].statusRequired | string | pending_manager (waiting for the employee's manager), pending_hr (waiting for HR), approved, rejected, cancelled (by the employee) or revoked (an approval taken back).Allowed values: pending_manager, pending_hr, approved, rejected, cancelled, revoked |
records[].approval_route | string | Who approves, fixed when the request was filed from the attendance profile: manager, hr, or manager_and_hr (the manager first, then HR).Allowed values: manager, hr, manager_and_hr |
records[].revoke_type | string | For a revoked request: withdrawn (the manager took back their approval before HR decided) or revoked (a final approval taken back). Null otherwise. |
records[].current_approver_name | string | Who must decide now: the manager's name, or "HR". Null once decided. |
records[].attachment | object | Supporting file, if one was added in the QHR app: filename, content_type, byte_size and a temporary download url. |
records[].actions | object | What the token owner may do with this request now. blocked_reason explains why approve is off for an approver: payroll_locked or incident_decided. |
records[].actions.can_edit | boolean | May edit it (permission_requests.update). |
records[].actions.can_cancel | boolean | May cancel it (permission_requests.cancel). |
records[].actions.can_approve | boolean | May approve it (permission_requests.approve). |
records[].actions.can_reject | boolean | May reject it (permission_requests.reject). |
records[].actions.can_withdraw | boolean | May withdraw their approval (permission_requests.withdraw). |
records[].actions.can_revoke | boolean | May revoke the approval (permission_requests.revoke). |
records[].actions.blocked_reason | string | Why approving is blocked, or null. |
records[].manager | object | The manager's decision, once they acted. |
records[].manager.id | integer | Employee id of the person who acted. |
records[].manager.name | string | Their full name. |
records[].manager.acted_at | string (date-time) | When, in UTC. |
records[].manager.note | string | The note they left. |
records[].hr | object | HR's decision, once HR acted. |
records[].hr.id | integer | Employee id of the person who acted. |
records[].hr.name | string | Their full name. |
records[].hr.acted_at | string (date-time) | When, in UTC. |
records[].hr.note | string | The note they left. |
records[].revoked | object | Who withdrew or revoked the approval, and why. |
records[].revoked.id | integer | Employee id of the person who acted. |
records[].revoked.name | string | Their full name. |
records[].revoked.acted_at | string (date-time) | When, in UTC. |
records[].revoked.note | string | The note they left. |
records[].cancelled_at | string (date-time) | When the employee cancelled it, in UTC. |
records[].created_at | string (date-time) | When it was filed, in UTC. |
records[].attendance_profile | object | Only on permission_requests.show: the employee's shift that day (shift_start, shift_end, day_type, flexible, scheduled_hours, grace_period_minutes). |
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 |
|---|---|---|---|
| 400 | bad_request | A parameter is missing or malformed. | Check the parameters against this operation's documentation. |
| 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