This endpoint lets you fetch multiple tests under your organization. You can apply filters and manage pagination in your request using query parameters.
| Query Parameters | Expected Values | Default |
| mode | "basic" | "detailed" | "basic" |
| limit | number | 10 |
| page | number | 1 |
| title | string |
- mode: The mode of the return value. "detailed" mode will provide more information.
- title: Ability to filter by title (case insensitive). Works with partial match.
Response
{
tests: (Basic | Detailed)[];
pagination: {
totalItems: number;
totalPages: number;
currentPage: number;
limit: number;
next: string | null;
previous: string | null;
}
}The type of the tests depends on the value of mode provided in the query parameters. If the value of mode is "basic", the test object in the response will be in this type:
// "basic" test object:
{
testId: string;
title: string;
createdAt: number; // seconds
}If the value of mode is "detailed", you will receive all of the properties from "basic" and also these properties:
// "detailed" test object:
Basic & {
organizationId: string;
description: string;
timeLimit: number; // seconds
favorite: boolean;
folder: string;
labels: string[];
tags: Record;
sections: {
uuid: string;
title: string | null;
timeLimit: number; //seconds
noOfPages: number;
}[];
}