Overview / People & HR / List leave requests

List leave requests

get https://api.flactrum.com/v1/leave-requests
Required scope leaves.read
Panel screenStaff & HR → Leave requests
Success status200
Returns A paginated list of LeaveRequest objects

Parameters

NameInTypeDescription
employee_id query string —
status query string —
type query string —
from query string Leave ending on or after.
to query string Leave starting 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 —
employee_id string —
type string Free text: annual, unpaid, sick…
starts_on string —
ends_on string —
days integer|null Inclusive of both ends.
status string —
reason string|null —
approved_at string|null —

Examples

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

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

HTTP 200 · application/json

{
    "data": [
        {
            "id": "01m43mzet19kypvfsf76xk2zs9",
            "employee_id": "01m43mzesp3ztn3m7y2t1nk0n6",
            "employee": {
                "id": "01m43mzesp3ztn3m7y2t1nk0n6",
                "first_name": "Derin",
                "last_name": "Pektemek",
                "full_name": "Derin Pektemek",
                "position": "Barista",
                "phone": null,
                "email": null,
                "status": "active",
                "branch_id": "01m43mzesbr26zpq4kd1rbkkjg",
                "user_id": null,
                "hired_at": "2023-12-04",
                "left_at": null,
                "monthly_gross_salary": null,
                "insurance_rate": null,
                "note": null,
                "created_at": "2026-10-04T14:27:08+00:00",
                "updated_at": "2026-10-04T14:27:08+00:00"
            },
            "type": "annual",
            "starts_on": "2026-10-11",
            "ends_on": "2026-10-15",
            "days": 5,
            "status": "pending",
            "reason": "Yıllık izin",
            "approved_by": null,
            "approved_at": null,
            "created_at": "2026-10-04T14:27:08+00:00",
            "updated_at": "2026-10-04T14:27:08+00:00"
        }
    ],
    "meta": {
        "total": 1,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}