Staff
Staff module extends users with salary, KPIs, and payslips.
The staff model
Properties
- Name
id- Type
- string
- Description
Staff record UUID.
- Name
userId- Type
- string
- Description
Linked Cleos user.
GET/api/staff
List staff
Staff directory.
Request
GET
/api/staffcurl -X GET http://localhost:3000/api/staff \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"data": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"userId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"fullName": "Dr. Lee",
"department": "Clinical"
}
]
}
GET/api/staff/:id
Retrieve staff
Staff profile and HR fields.
Request
GET
/api/staff/:idcurl -X GET http://localhost:3000/api/staff/:id \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"userId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"salary": null,
"kpis": [],
"goals": []
}
GET/api/staff/:id/attendance
Attendance today
Attendance for staff member.
Request
GET
/api/staff/:id/attendancecurl -X GET http://localhost:3000/api/staff/:id/attendance \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"date": "2026-10-05",
"clockIn": "2026-10-05T06:30:00.000Z",
"clockOut": null,
"hoursWorked": null
}
GET/api/attendance/clock
Clock
Current clock state for session user.
Request
GET
/api/attendance/clockcurl -X GET http://localhost:3000/api/attendance/clock \
-H "Authorization: Bearer YOUR_JWT"
Response
{
"clockedIn": true,
"clockInAt": "2026-10-05T06:30:00.000Z",
"branchId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}