List shifts
wheniwork_list_shiftsList scheduled shifts in a time window — who works when, where and in which position — optionally including open shifts and unpublished drafts. Answers "who is on on Friday?" and "what open shifts are left?". When I Work: GET /2/shifts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End of the window. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). | |
| limit | No | Maximum number of results. | |
| start | No | Start of the window. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). | |
| deleted | No | Also return deleted_ids: shifts deleted in the window. | |
| user_id | No | Only this user's shifts. | |
| location_id | No | One or more schedule (location) ids. | |
| unpublished | No | Include unpublished (draft) shifts — supervisor or above. | |
| include_open | No | Include open (unassigned) shifts from the user's schedules. | |
| all_locations | No | Include shifts from all schedules. | |
| include_swaps | No | Include swap requests attached to the shifts. | |
| include_allopen | No | Include open shifts across all schedules — manager or admin. | |
| include_onlyopen | No | Return only open shifts. | |
| include_repeating_shifts_to | No | Also expand repeating shift series up to this date. Date-time, e.g. 2026-10-05T08:00:00-05:00 (When I Work's own examples also use RFC 2822, e.g. "Mon, 05 Oct 2026 08:00:00 -0500"). |