Skip to content

Institution Courses Report

Endpoint used to retrieve information about the courses available in the institution.

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/reports/courses?page=1&perPage=20' \
--header 'Authorization: Bearer <token>'
{
"data": {
"current_page": 1,
"from": 1,
"last_page": 3,
"to": 20,
"total": 46,
"data": [
{
"id": 1,
"title": "<string>",
"imageUrl": "<string>",
"classrooms": [
{
"id": 1,
"schoolId": 1,
"title": "<string>",
"code": "<string>"
}
]
}
],
"links": {
"first": "<string>",
"last": "<string>",
"prev": null,
"next": "<string>"
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 3,
"path": "<string>",
"per_page": 20,
"to": 20,
"total": 46,
"links": [
{
"url": "<string>",
"label": "<string>",
"active": true
}
]
}
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
pagestringSpecifies the page number of results to be returned.No
perPagestringDefines the number of results per page.No

KeyTypeDescription
dataobjectContains the paginated listing of courses with their classes.
data.current_pagenumberCurrent page of the listing.
data.fromnumberIndex of the first item on the current page.
data.last_pagenumberTotal number of available pages.
data.tonumberIndex of the last item on the current page.
data.totalnumberTotal number of courses listed.
data.dataarrayList of courses with related data.
data.data.idnumberUnique identifier of the course.
data.data.titlestringCourse title.
data.data.imageUrlstringURL of the course cover image.
data.data.classroomsarrayList of classes associated with the course.
data.data.classrooms.idnumberUnique identifier of the class.
data.data.classrooms.schoolIdnumberSchool identifier to which the class belongs.
data.data.classrooms.titlestringClass title.
data.data.classrooms.codestringUnique class code.
data.linksobjectPagination links.
data.links.firststringURL of the first page.
data.links.laststringURL of the last page.
data.links.prevstringURL of the previous page (may be null).
data.links.nextstringURL of the next page (may be null).
data.metaobjectAdditional pagination metadata.
data.meta.current_pagenumberCurrent page.
data.meta.fromnumberStarting index in the list.
data.meta.last_pagenumberLast available page.
data.meta.pathstringBase path for pages.
data.meta.per_pagenumberNumber of items per page.
data.meta.tonumberEnding index on the current page.
data.meta.totalnumberTotal records found.
data.meta.linksarrayList of pagination links.
data.meta.links.urlstringURL of the corresponding page (may be null).
data.meta.links.labelstringDescriptive label of the page.
data.meta.links.activebooleanIndicates if this is the active 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.