Skip to content

New Enrollment

The main purpose of this webhook is to provide updated information about user enrollments, allowing the institution to track the flow of registrations, manage resources and course content, and take appropriate actions.

ParameterTypeDescription
namestringName of the event: “Atividades - Nova matrícula”
slugstringUnique identifier: activities.course.enrollment
send_atstringDate and time of the event (format: “yyyy-MM-dd HH:mm:ss”)

ParameterTypeDescription
idnumberNumerical identifier of the institution.
ParameterTypeDescription
idnumberNumerical identifier of the course.
namestringName of the course.
ParameterTypeDescription
idnumberNumerical identifier of the enrollment.
date_expirestring | nullExpiration date of the enrollment (format: “yyyy-MM-dd”).
course_idnumberNumerical identifier of the course associated with the enrollment.
activedbooleanIndicates if the enrollment is activated (1 for yes, 0 for no).
statusnumberIndicates the enrollment status (1 for active, 0 for inactive).
ParameterTypeDescription
idnumberNumerical identifier of the user.
namestringName of the user.
emailstringEmail address of the user.
cpfstringUser’s CPF.
nicknamestring | nullUser’s nickname.
uuidstring | nullUniversal unique identifier of the user.

The event is triggered in the following scenarios:

  • When a user clicks the “Start” button on a catalog card.
  • When a user clicks “Start/Enroll” in course details.
  • When a user clicks on a content item in course details.
  • When a student is invited to a class.
  • When an enrollment is made via API.
{
"event": {
"name": "Atividades - Nova matrícula",
"slug": "activities.course.enrollment",
"send_at": "2023-07-03 12:53:41"
},
"data": {
"institution": {
"id": 12345
},
"course": {
"id": 123456,
"name": "Course Name"
},
"enrollment": {
"id": 11,
"date_expire": null,
"course_id": 123456789,
"actived": 1,
"status": 1
},
"user": {
"id": 987654321,
"name": "Student",
"email": "student@toolzz.com",
"cpf": "123.456.789-99",
"nickname": null,
"uuid": null
}
}
}

Ensure that the destination URL is correct before you start sending payloads. Verify that the parameters sent are correct and complete. Make sure that the webhook recipients are correct and valid. Log and monitor all webhook calls for auditing and troubleshooting purposes.