List an employee's leave requests
/employees/{id}/time_off/leave_requeststime_off/view_othersRequires feature time_offAvailable in Claudetime_off.leave_requestsReturns every leave request of one employee, newest first, whatever its status and date: pending, approved, rejected, cancelled and revoked, past and future. Each row says where the request waits (current_stage), whether HR or the manager filed it (on_behalf, submitted_by) and whether the token's owner may withdraw or revoke an approval on it (approver_actions).
When to use: to answer "what leave has this person asked for or taken?". For the remaining days per policy use time_off.balances; for requests across the whole company use hr_leaves.requests.
Prerequisites: the employee's id from employees.list, employees.search or hr_leaves.employees. Needs "View others' time off".
Side effects: none. Up to 50 per page.
Before you call this
You will need ids that come from these operations:
Parameters
| Name | In | Type | Description | Example |
|---|---|---|---|---|
idRequired | path | integer | Employee id, from employees.list, employees.search or hr_leaves.employees. | 1203 |
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 this status. Allowed values: pending, approved, rejected, cancelled, revoked | approved |
q[leave_policy_id_eq] | query | integer | Only this leave policy (id from time_off.balances). | 7 |
q[start_date_gteq] | query | string (date) | Leave starting on or after this date. | 2026-01-01 |
q[start_date_lteq] | query | string (date) | Leave starting on or before this date. | 2026-12-31 |
q[s] | query | string | Sort, <field> asc|desc on start_date, end_date, created_at or status. Newest first when omitted. | start_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 the employee's leave requests.
| Field | Type | Description |
|---|---|---|
recordsRequired | array<object> | The requests on this page, newest first. |
records[].id | integer | Leave request id. |
records[].start_date | string (date) | First day of leave. |
records[].end_date | string (date) | Last day of leave. |
records[].balance | string | Working days the request takes from the balance, as a decimal string ("3.0"). |
records[].status | string | Request status: pending (waiting on a decision), approved, rejected, cancelled or revoked (an approval taken back before the leave started).Allowed values: pending, approved, rejected, cancelled, revoked |
records[].created_at | string | When it was submitted, in UTC (2026-11-20 08:15:00 UTC). |
records[].leave_type_name | string | Leave policy name. |
records[].on_behalf | boolean | True when HR or the manager filed it for the employee; the employee cannot edit it, and cancelling it goes to the approver's review. |
records[].policy_approver | string | Who the policy says approves (Manager, HR, Manager then HR), translated. Not the person holding it now. |
records[].current_stage | string | Where the request waits: awaiting_manager, awaiting_hr, cancellation_review or terminal (decided). |
records[].current_approver_name | string | Reserved on this list; always null here. |
records[].cancellation_requested_at | string | When the employee asked to cancel, if a cancellation is under review. |
records[].locked | boolean | Always false on this list. |
records[].lock_reason | string | Reserved on this list; always null here. |
records[].submitted_by | object | Who filed an on-behalf request; null when the employee filed it. |
records[].submitted_by.id | integer | Employee id. |
records[].submitted_by.full_name | string | Full name. |
records[].revoke_type | string | How an approval was taken back: withdrawn (by the manager, before HR decided) or revoked (a final approval); null otherwise. |
records[].revocation | object | Who took the approval back, when (UTC, ISO 8601) and why; null unless revoke_type is set. |
records[].revocation.by | object | A person: id (employee id) and full_name. |
records[].revocation.by.id | integer | Employee id. |
records[].revocation.by.full_name | string | Full name. |
records[].revocation.at | string | When. |
records[].revocation.note | string | The reason given. |
records[].approver_actions | object | What the token's owner may do on this request as an approver. |
records[].approver_actions.can_withdraw | boolean | True when the owner may withdraw their own approval while the request waits for HR. |
records[].approver_actions.can_revoke | boolean | True when the owner may revoke the final approval of leave that has not started. |
records[].approver_actions.revoke_blocked_reason | string | Why a revoke is blocked right now: payroll_locked (the days are in a processed payroll run) or cancellation_pending. |
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. |
| 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. |
entitlement_blocked · 429 rate_limited · 500 internal_error