API Reference

Shifts

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

The roster

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

From
string (date)
—
To
string (date)
—
EmployeeId
string (uuid)
—
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/roster" \
  -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/roster JWT API Key

Put one employee on one day's roster, mark it a rest day, or clear it

Exactly one of the three intents per call, and the employee is proved to be this branch's before anything is written — L7 records that the reference took the employee id on trust here and stamped the caller's branch onto the new row.

Capability
manage_attendance
API key scope
cap:manage_attendance (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.

Request body

application/json
{
  "employeeId": "00000000-0000-0000-0000-000000000000",
  "date": "2026-11-27",
  "shiftId": "00000000-0000-0000-0000-000000000000",
  "restDay": false,
  "clear": false
}
employeeId
string (uuid)
—
date
string (date)
—
shiftId
string (uuid)
The template. Must resolve inside the caller's branch; a cross-branch id reads as `NOT_FOUND`.
restDay
boolean
A scheduled day off. Mutually exclusive with Panoptes.Application.DTOs.Requests.Hr.AssignShiftRequest.ShiftId.
clear
boolean
Retire the day's assignment entirely. Mutually exclusive with both of the above.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/roster" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "employeeId": "00000000-0000-0000-0000-000000000000",
  "date": "2026-11-27",
  "shiftId": "00000000-0000-0000-0000-000000000000",
  "restDay": false,
  "clear": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/hr/shifts JWT API Key

Shift templates

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

Active
boolean
Null lists both; the pickers want `true`.
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/shifts" \
  -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/shifts JWT API Key

Create a template

Owner and HR Manager only.

An overnight template (`16:00 → 00:00`) is accepted and flagged `crossesMidnight` in the response:'s guard means it records no overtime and no early leave at all ( L5), and a console that offers one without saying so is promising a measurement the system does not make.

Capability
manage_hr_settings
API key scope
cap:manage_hr_settings (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.

Request body

application/json
{
  "name": "string",
  "startTime": "string",
  "endTime": "string"
}
name
string
—
startTime
string
—
endTime
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/shifts" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "startTime": "string",
  "endTime": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu