Skip to content

Student Enrollments

Endpoint used to retrieve the existing enrollments for a specific student in Toolzz LMS.

Terminal window
curl --request GET \
--url 'https://kong.api.toolzz.com.br/api/users/courses?by=email&value=student@example.com' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"institution_code": "myinstitution"
}'
{
"data": {
"id": 1,
"uuid": "<string>",
"name": "<string>",
"email": "<string>",
"cpf": "<string>",
"enrollment_start_date": "<string>",
"enrollment_end_date": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"ultima_atividade": "<string>",
"school": {
"id": 1,
"titulo": "<string>"
},
"address": {
"id": 1,
"address_id": 1,
"cep": "<string>",
"uf": "<string>",
"cidade": "<string>",
"bairro": "<string>",
"logradouro": "<string>",
"numero": "<string>",
"complemento": "<string>"
},
"custom_form": [
{
"enunciado": "<string>",
"pergunta_id": 1,
"resposta": "<string>"
}
],
"institution": [
{
"id": 1,
"subdomain": "<string>",
"titulo": "<string>"
}
]
}
}

Warning: The enrollment_start_date will be ignored for courses that do not use this configuration. Only applicable to specific platform components.


ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
bystringCan be "email" or "id".Yes
valuestringValue according to the by option. Can be a user’s email or ID.Yes
ParameterTypeDescriptionRequired
institution_codestringYour institution subdomain, as it appears in the original URL.Yes

KeyTypeDescription
dataobjectUser profile details.
data.idnumberUnique identifier of the user.
data.uuidstringUniversal unique identifier (UUID) of the user.
data.namestringFull name of the user.
data.emailstringUser email address.
data.cpfstringCPF.
data.enrollment_start_datestringStudent enrollment start date (YYYY-MM-DD format). Ignored if the course does not support this parameter.
data.enrollment_end_datestringStudent enrollment end date (YYYY-MM-DD format). Stored as matriculas.data_validade.
data.created_atstringDate and time the user was created.
data.updated_atstringDate and time of the last profile update.
data.ultima_atividadestringDate and time of the user’s last activity.
data.schoolobjectSchool information.
data.school.idnumberUnique identifier of the school.
data.school.titulostringSchool name.
data.addressobjectUser address details.
data.address.cepstringZIP code.
data.address.ufstringState abbreviation.
data.address.cidadestringCity name.
data.address.bairrostringNeighborhood name.
data.address.logradourostringStreet name.
data.address.numerostringResidence or apartment number.
data.address.complementostringAddress complement.
data.custom_formarrayList of custom questions and answers.
data.institutionarrayList of institutions associated with the user.

If enrollment_end_date is earlier than enrollment_start_date, the request will be rejected with the following error:

{
"error": "End date cannot be previous to Start date"
}

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.