API Reference
Recruitment
/api/v1/console/hr/candidates JWT API KeyThe pipeline, newest first
- Capability
manage_recruitment- API key scope
cap:manage_recruitment(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
| JobOpeningId string (uuid) | — |
| Stage string | `applied | interview | accepted | onboarding | hired | rejected`. |
| 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/candidates" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/hr/candidates JWT API KeyAdd an applicant
A named `jobOpeningId` must belong to the caller's branch — L7 records the reference taking it on trust and stamping the caller's branch onto the row, which is a cross-branch write dressed as a create. A cross-branch vacancy reads as `NOT_FOUND`.
- Capability
manage_recruitment- API key scope
cap:manage_recruitment(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
{
"jobOpeningId": "00000000-0000-0000-0000-000000000000",
"fullName": "string",
"phone": "string",
"email": "string",
"cvUrl": "string",
"stage": "string",
"interviewAt": "2026-11-27T14:05:11.996Z",
"rating": 0,
"note": "string"
}| jobOpeningId string (uuid) | Optional — a speculative application belongs to no vacancy. When present it must resolve inside the caller's branch; L7 records the reference not checking that. |
| fullName string | — |
| phone string | — |
| email string | — |
| cvUrl string | — |
| stage string | Absent or unknown becomes `applied` (FR-HRM-068). |
| interviewAt string (date-time) | — |
| rating integer (int32) | 0–5. Zero means "not rated", not "rated zero". |
| note string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/candidates" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"jobOpeningId": "00000000-0000-0000-0000-000000000000",
"fullName": "string",
"phone": "string",
"email": "string",
"cvUrl": "string",
"stage": "string",
"interviewAt": "2026-11-27T14:05:11.983Z",
"rating": 0,
"note": "string"
}'Request body (JSON)
Headers
/api/v1/console/hr/candidates/{id}/hire JWT API KeyConvert a candidate into an employee
One transaction: take the branch's `employee-code` advisory lock, mint the next `EMP-NNNN` over a count that includes tombstoned rows, create the employee, flip the candidate to `hired`, and append both audit rows. A second hire of the same candidate is a `CONFLICT` — the alternative is two employee records and two codes for one person, splitting their attendance and their payslips across two identities.
- Capability
manage_recruitment- API key scope
cap:manage_recruitment(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
{
"departmentId": "00000000-0000-0000-0000-000000000000",
"positionId": "00000000-0000-0000-0000-000000000000",
"hireDate": "2026-11-27"
}| departmentId string (uuid) | Optional org-chart placement, resolved inside the caller's branch. Offered because L16 records that the reference copied only name, phone and email, leaving every new hire to be edited immediately afterwards. |
| positionId string (uuid) | — |
| hireDate string (date) | Absent means today's Baghdad business day (FR-HRM-069). |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/candidates/{id}/hire" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"departmentId": "00000000-0000-0000-0000-000000000000",
"positionId": "00000000-0000-0000-0000-000000000000",
"hireDate": "2026-11-27"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/candidates/{id}/stage JWT API KeyMove a candidate between stages
`hired` is refused here on purpose — see M:Panoptes.Api.Controllers.V1.Console.Hr.RecruitmentController.Hire(System.Guid,Panoptes.Application.DTOs.Requests.Hr.HireCandidateRequest,System.Threading.CancellationToken). It also carries the interview slot, the rating and the note, which L16 records as displayed-but-unwritable in the reference: columns on a screen that nothing could ever fill.
- Capability
manage_recruitment- API key scope
cap:manage_recruitment(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
{
"stage": "string",
"interviewAt": "2026-11-27T14:05:11.997Z",
"rating": 0,
"note": "string"
}| stage string | `applied | interview | accepted | onboarding | rejected`. |
| interviewAt string (date-time) | Optional interview slot, set as the candidate reaches the interview stage. |
| rating integer (int32) | 0–5, updated as the panel forms a view. |
| note string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/candidates/{id}/stage" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"stage": "string",
"interviewAt": "2026-11-27T14:05:11.983Z",
"rating": 0,
"note": "string"
}'Path parameters
Request body (JSON)
Headers
/api/v1/console/hr/job-openings JWT API KeyVacancies, open ones first
- Capability
manage_recruitment- API key scope
cap:manage_recruitment(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
| Status string | `open | closed`. Null lists both. |
| DepartmentId 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
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/hr/job-openings" \
-H "X-Api-Key: <YOUR_API_KEY>"Query parameters
Headers
/api/v1/console/hr/job-openings JWT API KeyPost a vacancy
- Capability
manage_recruitment- API key scope
cap:manage_recruitment(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
{
"title": "string",
"departmentId": "00000000-0000-0000-0000-000000000000",
"description": "string"
}| title string | — |
| departmentId string (uuid) | — |
| description string | — |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/job-openings" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"title": "string",
"departmentId": "00000000-0000-0000-0000-000000000000",
"description": "string"
}'Request body (JSON)
Headers
/api/v1/console/hr/job-openings/{id}/status JWT API KeyOpen or close a vacancy
Closing a pipeline is its own act, not a field on an edit: L16 records that `JobOpening.status` never left `open` in the reference because no path moved it. Setting it to the value it already holds is a `CONFLICT` — an audit row asserting a change that did not happen is worse than useless in an append-only log.
- Capability
manage_recruitment- API key scope
cap:manage_recruitment(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
{
"status": "string"
}| status string | `open | closed`. |
Responses
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/hr/job-openings/{id}/status" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"status": "string"
}'Path parameters
Request body (JSON)
Headers