API Reference
Attendance
3 endpoints· Auth: JWT or API Key
get
/api/v1/console/hr/attendance JWT API KeyThe attendance grid
- Capability
view_hr- API key scope
cap:view_hr(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Query parameters
| From string (date) | — |
| To string (date) | — |
| EmployeeId string (uuid) | — |
| Status string | One of `present | absent | leave | rest_day | late | early_leave`. |
| Page integer (int32) | — |
| PerPage integer (int32) | — |
| Search string | Free-text filter. Its meaning is per-resource and documented on the endpoint. |
| Skip integer (int32) | Rows to skip, derived — never sent by the caller on this surface. |
| Sort string | A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order. |
| Dir string | `asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort. |
Responses
200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/hr/attendance" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Query parameters
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/hr/attendance JWT API KeyRecord or adjust one employee-day
An upsert on `(branch, employee, date)`, so re-submitting the same day corrects the row rather than adding a second one.
- Capability
manage_attendance- API key scope
cap:manage_attendance(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"employeeId": "00000000-0000-0000-0000-000000000000",
"date": "2026-11-27",
"status": "string",
"clockIn": "2026-11-27T14:05:11.728Z",
"clockOut": "2026-11-27T14:05:11.728Z",
"breakMinutes": 0,
"note": "string"
}| employeeId string (uuid) | — |
| date string (date) | The Baghdad working day. One row per employee per day (FR-HRM-017). |
| status string | One of the six statuses of FR-HRM-016. Derived statuses still come from the clock pair: a submitted `present` becomes `late` when the arrival says so. |
| clockIn string (date-time) | — |
| clockOut string (date-time) | — |
| breakMinutes integer (int32) | Unpaid break, minutes. Deducted from worked hours by the labour report; L13 records that the reference never wrote it, which is why it is on this request. |
| note string | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/attendance" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"employeeId": "00000000-0000-0000-0000-000000000000",
"date": "2026-11-27",
"status": "string",
"clockIn": "2026-11-27T14:05:11.727Z",
"clockOut": "2026-11-27T14:05:11.727Z",
"breakMinutes": 0,
"note": "string"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
post
/api/v1/console/hr/attendance/clock JWT API KeyThe quick clock.,
Always today's Baghdad business day — a live observation, not a dated correction.
- Capability
manage_attendance- API key scope
cap:manage_attendance(the key's owner must also hold the capability)- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
application/json
{
"employeeId": "00000000-0000-0000-0000-000000000000",
"mode": "In"
}| employeeId string (uuid) | — |
| mode AttendanceMode | — |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/attendance/clock" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"employeeId": "00000000-0000-0000-0000-000000000000",
"mode": "In"
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu