---
title: "Return a list of employee works."
method: GET
path: "/employees/works"
tags: ["Employees"]
---

# Return a list of employee works.

`GET /employees/works`

This endpoint returns a list with the **work** sections of the existing employees. Additionally, custom fields from this section will also be included.

## Query parameters

- `companyId` string
- `officeId` string
- `departmentId` string
- `startDate` string
- `jobTitle` string
- `workPhone` string
- `workMobile` string
- `isAssistant` boolean
- `probationPeriodEnd` string
- `contractEnd` string
- `reportsToId` string

## Headers

- `Authorization` string, required

## Response `200`

OK

- object
  - `data` object[]
    - `_id` string — The _id of the Kenjo employee.
    - `companyId` string — The company id of the Kenjo employee.
    - `officeId` string — The office id of the Kenjo employee.
    - `departmentId` string — The department id of the Kenjo employee.
    - `areaIds` string[] — The area ids associated with the Kenjo employee.
    - `teamIds` string[] — The team ids associated with the Kenjo employee.
    - `startDate` string — The starting date of the Kenjo employee in format YYYY-MM-DDThh:mm:ss.
    - `jobTitle` string — The job title of the employee.
    - `workPhone` string — The work phone of the employee.
    - `workMobile` string — The work mobile of the employee.
    - `isAssistant` boolean — Allow to indicate if the employee has or not the assistant role.
    - `probationPeriodEnd` string — The probation period of the employee. Format YYYY-MM-DDThh:mm:ss.000Z.
    - `timeOffApproverId` string — The id of the employee who will approve time off requests for this employee. If not provided, the approver will be the reportsToId field.
    - `contractEnd` string — The contract end date of the employee. Format YYYY-MM-DDThh:mm:ss.000Z.
    - `reportsToId` string — The Kenjo employee id of the user to whom the employee reports. The employee id to assign can be an active or inactive user. Trying to assign the own employee id or the id of someone who is already reporting will arise an error.
    - `employeeNumber` string — The employee number identifier (Employee ID) of the employee. If the value does not exist, the field will not be included in the response.

## Other responses

- `400` — BAD REQUEST. This is a wrong request in the client side due to invalid body or params.
- `401` — UNAUTHORIZED. The Authorization header is incorrect, not provided or the token expired.

---

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