---
title: "List userLocations"
method: GET
path: "/work-locations/public/api/user-locations"
tags: ["UserLocations"]
---

# List userLocations

`GET /work-locations/public/api/user-locations`

Query employees work locations

## Query parameters

- `from` string, date
- `to` string, date
- `workLocationId` string
- `ownerId` string
- `page` integer
- `limit` integer
- `fields.root` 'count'

## Response `200`

OK

- object
  - `count` integer
  - `items` UserLocation[]
    - `id` integer, required — The unique id of the userLocation.
    - `ownerId` integer, required — The id of the employee.
    - `workLocationId` integer, required — The id of the WorkLocation.
    - `areaId` integer, nullable — The id of the specific area in the office. Left null whenever the Work Location has no areas.
    - `date` string, date, required — Date on which the employee works at this location.
    - `position` 'FullDay' | 'FirstHalf' | 'SecondHalf', required — Specify the day period this userLocation is effective.
    - `status` 'Pending' | 'Deleted' | 'Approved' | 'Denied' | 'Confirmed', required — The status of this userLocation.
    - `createdAt` string, date-time — Date at which the UserLocation was created.
    - `deletedAt` string, date-time, nullable — Date at which the UserLocation was deleted.

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.net/luccasoftware/apis/lucca-expenses.md) · [All operations](https://skmtc.net/luccasoftware/apis/lucca-expenses/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/luccasoftware/lucca-expenses/revisions/110f9897756c/schema)
