Overview / Operations / List shifts

List shifts

get https://api.flactrum.com/v1/shifts

Shift definitions belong to a branch: two branches of the same brand can run different hours.

Required scope shifts.read
Panel screenOperations → Shifts
Success status200
Returns A paginated list of Shift objects

Parameters

NameInTypeDescription
branch_id query string —
page query integer Page number.
per_page query integer Page size. Values above the maximum are rejected rather than silently clamped.
updated_since query string Only records changed at or after this instant. Use it for incremental sync.
sort query string Column to sort by. Each endpoint lists what it accepts.
direction query string Sort direction.

Response fields

FieldTypeDescription
id string —
branch_id string —
name string —
start_time string —
end_time string —
crosses_midnight boolean True when the shift runs into the next day (23:00–07:00).
color string|null —
assignment_count integer —

Examples

Recorded from the test suite — these are real requests and their real responses.

curl -X GET 'https://api.flactrum.com/v1/shifts' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": [
        {
            "id": "01m43mzajhtwxa3zcyjz55tgf4",
            "branch_id": "01m43mzaj0mr7w28veyst93v03",
            "name": "Sabah",
            "start_time": "07:00:00",
            "end_time": "15:00:00",
            "crosses_midnight": false,
            "color": "#6A34E0",
            "assignment_count": 0,
            "created_at": "2026-10-04T14:27:03+00:00",
            "updated_at": "2026-10-04T14:27:03+00:00"
        }
    ],
    "meta": {
        "total": 1,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}