Search... K
Appearance
Welcome!
Welcome to the new PCRecruiter API documentation website!
We plan to use this area to announce upcoming changes and additions to our API, so please keep an eye out here for future announcements.
Get Started!
Appearance
The inhaler endpoint is used to easily parse a candidate record into the database using a resume or object created from a form. This is mostly used with a job board integration where the candidate object can be filled out via an apply form or automatically parsed from the resume or file sent in the API call. Using the candidate object gives you greater control over the data as you are manually setting the values for each field parameter. If a form was not filled out to supply this data, you can use the parsing ability to extract candidate field data via the file attached to the call.
When Attaching a file to this API call, you will use a base64 encoded string in the FileContents parameter. This file will serve as the active resume for the candidate record being added. You are not required to parse the data when attaching a file so you may manually set the candidate object and attach a file to be used as the active resume.
POST /rest/api/Candidates/inhaler
Authorization: BEARER {SessionId}
{
"FileName": "Current Resume",
"FileContents": "{Base64 encoded string}",
"useAddr": false,
}{
"method": "POST",
"url": "https://www2.pcrecruiter.net/rest/api/Candidates/Inhaler",
"headers": {
"Content-Type": "application/json",
"Authorization": "BEARER Token"
},
"body": {
"FileName": "Current Resume",
"FileContents": "{Base64 encoded string}",
"useAddr": false,
}
}{
"FileName": null,
"FileContents": null,
"EncodingType": null,
"Src": null,
"JobId": null,
"Duplicate": false,
"DupeId": 0,
"AddId": {CandidateId},
"rolluplist": null,
"useAddr": false,
"errorMessage": "",
"status": "SUCCESS",
"NameInfo":{
"AggregateCount": null
}
}TIP
This API call uses the inhaler endpoint to pass the file name and base 64 encoded file contents and use the parsing capability to create the candidate record and fill out the candidate field from the parsed information found within the file contents. This method is not as accurate as setting your own nameinfo parameters but can be used in the absence of that data outside of the file contents.
POST /rest/api/Candidates/inhaler
Authorization: BEARER {SessionId}
{
"FileName": "Current Resume",
"FileContents": "{Base64 encoded string}",
"useAddr": true,
"NameInfo": {
"firstname":"Jane",
"lastname":"Smith",
"address":"4420 Sherwin Road",
"city":"Willoughby",
"state":"Ohio",
"zip":"44094",
"country":"United States",
"emailaddress":"support@mainsequence.net",
"mobilephone":"(440) 946-5214",
"title":"QA Analyst",
"coid":"{CompanyId}"
}
}{
"method": "POST",
"url": "https://www2.pcrecruiter.net/rest/api/Candidates/Inhaler",
"headers": {
"Content-Type": "application/json",
"Authorization": "BEARER Token"
},
"body": {
"FileName": "Current Resume",
"FileContents": "Base64 encoded string",
"useAddr": true,
"NameInfo": {
"firstname":"Jane",
"lastname":"Smith",
"address":"4420 Sherwin Road",
"city":"Willoughby",
"state":"Ohio",
"zip":"44094",
"country":"United States",
"emailaddress":"support@mainsequence.net",
"mobilephone":"(440) 946-5214",
"title":"QA Analyst",
"coid":"CompanyId"
}
}
}{
"FileName": null,
"FileContents": null,
"EncodingType": null,
"Src": null,
"JobId": null,
"Duplicate": false,
"DupeId": 0,
"AddId": {CandidateId},
"rolluplist": null,
"useAddr": false,
"errorMessage": "",
"status": "SUCCESS",
"NameInfo":{
"AggregateCount": null
}
}TIP
This API call uses the inhaler endpoint to pass the file name and base 64 encoded file contents but uses the NameInfo object to assign exact values to each field. This will create a candidate with the NameInfo candidate object and have the file attached as the current resume.