Skip to content

List Contents

This endpoint allows listing or exporting the contents of your institution in Toolzz LMS.

Terminal window
curl --request GET \
--url 'https://kong.api.toolzz.com.br/api/content' \
--header 'Authorization: Bearer <token>'
{
"success": true,
"contents": {
"current_page": 1,
"data": [
{
"id": 1,
"title": "<string>",
"description": "<string>",
"contentType": "video",
"contentUrl": "<string>",
"isPublic": true,
"createdAt": "2024-08-12T10:42:31.000000Z"
}
],
"first_page_url": "<string>",
"from": 1,
"last_page": 10,
"last_page_url": "<string>",
"links": [
{
"url": "<string>",
"label": "1",
"active": true
}
],
"next_page_url": "<string>",
"path": "<string>",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 100
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
typestringFilters contents by type. Accepted values: text, audio, video, pdf, live.No
course_idintegerFilters contents from a specific course based on the course ID.No
does_sendemailbooleanSet to 1 to receive a file with the listed contents by email.No
email_to_sendstringEmail address to which the generated file will be sent.No
publicbooleanAllows searching for standalone contents in the catalog.No
tagsstringAllows searching by tags associated with the content.No
per_pageintegerNumber of records returned per page in pagination.No
querystringFilters data by title and description. For ID-based search, use comma-separated numbers (e.g., 1,2).No
contents_idsstringFilters by content IDs.No

KeyTypeDescription
successbooleanIndicates whether the request was completed successfully.
contentsobjectMain object containing the paginated list of contents.
contents.current_pagenumberCurrent page number returned in the pagination.
contents.dataarrayList of contents returned on this page.
contents.data.idnumberUnique identifier of the content.
contents.data.titlestringTitle of the content.
contents.data.descriptionstringHTML description of the content, used for initial presentation.
contents.data.contentTypestringContent type (e.g., text, video, quiz).
contents.data.contentUrlstringURL to view the full content.
contents.data.isPublicbooleanDefines whether the content is publicly accessible (true) or restricted (false).
contents.data.createdAtstringContent creation date in ISO 8601 format (e.g., 2024-08-12T10:42:31.000000Z).
contents.first_page_urlstringURL of the first page of the listing.
contents.fromnumberIndex of the first item displayed on this page.
contents.last_pagenumberTotal number of available pages.
contents.last_page_urlstringURL of the last page of the listing.
contents.linksarrayList of objects representing pagination navigation links.
contents.links.urlstringURL for the page indicated in the label (may be null for disabled links).
contents.links.labelstringText displayed in the navigation control (e.g., 1, « Previous).
contents.links.activebooleanIndicates whether the item represents the currently active page.
contents.next_page_urlstringURL of the next page (or null if it is the last page).
contents.pathstringBase API path used in pagination.
contents.per_pagenumberNumber of items returned per page.
contents.prev_page_urlstringURL of the previous page (or null if it is the first).
contents.tonumberIndex of the last item on the current page.
contents.totalnumberTotal items available in the listing.

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.