List open shifts
List open shifts that no employee holds yet.
GET https://cotlet.dev/api/v1/shiftbase/open-shifts
read
Returns the open shifts with date, times, team and the employees who applied. An empty applicants list means nobody has asked for the shift. Shifts opened by an approved absence appear here too.
Parameters
| Name | Type | Description |
|---|---|---|
| from string required | string | First day, YYYY-MM-DD. |
| to string required | string | Last day, YYYY-MM-DD. |
| department_id string | string | Only this department. |
Request
curl "https://cotlet.dev/api/v1/shiftbase/open-shifts?from=from&to=to" \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("shiftbase", "list_open_shifts", {"from":"from","to":"to"}) const result = await cotlet.call('shiftbase', 'list_open_shifts', {"from":"from","to":"to"}); cotlet call shiftbase list_open_shifts --data '{"from":"from","to":"to"}' Example response
{
"open_shifts": [
{
"id": "90512",
"date": "2026-11-04",
"start": "09:00",
"end": "15:00",
"team": "Kitchen",
"applicants": []
}
]
}