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

Parameters: list_open_shifts
NameTypeDescription
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
curl "https://cotlet.dev/api/v1/shiftbase/open-shifts?from=from&to=to" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("shiftbase", "list_open_shifts", {"from":"from","to":"to"})
Node.js
const result = await cotlet.call('shiftbase', 'list_open_shifts', {"from":"from","to":"to"});
CLI
cotlet call shiftbase list_open_shifts --data '{"from":"from","to":"to"}'

Example response

JSON

{
  "open_shifts": [
    {
      "id": "90512",
      "date": "2026-11-04",
      "start": "09:00",
      "end": "15:00",
      "team": "Kitchen",
      "applicants": []
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.