API Reference

Employees

9 endpoints· Auth: JWT or API Key
get/api/v1/console/hr/departments JWT API Key

The org-chart pickers

Read-only: L2 records that no create path exists for either table, in the reference or here.

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 GET "https://staging-api.panoptesos.com/api/v1/console/hr/departments" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/hr/employees 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

DepartmentId
string (uuid)
—
PositionId
string (uuid)
—
EmploymentStatus
EmploymentStatus
Filter on the closed `employee_employment_status` enum. Null lists every status — a suspended employee is still on the roster.
IncludeRetired
boolean
Show tombstoned employees. Honoured only for a `manage_employees` holder (FR-HRM-011): defaulting retired staff into every picker is how a payroll run offers to pay someone who left.
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/employees" \
  -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/employees JWT API Key

Hire

The `EMP-NNNN` code is minted server-side inside the creating transaction under a per-branch advisory lock — there is no field for it on the request.

Capability
manage_employees
API key scope
cap:manage_employees (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
{
  "fullName": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "phone": "string",
  "email": "string",
  "address": "string",
  "nationalId": "string",
  "photoUrl": "string",
  "dateOfBirth": "2026-11-27T14:05:12.437Z",
  "gender": "Male",
  "maritalStatus": "Single",
  "emergencyName": "string",
  "emergencyPhone": "string",
  "departmentId": "00000000-0000-0000-0000-000000000000",
  "positionId": "00000000-0000-0000-0000-000000000000",
  "hireDate": "2026-11-27",
  "contractType": "FullTime",
  "baseSalary": 0,
  "allowances": 0,
  "annualLeaveBalance": 0
}
fullName
string
—
userId
string (uuid)
Optional link to a login. Unique per `(branchId, userId)`, so one login may be staff in more than one branch (FR-HRM-010).
phone
string
—
email
string
—
address
string
—
nationalId
string
—
photoUrl
string
—
dateOfBirth
string (date-time)
—
gender
Gender
—
maritalStatus
MaritalStatus
—
emergencyName
string
—
emergencyPhone
string
—
departmentId
string (uuid)
—
positionId
string (uuid)
—
hireDate
string (date)
—
contractType
EmployeeContractType
—
baseSalary
integer (int64)
Monthly base, `long` minor units of the branch's currency (IQD exponent 0, so a minor unit is a dinar). Never negative (FR-HRM-007).
allowances
integer (int64)
Standing monthly allowances, minor units.
annualLeaveBalance
number (double)
Days remaining this year. `decimal`, not money — a half-day has to survive a round trip exactly (FR-HRM-048).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/employees" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "fullName": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "phone": "string",
  "email": "string",
  "address": "string",
  "nationalId": "string",
  "photoUrl": "string",
  "dateOfBirth": "2026-11-27T14:05:12.436Z",
  "gender": "Male",
  "maritalStatus": "Single",
  "emergencyName": "string",
  "emergencyPhone": "string",
  "departmentId": "00000000-0000-0000-0000-000000000000",
  "positionId": "00000000-0000-0000-0000-000000000000",
  "hireDate": "2026-11-27",
  "contractType": "FullTime",
  "baseSalary": 0,
  "allowances": 0,
  "annualLeaveBalance": 0
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/hr/employees/{id} JWT API Key

One employee

A row 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 GET "https://staging-api.panoptesos.com/api/v1/console/hr/employees/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
put/api/v1/console/hr/employees/{id} JWT API Key

Edit.,,

Capability
manage_employees
API key scope
cap:manage_employees (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)
—

Request body

application/json
{
  "fullName": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "phone": "string",
  "email": "string",
  "address": "string",
  "nationalId": "string",
  "photoUrl": "string",
  "dateOfBirth": "2026-11-27T14:05:12.438Z",
  "gender": "Male",
  "maritalStatus": "Single",
  "emergencyName": "string",
  "emergencyPhone": "string",
  "departmentId": "00000000-0000-0000-0000-000000000000",
  "positionId": "00000000-0000-0000-0000-000000000000",
  "hireDate": "2026-11-27",
  "contractType": "FullTime",
  "baseSalary": 0,
  "allowances": 0,
  "annualLeaveBalance": 0
}
fullName
string
—
userId
string (uuid)
—
phone
string
—
email
string
—
address
string
—
nationalId
string
—
photoUrl
string
—
dateOfBirth
string (date-time)
—
gender
Gender
—
maritalStatus
MaritalStatus
—
emergencyName
string
—
emergencyPhone
string
—
departmentId
string (uuid)
—
positionId
string (uuid)
—
hireDate
string (date)
—
contractType
EmployeeContractType
—
baseSalary
integer (int64)
—
allowances
integer (int64)
—
annualLeaveBalance
number (double)
—

Responses

200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/hr/employees/{id}" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "fullName": "string",
  "userId": "00000000-0000-0000-0000-000000000000",
  "phone": "string",
  "email": "string",
  "address": "string",
  "nationalId": "string",
  "photoUrl": "string",
  "dateOfBirth": "2026-11-27T14:05:12.436Z",
  "gender": "Male",
  "maritalStatus": "Single",
  "emergencyName": "string",
  "emergencyPhone": "string",
  "departmentId": "00000000-0000-0000-0000-000000000000",
  "positionId": "00000000-0000-0000-0000-000000000000",
  "hireDate": "2026-11-27",
  "contractType": "FullTime",
  "baseSalary": 0,
  "allowances": 0,
  "annualLeaveBalance": 0
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/hr/employees/{id} JWT API Key

Retire the record

A tombstone with a mandatory reason, never a hard `DELETE`, and refused while the person is still `active` or still carries an outstanding loan or advance.

Capability
manage_employees
API key scope
cap:manage_employees (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)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X DELETE "https://staging-api.panoptesos.com/api/v1/console/hr/employees/{id}" \
  -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/employees/{id}/employment-status JWT API Key

Move along the employment lifecycle

Its own endpoint rather than a field on the edit, because it is its own audit verb (`CHANGE_EMPLOYMENT_STATUS`) and its own question: "who suspended this person, and when" must be one query rather than a scan of every employee update.

Capability
manage_employees
API key scope
cap:manage_employees (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)
—

Request body

application/json
{
  "status": "Active",
  "reason": "string"
}
status
EmploymentStatus
—
reason
string
Why. Recorded in the audit payload, because "who suspended this person and on what grounds" is the question a dispute opens with.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/employees/{id}/employment-status" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "status": "Active",
  "reason": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

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

The caller's own employee record — id, code, name and status, nothing else

No capability attribute, on purpose, exactly as the check-in actions it serves (`CheckInController`): every role checks itself in, and a waiter holds no `view_hr` to find their own id on the roster. The service reads only the row whose `userId` is the caller's login; a login with no record here is a 404. Still authenticated — "no capability" means any signed-in user, never anyone.

API key scope
Any key holding a cap: scope (a read every signed-in role can make).
Plan feature
hr_payroll must be on the branch's plan, or the call answers 403.

Responses

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

Headers

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

Get positions

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 GET "https://staging-api.panoptesos.com/api/v1/console/hr/positions" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu