List all tests

Returns the list of all active tests, including tests created in subusers.
GET https://apiv3.imocha.io/v3/tests
  • Docs
  • Try it
Request URL Parameters
Field Type Required Default
pageNo Integer No 1
pageSize Integer No 100
labelsFilter String No -
status String No -
By default list test api returns first 100 records
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.
duration Integer Total time allocated for the test
questions Integer No of questions present in test
labels List of Sting Test labels are nothing but tags or topics that can be added to every test in your account
Example API endpoint

URL 1: /v3/tests

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

Successful response

Status 200 OK

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

Status 400 Bad Request

If required parameters have invalid values.

{ "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