List absences
Approved and pending absences that overlap the from/to range, each with its status. Rejected and cancelled absences are left out.
Dates are local calendar dates with the half day where one applies; they are never instants.
Health detail: without the key scope absences:read-health, a sick absence is returned as absent, with no category and no sick detail.
Requires the key scope absences:read.
apiKeyAuthorizationBearer <token>An organization API key (starts with z8_org).
from*stringFirst day of the range, inclusive (YYYY-MM-DD).
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$dateto*stringLast day of the range, inclusive (YYYY-MM-DD). At most 366 days after from.
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))$dateemployeeId?stringOnly this employee's absences.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$uuidstatus?stringOnly absences with this status.
"approved""pending"limit?integerRows per page, 1 to 200.
1 <= value <= 20050cursor?stringThe nextCursor of the previous page. Omit it for the first page.
1 <= length <= 1024OK
application/json- response
data*array<>nextCursor*|Pass as cursor to read the next page; null on the last page.
curl -X GET 'https://ui.z8-time.app/api/v1/absences?from=2019-08-24&to=2019-08-24'{ "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "employeeId": "b0e78c8f-8c8b-4410-8293-9239e39d9e17", "status": "approved", "startDate": "2019-08-24", "startPeriod": "full_day", "endDate": "2019-08-24", "endPeriod": "full_day", "type": "home_office", "category": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" }, "sickDetail": "child_sick" } ], "nextCursor": "string"}