---
title: "Gets all workspace absences."
method: GET
path: "/workspaceabsences"
tags: ["workspaceAbsences"]
---

# Gets all workspace absences.

`GET /workspaceabsences`

Gets all workspace absences. The result can be filtered, sorted, and paged.

<Check title="Required Permissions" icon="key">The user must be an admin or have `user-planning-data:write` permissions.</Check>

## Query parameters

- `page` integer
- `pageSize` integer
- `orderby` string
- `filterby` string

## Headers

- `Authorization` string, required

## Response `200`

OK

- WorkspaceAbsenceModel[]
  - `id` string, uuid — The id of the entity.
  - `createdOn` string, date-time — The date this entity was created.
  - `createdBy` string, uuid — The id of the user who created this entity.
  - `updatedOn` string, date-time — The date this entity was last modified.
  - `updatedBy` string, uuid — The id of the user who last modified this entity.
  - `startOn` string, date-time — The start time of the workspace absence.
  - `endOn` string, date-time — The end time of the workspace absence.
  - `description` string, nullable — The description of the absence.
  - `regionId` string, uuid, nullable — The (optional) regionId of the workspace absence. If null, the absence is global for the entire workspace. Otherwise, it will be applied only to the users of the region.
  - `region` string, nullable — The name of the region of the workspace absence. Null if the absence is global for the entire workspace.
  - `isReadOnly` boolean — If it's true it means that this Absence is read-only and cannot be edited/deleted by the user.
  - `isHalfDayOnStart` boolean — If it's true and it's a single day absence means that the absence is for the first half of the workday. If it's a multi day absence it started on the second half of the first day of the absence period.
  - `isHalfDayOnEnd` boolean — If it's true and it's a single day absence means that the absence is for the second half of the workday. If it's a multi day absence it ended on the first half of the last day of the absence period.

---

[API](https://skmtc.net/awork-io/apis/api-v1-reference.md) · [All operations](https://skmtc.net/awork-io/apis/api-v1-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/awork-io/api-v1-reference/versions/f784a53f60df/schema)
