Skip to content

List Classes

Endpoint used to list essential information about classes within educational institutions in Toolzz LMS.

Warning: This endpoint will only work correctly if the domain of your institution is manually provided in the URL. Otherwise, the endpoint may fail or return a validation error.

Terminal window
curl --request GET \
--url 'https://{your-institution-domain}/api/v1/schools/{schoolId}/classrooms?page=1&perPage=20' \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": [
{
"id": 1,
"schoolId": 1,
"title": "<string>",
"code": "<string>",
"image": "<string>",
"course": "<string>",
"group": [{ "id": 1, "name": "<string>" }],
"subgroups": [{ "id": 1, "name": "<string>" }],
"specialties": [{ "id": 1, "name": "<string>" }],
"trails": [],
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"meta": {
"total": 100,
"per_page": 20,
"current_page": 1,
"last_page": 5,
"first_page_url": "<string>",
"last_page_url": "<string>",
"next_page_url": "<string>",
"prev_page_url": null,
"from": 1,
"to": 20
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
schoolIdstringIdentifier of the school whose classes will be listed.Yes
ParameterTypeDescriptionRequired
codestringFilter classes by code.No
titlestringFilter classes by title.No
pagestringPage number of class records to display.No
perPagenumberNumber of records per page. Maximum allowed: 100.No

KeyTypeDescription
successbooleanIndicates if the request was successful.
dataarrayList of classes.
data.idnumberUnique identifier of the class.
data.schoolIdnumberIdentifier of the associated school.
data.titlestringClass title.
data.codestringClass code.
data.imagestringClass image URL.
data.coursestringName of the associated course.
data.grouparrayList of groups associated with the class.
data.subgroupsarrayList of subgroups associated with the class.
data.specialtiesarrayList of specialties associated with the class.
data.trailsarrayList of trails associated with the class.
data.createdAtstringDate and time the class was created.
data.updatedAtstringDate and time the class was last updated.
metaobjectResponse metadata.
meta.totalnumberTotal number of classes.
meta.per_pagenumberNumber of items per page.
meta.current_pagenumberCurrent page number.
meta.last_pagenumberLast page number.
meta.first_page_urlstringURL of the first page.
meta.last_page_urlstringURL of the last page.
meta.next_page_urlstringURL of the next page (if available).
meta.prev_page_urlstringURL of the previous page (if available).
meta.fromnumberIndex of the first item on the current page.
meta.tonumberIndex of the last item on the current page.

To access this endpoint, it is necessary to send a valid access token through the authorization header (Authorization) of the request. Additionally, the API is protected by other security measures to safeguard user data.