Get test details

  • Description

    Returns the details of a test
  • URL structure

    https://api.interviewmocha.com/v2/tests/{testId}

  • Request Method

    GET

  • Request Data

    Parameters
    Parameter Description Default Data Type Is Mandatory
    testId Test Id associated with particular test None Int64 Yes
  • Response Data

    Parameters
    Argument Name Description Return Data Type
    statuscode Status code returned with every response. String
    description Status code message. String
    result Wrapper Object Object
    result.accesskey Access key of Test String
    result.testId ID of Test Int64
    result.testName Name of Test String
    result.duration Duration of Test in minutes Integer
    result.testStatus Status of a test (Active/Inactive) String
    result.questions Number of question in test Integer
    result.startDateTime Onward date test is valid to appear UTC Date Time
    result.endDateTime Till date test is valid to appear UTC Date Time
    result .sections[N].sectionName Name of section String
    result .sections[N].sectionType Type of section [general questions | coding questions] String
    result.sections[N].questions Number of questions in section Integer
    result.sections[N].duration Section duration in minutes Integer
  • Sample Code

    Example Curl request will look like this:

    curl -i -H "x-api-key:YOUR_API_KEY_HERE" -H
    "content-type:application/json;charset=utf-8"
    -X GET https://api.interviewmocha.com/v2/tests/840799

    Response Body:
    {
      "statuscode": "200.1",
      "description": "The request has succeeded.",
      "result": {
        "testId": 840799,
        "testName": "C/ C++ Assessment",
        "accessKey": "cf8fdd2d0eef",
        "duration": 50,
        "questions": 50,
        "startDateTime": "2015-06-25T21:11:00.19Z",
        "endDateTime": "2015-06-26T21:31:03.19Z",
        "testStatus": "Active",
        "sections": [
          {
            "sectionName": "Aptitude",
            "sectionType": "General Questions",
            "questions": 10,
            "duration": 10
          },
          {
            "sectionName": "C Language",
            "sectionType": "General Questions",
            "questions": 10,
            "duration": 10
          },
          {
            "sectionName": "C++ Language",
            "sectionType": "General Questions",
            "questions": 20,
            "duration": 20
          },
          {
            "sectionName": "Communication",
            "sectionType": "General Questions",
            "questions": 10,
            "duration": 10
          }
        ]
      }
    }