List shifts
rotacloud_list_shiftsList rota shifts in a time range: start/end times (Unix seconds), break, assigned user (null = open shift), location, role, notes, published and acknowledged state. Filter by users, locations, roles, open or published. GET /shifts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z). | |
| open | No | true = only open (unassigned) shifts, false = only assigned shifts. | |
| limit | No | Results per page, 1-500 (RotaCloud may cap it lower; the reply's total and next_offset show what is left). | |
| roles | No | Only shifts with these role ids. | |
| start | Yes | Unix timestamp (seconds), an ISO 8601 date (2026-10-12 = 00:00 UTC) or an ISO 8601 date-time with a time zone (2026-10-12T09:00:00+01:00 or ...Z). | |
| users | No | Only shifts of these user ids (add 0 to include open shifts). | |
| offset | No | Index of the first result; pass the previous reply's next_offset. | |
| locations | No | Only shifts at these location ids. | |
| published | No | true = only published shifts, false = only unpublished (draft) shifts. | |
| include_deleted | No | Include deleted shifts. |