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
Method Endpoint What 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
Parameter Type Default Description pageinteger 1 Page number. per_pageinteger 20 Jobs per page. search or search_keystring Search the job title. department_idinteger Filter by department. statusstring allall, 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.
Parameter Type Description titlestring Job title. descriptionstring Job description. HTML is allowed. statusstring publish, draft, pending, closed, or expired.departmentinteger Department ID. employment_typestring Employment type. vacancyinteger Number of open positions. expire_datestring Last day to apply (YYYY-MM-DD). Send an empty string to remove it. remote_jobboolean Remote job or not. locationstring Job location. minimum_experiencestring Minimum experience. salarystring Salary amount. An amount that is not valid returns error 422. salary_typestring For example hourly, monthly, or yearly. currencystring Currency code, for example USD. street_address, address_locality, postal_code, address_countrystring Job address.
POST /jobs/{job_id}/status
Parameter Type Required Description statusstring Yes publish, 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.
Parameter Type Default Description pageinteger 1 Page number. per_pageinteger 10 Candidates per page. searchstring Search the name or email. job_idinteger Filter by job. stage_idinteger Filter by stage. statusstring Filter by status, for example nostatus, rejected, or hired. rating_min, rating_maxinteger Filter by average rating. orderbystring apply_datename, email, apply_date, rating, or stage.orderstring DESCASC or DESC.date_from, date_tostring Filter 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
Parameter Type Required Description stage_idinteger Yes The 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
Parameter Type Required Description status_namestring Yes nostatus, 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
Parameter Type Required Description interview_type_idinteger Yes A stage ID. The stage is the interview type. start_date_timestring Yes Start date and time (YYYY-MM-DD HH:MM:SS). duration_minutesstring No Length in minutes. interview_detailstring No Place, phone number, or notes. interviewer_idsarray No User IDs of the interviewers.
Stages
POST /stages and POST /stages/{id}
Parameter Type Required Description titlestring Yes Stage 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
Parameter Type Description job_idinteger Show the stages of one job. searchstring Search the stage title.
Errors
Code Meaning 400 A parameter is missing or not valid. For example, "Title is required" or "Invalid status". 401 You are not logged in, or the Application Password is wrong. 403 The user does not have the manage_recruitment capability. 404 The job, candidate, stage, or CV does not exist. 409 The stage title already exists, or the stage still has candidates or jobs. 422 The salary amount is not valid. 500 A 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.