Overview / People & HR / List employee documents

List employee documents

get https://api.flactrum.com/v1/employee-documents

Shift assignment depends on these: an employee with no documents, or with an expired one, cannot be scheduled. An employee can hold several documents, including more than one of the same type — a renewal is a new record and the newest of each type is the one that counts.

Required scope employees.read
Panel screenStaff & HR → Employees → documents
Success status200
Returns A paginated list of EmployeeDocument objects

Parameters

NameInTypeDescription
employee_id query string —
type query string —
expired query boolean true lists the documents that are blocking people from being scheduled.
expiring_within_days query integer Renewals coming up.
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 —
issued_at string|null —
valid_until string|null —
is_expired boolean An expired document blocks shift assignment.
expires_soon boolean Expires within 30 days.
has_file boolean The file itself is private and never linked directly; download it from its own endpoint.
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/employee-documents' \
  -H 'Authorization: Bearer flk_your_key:your_secret' \
  -H 'Accept: application/json'

HTTP 200 · application/json

{
    "data": [
        {
            "id": "01m43mzebhcqp0xwvcb9a2vp8h",
            "employee_id": "01m43mzeat1pf150w4bsz88r15",
            "type": "hygiene",
            "issued_at": "2026-08-04",
            "valid_until": "2027-10-04",
            "is_expired": false,
            "expires_soon": false,
            "has_file": false,
            "note": null,
            "created_at": "2026-10-04T14:27:07+00:00",
            "updated_at": "2026-10-04T14:27:07+00:00"
        }
    ],
    "meta": {
        "total": 1,
        "page": 1,
        "per_page": 25,
        "last_page": 1
    }
}