Skip to content

Create Users in Multiple Schools

Endpoint used to register new students in Toolzz LMS in one or more schools of your institution.

Terminal window
curl --request POST \
--url 'https://kong.api.toolzz.com.br/api/users' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"email": "student@example.com",
"name": "Student Name",
"schools": [1, 2],
"permission": 3,
"cpf": "<string>",
"phone": "<string>",
"birth_date": "2000-01-01",
"password": "<string>"
}'
{
"data": {
"ra": null,
"img_perfil": "<string>",
"nome_completo": "<string>",
"data_nascimento": null,
"cpf": null,
"rg": null,
"telefone": null,
"ocupacao": null,
"genero": null,
"descricao": null,
"escola_id": 1,
"permissao": "<string>",
"ultima_atividade": "<string>",
"trial": 0,
"status_id": 1,
"name": "<string>",
"email": "<string>",
"terms": "<string>",
"privilegio_id": "<string>",
"uuid": "<string>",
"updated_at": "<string>",
"created_at": "<string>",
"id": 1
}
}

ParameterTypeDescriptionRequired
AuthorizationStringAccess token (“Bearer” must be before the token)Yes
ParameterTypeDescriptionRequired
emailstringNew user’s email address.Yes
namestringNew user’s name.Yes
schoolsnumber[]ID of the school or schools in which the new user will be registered.Yes
permissionintNew user’s permission level. Allowed values: 2, 3, 4, 5.Yes
cpfstringNew user’s CPF.No
phonestringNew user’s phone number.No
birth_datedateNew user’s date of birth.No
passwordstringNew user’s password.No

KeyTypeDescription
dataobjectDetails of the user profile.
data.rastringRegistration number (may be null).
data.img_perfilstringProfile image filename.
data.nome_completostringUser’s full name.
data.data_nascimentostringDate of birth (may be null).
data.cpfstringCPF (may be null).
data.rgstringRG (may be null).
data.telefonestringContact phone (may be null).
data.ocupacaostringUser occupation (may be null).
data.generostringGender (may be null).
data.descricaostringAdditional description (may be null).
data.escola_idnumberUnique identifier of the associated school.
data.permissaostringUser permission level.
data.ultima_atividadestringDate and time of last activity.
data.trialnumberIndicates if the user is in a trial period (0: No, 1: Yes).
data.status_idnumberUser status identifier.
data.namestringUser name.
data.emailstringUser email address.
data.termsstringIndicates if the user accepted the terms.
data.privilegio_idstringPrivilege level identifier.
data.uuidstringUniversal Unique Identifier (UUID) of the user.
data.updated_atstringDate and time of the last profile update.
data.created_atstringDate and time of profile creation.
data.idnumberUnique identifier of the user.

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.