Rightwork OG Image
Browse API documentation
API docsWorkforce API v1

Time-off types

List the leave types you can use to filter time-off requests.

Request

GET /api/external/v1/time-off-types

Required scope: reference:read. Set up your key and base URL before running this example.

Shell
curl --fail-with-body \
  -H "Authorization: Bearer $RIGHTWORK_API_KEY" \
  -H "Accept: application/json" \
  "$RIGHTWORK_BASE_URL/api/external/v1/time-off-types"

Parameters

ParameterRequiredHow to use it
page_sizeNoRecords per page (1–500, default 100).
cursorNoPass the previous page’s meta.next_cursor with the same filters and page size.

Example response

JSON
{
  "data": [
    {
      "code": "PTO",
      "name": "Paid time off"
    },
    {
      "code": "SICK",
      "name": "Sick leave"
    },
    {
      "code": "UNPAID",
      "name": "Unpaid time off"
    }
  ],
  "meta": {
    "request_id": "00000000-0000-4000-8000-000000000901",
    "snapshot_id": "00000000-0000-4000-8000-000000000902",
    "as_of": "2026-09-18T18:00:00+00:00",
    "scope_revision": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "next_cursor": null,
    "complete": true,
    "legacy_unspecified_type": null
  }
}

Pass the returned code as type when requesting time off. Use type=unspecified to find older requests with no recorded type.

Response fields

FieldTypeFormat / values
codestringPTO, SICK, UNPAID
namestring

For multi-page results, follow the pagination and synchronization guide before updating your records.