Skip to content

List Themes

This endpoint allows listing the available themes of the institution in Toolzz LMS.

Terminal window
curl --request GET \
--url 'https://kong.api.toolzz.com.br/api/content/get-all-themes?page=1&per_page=100' \
--header 'Authorization: Bearer <token>'
{
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"instituicao_id": 123,
"user_id": 456,
"ciclo_id": 789,
"titulo": "<string>",
"tag": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"questions": [
{
"id": 1,
"tipo": 1,
"pergunta": "<string>",
"tag": "<string>"
}
]
}
],
"first_page_url": "<string>",
"last_page": 10,
"per_page": 10,
"total": 100
},
"message": "Themes successfully listed"
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
pagenumberPage number that will be returned (pagination starting at 1).No
per_pagenumberAmount of items per page (for pagination control).No
searchstringText search by keywords to filter themes by name or related attributes.No

KeyTypeDescription
dataobjectMain API response containing the themes and pagination metadata.
data.current_pagenumberCurrent page of the paginated query.
data.dataarrayList of returned themes.
data.data.idnumberUnique ID of the theme.
data.data.instituicao_idnumberID of the institution associated with the theme.
data.data.user_idnumberID of the user who created the theme.
data.data.ciclo_idnumberID of the associated educational cycle.
data.data.titulostringTitle/name of the theme.
data.data.tagstringTags associated with the theme (separated by comma).
data.data.created_atstringTheme creation date.
data.data.updated_atstringDate of the last update of the theme.
data.data.questionsarrayList of questions associated with the theme.
data.data.questions.idnumberQuestion ID.
data.data.questions.tiponumberQuestion type (1=discursive, 2=multiple choice).
data.data.questions.perguntastringQuestion text (can contain HTML).
data.data.questions.tagstringTags associated with the question.
data.first_page_urlstringURL of the first page of results.
data.last_pagenumberNumber of the last available page.
data.per_pagenumberAmount of items per page.
data.totalnumberTotal items available in the query.
messagestringDescriptive message about the operation result.

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.