Explanation about job, what it is within ASTRNT's scope.
-
Create Job
You can use this API to create a job. One of the return value from this API is job identifier. You need to save your job identifier so it can be used as a parameter input to call another API.
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. title String Y The name of the job that you want to create. The maximum string is 255. jobType String N If value full_time → it is a fulltime job. (Default)
If value part_time, → it is a part time job.
If value internship, → it is a internship.
If value contract, → it is a contract.jobStatus String N If value open, this position currently open.
If value filled, this position already filled.requireCv Integer N If value 0, cv is not required. (Default)
If value 1, cv is optional.
If value 2, cv is mandatory.language String N EN → for English Language
ID → for Indonesia Language
PT-BR → for Portuguese LanguageaboutDescription String N String of description about this job. responsibility String N String about this job responsibilities. requirement String N String about this job requirement. locations String N String about this job location.
Example: "Jakarta / Bandung / Surabaya".
If empty, Default: "Jakarta"industry Integer N Here’s the list of id and name of the industries, click here.
(But you just need to send the id).
If empty, the default would be "Others".tags Integer N String to describe tag of this job.
Example: #superteam #buildteamfast.deadline Datetime N Set deadline for this job’s open code interview. (if you not set the deadline, the deadline for this job’s open code interview is 30 days from you call this api) Format: "yyyy-MM-dd HH:mm:ss".
Example: 2016-08-31 10:10:10logo_url String N Set the company logo url of the job. company_name String N Name of the job's company.
If empty, the default would be your registered company name. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message. job_identifier String A 10 unique string character that identify your job identity. -
Code Example
//Javascript Code Example function postJob(){ var api_key = $('#api_key').val(); var title = $('#title').val(); var jobType = $('#jobType').val(); var jobStatus = $('#jobStatus').val(); var requireCv = $('#requireCv').val(); var aboutDescription = $('#aboutDescription').val(); var responsibility = $('#responsibility').val(); var requirement = $('#requirement').val(); var locations = $('#locations').val(); var industry = $('#industry').val(); var deadline = $('#deadline').val(); var logo = $('#industry').val(); var company_name = $('#deadline').val(); var confirmtext = 'Create Job?'; if(confirm(confirmtext)){ $.ajax({ method: "POST", url: "https://app.astrnt.co/api/job_list_create_job')", dataType: "json", data: {api_key: api_key, title: title, jobType: jobType, jobStatus: jobStatus, requireCv: requireCv, aboutDescription: aboutDescription, responsibility: responsibility, requirement: requirement, locations: locations, industry: industry, deadline: deadline, logo_url: logo_url, company_name: company_name}, success: function(json){ if(json.status == "SUCCESS"){ var job_identifier = json.job_identifier; alert('Job Created!'); return false; }else{ alert("Create Job Failed"); } } }); } }
-
-
Edit Job
You can use this API to edit a job. One of the parameter value from this API is job identifier that you get when you created a job with "create job API".
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. title String Y The name of the job that you want to create. The maximum string is 255. jobType String N If value full_time → it is a fulltime job. (Default)
If value part_time, → it is a part time job.
If value internship, → it is a internship.
If value contract, → it is a contract.language String N EN → for English Language
ID → for Indonesia Language
PT-BR → for Portuguese LanguagejobStatus String N If value open, this position currently open.
If value filled, this position already filled.requireCv Integer N If value 0, cv is not required. (Default)
If value 1, cv is optional.
If value 2, cv is mandatory.aboutDescription String N String of description about this job. responsibility String N String about this job responsibilities. requirement String N String about this job requirement. locations String N String about this job location.
Example: "Jakarta / Bandung / Surabaya".
If empty, Default: "Jakarta"industry Integer N Here’s the list of id and name of the industries, click here.
(But you just need to send the id).
If empty, the default would be "Others".tags Integer N String to describe tag of this job.
Example: #superteam #buildteamfast.company_name String N Name of the job's company.
If empty, the default would be your registered company name. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message.
-
-
Get List of Jobs
You can use this API to get all the job from that the api integration company has. The response of this request are the status and the list of job that contain the jobs’s name and it’s job identifier.
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message. job_list Array List of job that contain the jobs’s name and it’s job identifier.
-
-
Get List of Jobs with Properties
You can use this API to get all the job with the job’s properties from that the api integration company has. The response of this request are the status and the list of job that contain the jobs’s name, job’s identifier and all the job’s properties. If you want to get specific job’s properties for one specific job, add job_identifier parameter in your request.
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. job_identifier String N Your 10 unique string character that identify your job identity. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message. jobs_properties Array List of job with the job’s properties.
-
-
Delete Job
You can use this API to delete a job. One of the parameter value from this API is job identifier that you get when you created a job with "create job API".
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. job_identifier String Y Your 10 unique string character that identify your job identity. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message.
-
-
Get Job's Status
You can use this API to get the data of all candidate's status (answered candidate's videos url, the questions, etc) on one job. One of the parameter value from this API is job identifier that you get when you created a job with "create job API".
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. job_identifier String Y Your 10 unique string character that identify your job identity. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. result Array Data of all candidates on on job.
-
-
Get Job's Open Code
You can use this API to get your job’s open code. You can display or publish the open code result on your website or the internet so a lot of applicant can interview with this open code.
-
Parameters
Name Type Required? Description job_identifier String Y Your 10 unique string character that identify your job identity. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message. open_code String Job's open code.
-
-
Set Job Landing Page Questions
You can use this API to set a job landing page's questions same as the one in the ASTRNT recruiter dashboard. This API endpoint functionality is to register chosen questions into a job. Later on you can invite the candidates using Sent Invitation API endpoint so the candidate can answer the registered question in the job. Or you can ask the candidate to use the job's open code to do the assessment.
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. job_identifier String Y Your 10 unique string character that identify your job identity. questions_identifier Array Y Array of question identifier that identify the question you already created. deadline Datetime Y Set deadline for the interview. Format: "yyyy-MM-dd HH:mm:ss".
Example: 2016-08-31 10:10:10. -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message. open_code String Job's open code.
-
-
Get All Candidate's Data From Job
You can use this API to get the data of all candidate's data (answered candidate's videos url, the questions, etc) on one job. One of the parameter value from this API is job identifier that you get when you created a job with "create job API". You can sort it by candidate's status also (optional).
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. job_identifier String Y Your 10 unique string character that identify your job identity. status String N There are 5 candidate's status. (applied | disqualified | offer | shortlisted | sourced). You can input "all" to get all the candidates data. "sourced" status is the default when you sent invitation to candidate. sort String N You can sort candidate's data result by email and name (ascending and descending) with this value (name_asc / name_desc / email_asc / email_desc). -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message. candidates Array Data of all candidates on on job.
-
-
Get Candidate's Identifier
You can use this API to get the candidate identifier by email and the job identifer.
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. job_identifier String Y Your 10 unique string character that identify your job identity. email String Y Email of candidate -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. message String Description of the status message. candidate_identifier Array Candidate's identifier.
-
-
Get Candidate's Status on Job QnA Session
You can use this API to get the candidate's status on Job Qna Session. There are 4 candidate's status (unregistered | has_not_started | on_process | finished)
- unregistered → candidate has not registered into the job qna session.
- has_not_started → candidate registered but not started the interview yet.
- on_process → candidate registered and is on the qna session process.
- finished → candidate already finished the qna session.
-
Parameters
Name Type Required? Description api_key String Y Your 65 unique string character that identify your identity. job_identifier String Y Your 10 unique string character that identify your job identity. email String Y Email of candidate -
Response
Attribute Type Description status String SUCCESS/ERROR, status of the request. candidate_status String Candidate status on job. message String Description of the status message.