API Reference

HR Notifications

4 endpoints· Auth: JWT or API Key
get/api/v1/console/hr/notifications JWT API Key

The board — unread first, then newest

Capability
view_hr
API key scope
cap:view_hr (the key's owner must also hold the capability)
Plan feature
hr_payroll must be on the branch's plan, or the call answers 403.

Query parameters

Unread
boolean
Null lists both; the badge wants `true`.
Type
string
One of <c>absence | shift_missed | contract_expiry | document_expiry | loan_overdue | leave_pending | payroll_due</c>. Four of the seven have no generator — see `HrNotificationService` for which, and why that is recorded rather than invented.
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/notifications" \
  -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/notifications/{id}/read JWT API Key

Mark one alert read

An alert in another branch is a 404, never a 403.

Capability
view_hr
API key scope
cap:view_hr (the key's owner must also hold the capability)
Plan feature
hr_payroll must be on the branch's plan, or the call answers 403.

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/notifications/{id}/read" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/hr/notifications/read-all JWT API Key

Clear the badge

Returns how many rows moved.

Capability
view_hr
API key scope
cap:view_hr (the key's owner must also hold the capability)
Plan feature
hr_payroll must be on the branch's plan, or the call answers 403.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/notifications/read-all" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/hr/notifications/rebuild JWT API Key

Re-scan and reconcile

Documents expiring inside 30 days or already expired, leave still pending, and a missing payroll run for the current month — every window measured on the Baghdad business day, never the server's calendar day.

Capability
view_hr
API key scope
cap:view_hr (the key's owner must also hold the capability)
Plan feature
hr_payroll must be on the branch's plan, or the call answers 403.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/notifications/rebuild" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu