List my leave requests
/leave_requestsleave_request/viewRequires feature leave_requestAvailable in Claudeleave_requests.list- To act on other people’s records it also needs: View others' leave requests
leave_request/view_others
Returns the token owner's own leave requests, newest submitted first, with their status, the approval stage they are at and who must decide next. Without q[from] / q[to] it shows the requests that start or end in the current month; a request matches when its first or last day falls in the window.
When to use: to answer "what leave have I asked for?" or "is my leave approved yet?", and to find a request's id for leave_requests.show, leave_requests.update or leave_requests.cancel. For the totals per status, leave_requests.stat_cards is lighter. A manager's view of the team is team_leaves.pending_requests.
Prerequisites: none for your own requests. employee_id reads another employee's requests and needs "View others' leave requests" (x-permission.x-others); you see only employees within your reach (your reports, or everyone for HR). Policy ids for q[leave_policy_id_eq] come from leave_requests.assigned_leave_policies.
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 |
|---|---|---|---|---|
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[from] | query | string (date) | Window start. Alone, the window runs to the end of that month. The current month when both are omitted. | 2026-03-01 |
q[to] | query | string (date) | Window end. Alone, the window starts on the first of that month. | 2026-03-31 |
q[status_eq] | query | string | Only this status. Allowed values: pending, approved, rejected, cancelled, revoked | pending |
q[leave_policy_id_eq] | query | integer | Only this leave policy (value from leave_requests.assigned_leave_policies). | 7 |
q[s] | query | string | Sort, <field> asc|desc, e.g. start_date asc. Newest submitted first when omitted. | start_date asc |
employee_id | query | integer | Another employee's requests (id from employees.list or employees.team). Needs "View others' leave requests". | 1203 |
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 A page of leave requests.
| Field | Type | Description |
|---|---|---|
recordsRequired | array<object> | The requests on this page, newest submitted 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 charges to the leave balance, as a decimal string ("3.0"). Weekends, days off and public holidays are not counted. |
records[].status | string | Request status: pending (waiting for a decision), approved, rejected, cancelled, or revoked (an approval was taken back).Allowed values: pending, approved, rejected, cancelled, revoked |
records[].created_at | string | When the request was submitted, in UTC (2026-03-02 06:00:00 UTC). |
records[].leave_type_name | string | Leave policy name (Annual leave, Sick leave…), in the requested language. |
records[].on_behalf | boolean | True when HR or the employee's manager filed it. The employee cannot edit it or withdraw it directly; cancelling it goes to review. |
records[].policy_approver | string | Who the leave policy routes requests to (manager, manager then HR, or HR), translated. Not the person holding it now — see current_approver_name. |
records[].current_stage | string | Where the request sits in the approval chain: awaiting_manager, awaiting_hr, cancellation_review (the employee asked to cancel an approved leave) or terminal (decided).Allowed values: awaiting_manager, awaiting_hr, cancellation_review, terminal |
records[].current_approver_name | string | Who must decide next, when the request is waiting. Null once decided. |
records[].cancellation_requested_at | string | When the employee asked to cancel this approved leave, while that is under review. Null otherwise. |
records[].locked | boolean | True when the employee can no longer cancel the request (see lock_reason). |
records[].lock_reason | string | Why it is locked, in words ("Rejected by Omar Ali.", "Your leave has started…"). Null when not locked. |
records[].submitted_by | object | Who filed it on the employee's behalf (HR or the manager). Null when the employee filed it. |
records[].submitted_by.id | integer | Employee id. |
records[].submitted_by.full_name | string | Full name, in the requested language when known. |
records[].revoke_type | string | How the approval was taken back: withdrawn (the manager, while HR had not decided) or revoked (a final approval, before the leave started). Null unless revoked.Allowed values: withdrawn, revoked, null |
records[].revocation | object | Who took the approval back, when and why. Null unless the status is revoked. |
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, in the requested language when known. |
records[].revocation.at | string (date-time) | When, in UTC. |
records[].revocation.note | string | The reason given. |
records[].approver_actions | object | What the caller may do with this request as an approver. All false on your own requests. |
records[].approver_actions.can_withdraw | boolean | True when you may take back your manager approval with leave_requests.withdraw. |
records[].approver_actions.can_revoke | boolean | True when you may take back the final approval with leave_requests.revoke. |
records[].approver_actions.revoke_blocked_reason | string | Why revoking is blocked right now although you hold the right: payroll_locked or cancellation_pending. Null otherwise.Allowed values: payroll_locked, cancellation_pending, null |
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. |
| 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. |
| 422 | employee_required | The token's owner is a company user with no employee record, so they have no leave of their own. | Ask HR to link your user to your employee record, or use a token of a user who has one. |
entitlement_blocked · 429 rate_limited · 500 internal_error