API Reference
Check In
/api/v1/console/hr/attendance/evidence JWT API KeyThe review board, newest first
- Capability
review_attendance- API key scope
cap:review_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.
Query parameters
| EmployeeId string (uuid) | — |
| Status string | `approved | rejected | pending_review`. |
| Dispute string | `none | open | resolved`. |
| From string (date) | Inclusive lower bound on the Baghdad business day the photo was captured on. |
| To string (date) | Inclusive upper bound on the same. |
| 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/hr/attendance/evidence" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/hr/attendance/evidence JWTSubmit the captured selfie and get a verdict
Always 201: an evidence row is written for every attempt, and a rejection is a recorded outcome rather than a failed request. The verdict is on the payload's `status`.
- Signed-in user only
- Not open to API keys or OAuth tokens.
- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
{
"sessionId": "00000000-0000-0000-0000-000000000000",
"employeeId": "00000000-0000-0000-0000-000000000000",
"mode": "In",
"capturedAt": "2026-11-27T14:05:12.876Z",
"image": "string",
"faceMatchPct": 0,
"faceCount": 0,
"overlay": {
"code": "string",
"date": "string",
"time": "string"
},
"device": "string",
"gps": "string"
}| sessionId string (uuid) | The session issued by `POST /attendance/sessions`. A session that is unknown, expired, already burned, for a different employee or for a different mode makes `qrValid` false and the attempt is refused (FR-HRM-030). |
| employeeId string (uuid) | — |
| mode AttendanceMode | — |
| capturedAt string (date-time) | When the client says the photo was taken. Compared against the server clock; a drift above 30 seconds refuses the attempt (FR-HRM-031). |
| image string | The JPEG/PNG/WebP selfie as a `data:` URI, with the QR, the code, the server date and the server time burned into a footer band (FR-HRM-025). Decoded, magic-number sniffed and hashed before anything is persisted. |
| faceMatchPct number (double) | The browser's reported match, 0–100. <br>`double?` rather than `decimal?` on purpose: FR-HRM-029 requires a <b>non-finite</b> value (`NaN`, `±∞`) to sanitise to `null`, and a type that cannot represent one cannot be tested for it. The stored column is `numeric(9,6)` — exact, so a match value replays byte-identically when a dispute is re-opened years later. |
| faceCount integer (int32) | How many faces the browser detected. Clamped into `[0, 50]`; anything other than exactly one refuses the attempt (FR-HRM-029, FR-HRM-033). |
| overlay CheckInOverlayInfo | — |
| device string | User-agent or kiosk identifier. Truncated at 250 characters (FR-HRM-028). |
| gps string | An opaque GPS string, best-effort with a 2-second client budget. Truncated at 120 characters; absent is normal, not an error (FR-HRM-027). |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/attendance/evidence" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"sessionId": "00000000-0000-0000-0000-000000000000",
"employeeId": "00000000-0000-0000-0000-000000000000",
"mode": "In",
"capturedAt": "2026-11-27T14:05:12.875Z",
"image": "string",
"faceMatchPct": 0,
"faceCount": 0,
"overlay": {
"code": "string",
"date": "string",
"time": "string"
},
"device": "string",
"gps": "string"
}'Request body (JSON)
Headers
/api/v1/console/hr/attendance/evidence/{id}/decision JWT API KeyApprove or reject one attempt
A first approval writes the real attendance row and is therefore a dated write: a closed month comes back as `PERIOD_LOCKED`, because attendance overtime is the basis every payslip is valued from.
- Capability
review_attendance- API key scope
cap:review_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.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"decision": "string",
"reason": "string"
}| decision string | `approved` or `rejected`. Nothing else is a decision. |
| reason string | Why. Recorded on the row and in the audit trail; required for a rejection, because "rejected" with no reason is not something an employee can dispute. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/attendance/evidence/{id}/decision" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"decision": "string",
"reason": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/attendance/evidence/{id}/dispute JWT API KeyOpen or resolve a dispute on one attempt
- Capability
review_attendance- API key scope
cap:review_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.
Path parameters
| idrequired string (uuid) | — |
Request body
{
"dispute": "string",
"note": "string"
}| dispute string | `open` or `resolved`, in either direction. |
| note string | Optional. When omitted the previous note is retained rather than blanked (FR-HRM-040). |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/attendance/evidence/{id}/dispute" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"dispute": "string",
"note": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/attendance/sessions JWTOpen a 120-second check-in challenge.,,
Returns the code, the QR payload, the server's clock and — only because the match runs in the browser — the employee's face descriptor. A caller without `manage_attendance` can only ever open a session for their own record; anything else reads as a 404 rather than a 403, so the endpoint cannot be walked to discover employee ids.
- Signed-in user only
- Not open to API keys or OAuth tokens.
- Plan feature
hr_payrollmust be on the branch's plan, or the call answers 403.
Request body
{
"employeeId": "00000000-0000-0000-0000-000000000000",
"mode": "In"
}| employeeId string (uuid) | Who is checking in. <br>FR-HRM-022 authorises this two ways: a `manage_attendance` holder may open a session for <b>any</b> active employee of the branch (the kiosk posture), and every other caller only for the employee whose `userId` is their own login. The field is therefore not redundant with the principal — for most callers it must simply <i>agree</i> with it. |
| mode AttendanceMode | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/attendance/sessions" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"employeeId": "00000000-0000-0000-0000-000000000000",
"mode": "In"
}'Request body (JSON)
Headers