Overview / Operations / List shift assignments

List shift assignments

get https://api.flactrum.com/v1/shift-assignments
Required scope shifts.read
Panel screenOperations → Shifts → plan grid
Success status200
Returns A paginated list of ShiftAssignment objects

Parameters

NameInTypeDescription
branch_id query string —
shift_id query string —
employee_id query string —
status query string —
from query string Work date on or after.
to query string Work date on or before.
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 —
shift_id string —
employee_id string —
branch_id string —
work_date string —
status string —
note string|null —

Examples

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

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

HTTP 200 · application/json

{
    "data": [
        {
            "id": "01m43mzazr980y6epjwgqz4620",
            "shift_id": "01m43mzaz6mv4p7g2ek5pp4j6h",
            "shift": {
                "id": "01m43mzaz6mv4p7g2ek5pp4j6h",
                "branch_id": "01m43mzayxt6yszc3te0n120hx",
                "name": "Sabah",
                "start_time": "07:00:00",
                "end_time": "15:00:00",
                "crosses_midnight": false,
                "color": null,
                "created_at": "2026-10-04T14:27:04+00:00",
                "updated_at": "2026-10-04T14:27:04+00:00"
            },
            "employee_id": "01m43mzaz8sxcszffawy57vfy7",
            "employee": {
                "id": "01m43mzaz8sxcszffawy57vfy7",
                "first_name": "Şahnur",
                "last_name": "Çörekçi",
                "full_name": "Şahnur Çörekçi",
                "position": "Barista",
                "phone": null,
                "email": null,
                "status": "active",
                "branch_id": "01m43mzayxt6yszc3te0n120hx",
                "user_id": null,
                "hired_at": "2024-12-04",
                "left_at": null,
                "monthly_gross_salary": null,
                "insurance_rate": null,
                "note": null,
                "created_at": "2026-10-04T14:27:04+00:00",
                "updated_at": "2026-10-04T14:27:04+00:00"
            },
            "branch_id": "01m43mzayxt6yszc3te0n120hx",
            "work_date": "2026-10-05",
            "status": "planned",
            "note": null,
            "created_at": "2026-10-04T14:27:04+00:00",
            "updated_at": "2026-10-04T14:27:04+00:00"
        }
    ],
    "meta": {
        "total": 1,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}