Overview / People & HR / Get one leave request

Get one leave request

get https://api.flactrum.com/v1/leave-requests/{leave}
Required scope leaves.read
Success status200
Returns One LeaveRequest object

Parameters

NameInTypeDescription
leave * path string ULID of the record.

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/01m43mzet19kypvfsf76xk2zs9' \
  -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"
    }
}