HRM Pro

Recruitment REST API

This page lists the REST API endpoints of WP ERP Recruitment. Use them to show your jobs on a different website, or to connect Recruitment to a different tool.

  • Base URL: https://your-site.com/wp-json/erp/v1/hrm/recruitment
  • Format: JSON. Lists are JSON arrays. Errors are a JSON object with a message, and an HTTP status code.
  • Pages: List endpoints send the X-WP-Total and X-WP-TotalPages headers.

Authentication

  • GET /jobs is public. It shows published jobs only, and any website can read it.
  • All other endpoints need a WordPress user with the manage_recruitment capability. Administrators and HR managers have it.
  • Use a WordPress Application Password. Make it at Users → Profile → Application Passwords. Send it with HTTP Basic authentication.
curl -u "alex.morgan:abcd efgh ijkl mnop qrst uvwx" \
  "https://your-site.com/wp-json/erp/v1/hrm/recruitment/candidates"

Endpoints

MethodEndpointWhat it does
GET/jobsList published jobs. Public.
GET/jobs/{job_id}Get one job.
POST, PUT, PATCH/jobs/{job_id}Update a job.
POST, PUT, PATCH/jobs/{job_id}/statusChange the status of a job.
GET/jobs/{job_id}/candidatesList the candidates of a job.
GET/candidatesList candidates.
GET/candidates/{id}Get one candidate.
POST, PUT, PATCH/candidates/{id}/stageMove a candidate to a stage.
POST/candidates/{id}/shortlistMove a candidate to a stage (optional stage_id).
POST, PUT, PATCH/candidates/{id}/statusSet the status of a candidate.
GET/candidates/{id}/cv/downloadDownload the CV file.
GET/candidates/{id}/cv/previewGet the CV file links.
POST/candidates/{id}/interviewSchedule an interview.
GET/candidates/{id}/interviewsList the interviews of a candidate.
GET/statusesList the candidate statuses.
GET/stagesList the hiring stages.
POST/stagesAdd a stage.
GET/stages/{id}Get one stage.
POST, PUT, PATCH/stages/{id}Rename a stage.
DELETE/stages/{id}Delete a stage.
GET/stages/{id}/jobsList the jobs that use a stage.
GET/stages/{stage_id}/candidatesList the candidates in a stage.

In the candidate endpoints, {id} is the application ID (application_id). One person who applies to two jobs has two application IDs.

Jobs

GET /jobs

ParameterTypeDefaultDescription
pageinteger1Page number.
per_pageinteger20Jobs per page.
search or search_keystringSearch the job title.
department_idintegerFilter by department.
statusstringallall, publish, expired, closed, draft, or pending. Visitors who are not logged in get published jobs only.
curl "https://your-site.com/wp-json/erp/v1/hrm/recruitment/jobs?per_page=2"
{
  "jobs": [
    {
      "id": "106",
      "title": "HR Generalist",
      "status": "publish",
      "guid": "https://your-site.com/job/hr-generalist/",
      "publish_date": "2026-11-17 10:52:53",
      "department_id": "10",
      "department_name": "Human Resources",
      "employment_type": "permanent",
      "minimum_experience": "5 Years",
      "remote_job": false,
      "expire_date": "2027-01-14",
      "location": "Austin, TX",
      "vacancy": 1,
      "currency": "USD",
      "salary": "64000",
      "salary_type": "yearly"
    }
  ],
  "departments": [ { "id": 3, "title": "Finance & Accounting" } ]
}

GET /jobs/{job_id}

Returns one job with the same fields, plus description.

POST /jobs/{job_id}

Updates a job. Send only the fields that you want to change.

ParameterTypeDescription
titlestringJob title.
descriptionstringJob description. HTML is allowed.
statusstringpublish, draft, pending, closed, or expired.
departmentintegerDepartment ID.
employment_typestringEmployment type.
vacancyintegerNumber of open positions.
expire_datestringLast day to apply (YYYY-MM-DD). Send an empty string to remove it.
remote_jobbooleanRemote job or not.
locationstringJob location.
minimum_experiencestringMinimum experience.
salarystringSalary amount. An amount that is not valid returns error 422.
salary_typestringFor example hourly, monthly, or yearly.
currencystringCurrency code, for example USD.
street_address, address_locality, postal_code, address_countrystringJob address.

POST /jobs/{job_id}/status

ParameterTypeRequiredDescription
statusstringYespublish, draft, pending, closed, or expired.

You cannot make a new job with the API. Make jobs in Recruitment → Add Opening.

Candidates

GET /candidates

The same parameters work for GET /jobs/{job_id}/candidates and GET /stages/{stage_id}/candidates.

ParameterTypeDefaultDescription
pageinteger1Page number.
per_pageinteger10Candidates per page.
searchstringSearch the name or email.
job_idintegerFilter by job.
stage_idintegerFilter by stage.
statusstringFilter by status, for example nostatus, rejected, or hired.
rating_min, rating_maxintegerFilter by average rating.
orderbystringapply_datename, email, apply_date, rating, or stage.
orderstringDESCASC or DESC.
date_from, date_tostringFilter by apply date (YYYY-MM-DD).
[
  {
    "application_id": "6",
    "applicant_id": "15",
    "job_id": "102",
    "job_title": "Senior Frontend Developer",
    "first_name": "Olivia",
    "last_name": "Bennett",
    "full_name": "Olivia Bennett",
    "email": "[email protected]",
    "phone": null,
    "stage_id": "1",
    "stage_title": "Screening",
    "apply_date": "2026-11-17 16:52:53",
    "candidate_status": "nostatus",
    "avg_rating": 3,
    "cv_files": [ { "id": "108", "filename": "resume.pdf", "download_url": "…", "preview_url": "…" } ]
  }
]

POST /candidates/{id}/stage

ParameterTypeRequiredDescription
stage_idintegerYesThe ID of the new stage.

POST /candidates/{id}/shortlist

Takes an optional stage_id. If you send it, the candidate moves to that stage.

POST /candidates/{id}/status

ParameterTypeRequiredDescription
status_namestringYesnostatus, rejected, withdrawn, or decline_offer. Get the list from GET /statuses.

GET /candidates/{id}/cv/download

Returns the CV file itself, as a download.

GET /candidates/{id}/cv/preview

Returns the links of the CV files:

{ "cv_files": [ { "id": 108, "url": "https://your-site.com/wp-content/uploads/resume.pdf", "filename": "resume.pdf", "type": "application/pdf" } ] }

POST /candidates/{id}/interview

ParameterTypeRequiredDescription
interview_type_idintegerYesA stage ID. The stage is the interview type.
start_date_timestringYesStart date and time (YYYY-MM-DD HH:MM:SS).
duration_minutesstringNoLength in minutes.
interview_detailstringNoPlace, phone number, or notes.
interviewer_idsarrayNoUser IDs of the interviewers.

Stages

POST /stages and POST /stages/{id}

ParameterTypeRequiredDescription
titlestringYesStage title. Each title must be different.

DELETE /stages/{id}

You cannot delete a stage that has candidates, or a stage that a job uses. The API then returns error 409.

GET /stages

ParameterTypeDescription
job_idintegerShow the stages of one job.
searchstringSearch the stage title.

Errors

CodeMeaning
400A parameter is missing or not valid. For example, "Title is required" or "Invalid status".
401You are not logged in, or the Application Password is wrong.
403The user does not have the manage_recruitment capability.
404The job, candidate, stage, or CV does not exist.
409The stage title already exists, or the stage still has candidates or jobs.
422The salary amount is not valid.
500A server error occurred.

What changed in 2.0

  • Only GET /jobs is public. In the old documentation, GET /stages, GET /candidates, and GET /statuses were public. They now need authentication.
  • Responses are plain JSON arrays and objects. They are not wrapped in success and data.
  • POST /jobs (make a job) is not available.
  • New endpoints: GET /stages/{id}, GET /stages/{id}/jobs, POST /candidates/{id}/stage, and POST /candidates/{id}/interview.
  • /cv/download returns the file. /cv/preview returns the file links. The old documentation described them the other way around.
  • The status parameter of /candidates/{id}/status is status_name.
  • New filters on the candidate lists: rating_min, rating_max, orderby, order, date_from, and date_to.

Was this article helpful to you?

How can we help?