Reference Checks: Retrieving, Uploading, and Deleting Reference Check Files via the API

This article covers the three Reference Check endpoints: retrieving reference checks (with attached files) for a candidate, uploading a file to an existing reference check, and deleting a previously uploaded reference check file.

Retrieving Reference Checks with Files

GET

Retrieves a list of reference checks for a candidate, including any files attached to each reference check. Reference checks are returned as part of the candidate record by requesting the referenceCheck field.

https://api.recman.io/v2/get/index.php?scope=candidate&key={{api_key}}&page=1&candidateId={{candidateId}}&fields=referenceCheck

The candidateFileId returned for each file can be used to download the file via the candidate files download endpoint.

ParameterRequiredDescription
keyRequiredYour API key
scopeRequiredMust be set to candidate
pageRequiredPage number
candidateIdRequiredThe ID of the candidate whose reference checks should be retrieved
fieldsRequiredMust include referenceCheck to return reference check data.

Each returned reference check includes the following fields:

FieldTypeDescription
referenceCheckIdintegerThe ID of the reference check
notesstringFree text notes for the reference check
statusinteger0 = Not approved, 1 = Approved
createddate-timeCreation date, format "Y-m-d H:i:s"
updateddate-timeLast updated date, format "Y-m-d H:i:s"
filesarray of objectFiles attached to the reference check; see the table below.

Each object in the files array contains:

FieldTypeDescription
referenceCheckFileIdintegerThe ID of the file on the reference check
namestringFile name with extension
createddate-timeCreation date, format "Y-m-d H:i:s"
candidateFileIdintegerThe candidate file ID, used to download the file via the candidate files download endpoint.

Uploading a Reference Check File

POST

Uploads a file and attaches it to an existing reference check on a candidate. The response includes both a referenceCheckFileId and a fileId.

https://api.recman.io/v2/post/

Operation: insert, scope: candidate.

FieldTypeDescription
candidateIdintegerRequired. The ID of the candidate the reference check belongs to.
fileobjectRequired. See sub-fields below.

The file object requires the following sub-fields:

Sub-fieldTypeDescription
namestringName of the file
extstringFile extension, e.g., "jpeg"
createddate-timeFormat "Y-m-d H:i:s"
referenceCheckIdintegerRequired. The ID of the reference check to attach the file to
base64stringBase64-encoded file content

Note

To find a candidate's existing reference check IDs, use the Get Candidate request with the
referenceCheck field included.

Deleting a Reference Check File

POST

Deletes a previously uploaded reference check file.

https://api.recman.io/v2/post/

Operation: delete, scope: candidateReferenceCheckFile.

FieldTypeRequiredDescription
candidateIdintegerRequiredThe ID of the candidate
referenceCheckIdintegerRequiredThe ID of the reference check the file belongs to
referenceCheckFileIdintegerRequiredThe ID of the file to delete

Note

To obtain information about a candidate's reference checks and their attached files, use the Get Candidate request with the referenceCheck field included.

Was this article helpful?
0 out of 0 found this helpful