APITest APIGet Test Report Detalis

Get test report details

This endpoint Gets details of a specific test report.

Endpoint

 GET https://api.ezyhire.com/test/getTestReportDetails/{testID}

Request

Headers
USER-Key: User/API key for authentication
 
Path: Test ID
 

Response

Successful Response
Status Code: 200 OK
Content:json
{
 "statusCode": 200,
 "error": null,
 "statusCode": 200,
 "error": null,
 "message": "Success",
 "data": {
   "testId": "string",
   "hrTemplateId": "ALL",
   "testStatus": "COMPLETED",
   "testSubStatus": "COMPLETED",
   "employerId": "string",
   "email": "string",
   "firstName": "string",
   "lastName": "string",
   "submittedOn": [
       YYYY,
       MM,
       DD,
       HH,
       MM,
       SS,
       NNNNNNN
     ],
   "numberOfQuestions": 0,
   "numberOfQuestionsAttempted": 0,
   "cutoff": 0,
   "testScore": 0,
   "testTotalMarks": 0,
   "eyeFocused": 0,
   "faceDetected": 0,
   "faceNotDetected": 0,
   "faceMoved": 0,
   "voiceDetected": 0,
   "emotionIndex": "{\"neutral\":0,\"happy\":0,\"sad\":0,\"angry\":0,\"fearful\":0,\"disgusted\":0,\"surprised\":0}",
   "stressDetected": 0,
   "testCompletionTime": 0,
   "encodedImage": "string",
   "testName": "string",
   "userInfo": "string",
   "createdOn": [
       YYYY,
       MM,
       DD,
       HH,
       MM,
       SS,
       NNNNNNN
     ],
   "submittedQuesAns": [
     {
       "questionId": "string",
       "question": "string",
       "options": ["string"],
       "correctAnswer": "string",
       "submittedAnswer": "string",
       "maxMarks": 0,
       "questionType": "SINGLE_CORRECT",
       "category": "string",
       "questionTimer": 0,
       "questionDifficulty": "EASY",
       "correct": true
     }
   ],
   "codeSubmitContracts": [
     {
       "codeSubmittedId": "string",
       "testId": "string",
       "questionId": "string",
       "question": "string",
       "submittedCode": "string",
       "submittedCodeFiles": [
         {
           "name": "string",
           "content": "string"
         }
       ],
       "submittedLanguage": "string",
       "compilerOutput": "string",
       "codingTestStatus": "SUBMITTED", 
       "ezyhireEvaluation": "true",
       "ezyhireComment": "string",
       "marksAwarded": 0,
       "maxMarks": 0,
       "category": "string",
       "questionDifficulty": "EASY" 
     }
    ],
   "promptSubmitContracts": [
     {
       "promptSubmittedId": "string",
       "testId": "string",
       "questionId": "string",
       "question": "string",
       "submittedPrompt": "string",
       "promptTestStatus": "SUBMITTED", 
       "ezyhireEvaluation": true,
       "ezyhireComment": "string",
       "marksAwarded": 0,
       "maxMarks": 0,
       "category": "string",
       "questionDifficulty": "EASY",
       "answerType": "CODE_EXPLANATION" 
     }
   ],
   "linkedinURL": "string",
   "hrEvaluation": true,
   "linkedinEvaluation": false,
   "submittedHrAnswer": "string",
   "hrQuestionsWeightage": 0,
   "testSentType": "RECRUIT_PRO",
   "linkedInInformations": "string",
   "skillsToCheck": "string",
   "templateType": "SINGLE_CORRECT",
   "idVerificationSessionId": "string",
   "idVerification": true,
   "onboardingStatus": "UNKNOWN",
   "candidate_ATS_Id": "string",
   "reportSummary": "string",
   "candidateGeoData": "string"
 }
}

Fields with Enum Values

Field NamePossible Values/Enums
testStatusSENT, IN_PROGRESS, COMPLETED, INACTIVE, ALL
testSubStatusIN_PROGRESS, COMPLETED, INACTIVE, USER_SUBMITTED, SYSTEM_SUBMITTED, IDEAL_SUBMITTED, ALL
questionTypeSINGLE_CORRECT, MULTIPLE_CORRECT, CODING, PROMPT
questionDifficultyEASY,MODERATE, DIFFICULT, ALL
testSentTypeRECRUIT_PRO, NORMAL, LIVE_TEST
templateTypeSINGLE_CORRECT, MULTIPLE_CORRECT, CODING, PROMPT, CUSTOM, FREESTYLE, ALL
codingTestStatus/promptTestStatusSUBMITTED, AI_EVALUATED, MANUAL_EVALUATED, COMPLETED
onboardingStatusUNKNOWN, ID_VALIDATION_FINISHED, POST_PROCESSING_FINISHED, FACE_VALIDATION_FINISHED, GOVERNMENT_VALIDATION_FINISHED, ONBOARDING_FINISHED, MANUAL_REVIEW_APPROVED, MANUAL_REVIEW_REJECTED
answerTypeCODE_EXPLANATION, PROMPT, SUBJECTIVE_AI, SUBJECTIVE_MANUAL, NA, ALL
Error Response
Status Code: 401 Unauthorized
Content:json
{
  "status": 401,
  "message": "Invalid User/API key"
  "error": "Please provide a valid User/API key"
}
Error Response
Status Code: 400 Bad Request
Content:json
{
  "statusCode": 400,
  "error": "Test not completed.",
  "message": "string",
  "data": "string"
}
Error Response
Status Code: 400 Bad Request
Content:json
{
  "statusCode": 400,
  "error": "Invalid test id",
  "message": null,
  "data": null
}
Error Response
Status Code: 204 No Content
Content:json
{
  "status": 204,
  "message": "No Content",
  "data": null
}
Error Response
Status Code: 500 Internal Server Error 
Content:json
{
  "statusCode": 500,
  "error": null,
  "message": "string",
  "data": "string"
}