;

List all tests

Returns the list of all tests, both active and inactive tests, including tests created in subusers.
GET https://apiv3.interviewmocha.com/v3/tests
  • Docs
  • Try it
Request URL Parameters
Field Type Required Default
pageNo Integer No 1
pageSize Integer No 100
Response
Field Type Description
testId Integer64 Unique identifier given to each test
testName String Name of the test
status String Current state of test. Can be Active, Inactive
count Integer Total number of tests created under any account in your organization. Includes active and inactive as well.
Example API endpoint

URL 1: /v3/tests

URL 2: /v3/tests?pageNo=1&pageSize=500

Successful response

Status 200 OK

                        
Response
{ "tests": [ { "testId": 2929130, "testName": "C# 6.0", "status": "Active" }, { "testId": 3021435, "testName": "Php Web Development - Beginner", "status": "Active" }, { "testId": 3024436, "testName": "PHP 7", "status": "Inactive" }, { "testId": 3023437, "testName": "React Native", "status": "Inactive" }, { "testId": 3027438, "testName": "Angular 7", "status": "Active" } ], "count": 5 }
Failed response

Status 400 Bad Request

If required parameters have invalid values.

Response
{ "errors": [ "Page number is not valid integer or less than 1", "Page size is not valid integer or less than 1" ] }
Parameter Value Description Parameter Type Data Type
pageNo To retrieve test based on page number Query Integer
pageSize Number of tests to return per page Query Integer
  • Response Body