Openapi
Return time-off requests visible to the caller: their own, their reports', or everyone's for HR.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidemployeeId?stringuuidfrom?limit*integer1 <= value <= 10050offset*integer0 <= value <= 90071992547409910status?string"pending""approved""rejected""canceled"to?Returns time-off requests.
application/jsondata*array<>pagination*curl -X GET 'https://app.localhost/api/v1/organizations/123/time-off-requests?employeeId=123e4567-e89b-12d3-a456-426614174000&from=example&limit=1&offset=1&status=example&to=example'{ "data": [ { "allowedNegativeHours": 0, "balanceAfterApproval": 0, "canDecide": true, "canceledAt": "string", "createdAt": "string", "decidedAt": "string", "decidedBy": "3a741861-b09d-4f52-b451-be998c2bf2d1", "decisionNote": "string", "deductsBalance": true, "employee": { "avatarUrl": "string", "displayName": "string", "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17", "jobTitle": "string", "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b" }, "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17", "endPart": "full", "endTime": "string", "endsOn": "2019-08-24", "hasAttachment": true, "hours": 0, "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "masked": true, "needsRecalculation": true, "note": "string", "startPart": "full", "startTime": "string", "startsOn": "2019-08-24", "status": "pending", "timeOffTypeId": "8506ed76-43a7-45a4-95d8-afc0870f803b", "typeCategory": "vacation", "typeColor": "string", "typeName": "string" } ], "pagination": { "hasMore": true, "limit": 1, "offset": 0, "total": 0, "totalIsEstimate": true }}