Skip to content

Content Completed

The main purpose of this webhook is to provide a real-time notification when a user completes a content. This allows the institution or system to record and track user progress.

ParameterTypeDescription
namestringName of the event: “Atividades - Conteúdo”
slugstringUnique identifier: activities.content.completed
send_atstringDate and time of the event (format: “yyyy-MM-dd HH:mm:ss”)

ParameterTypeDescription
idnumberNumerical identifier of the user.
namestringName of the user.
emailstringEmail address of the user.
ParameterTypeDescription
idnumberNumerical identifier of the record in the conteudo_completo table.
institution_idnumberNumerical identifier of the institution related to the content.
school_idnumberNumerical identifier of the school related to the content.
course_idnumberNumerical identifier of the course related to the content.
lesson_idnumberNumerical identifier of the lesson related to the content.
content_idnumber | nullNumerical identifier of the specific content.
answerstring | nullAnswer provided by the user.
correctboolean | nullIndicates if the answer is correct.
explanationstring | nullExplanation associated with the content.
pointsnumber | nullScore assigned to the content.
send_datestring | nullDate and time when the content was sent.
deliveredbooleanIndicates if the content was delivered (0 for no, 1 for yes).
current_timestring | nullCurrent time at the moment of the event.
ParameterTypeDescription
idnumberNumerical identifier of the course.
namestringName of the course.
certificate_idnumber | nullIdentifier of the certificate associated with the course.
progressnumberCompletion percentage.

The event will be triggered when the user completes any content.

{
"event": {
"name": "Atividades - Conteúdo",
"slug": "activities.content.completed",
"send_at": "2022-03-10 12:01:43"
},
"data": {
"user": {
"id": 1234,
"name": "Student",
"email": "student@toolzz.me"
},
"content": {
"id": 4,
"institution_id": 123,
"school_id": 654,
"course_id": 666,
"lesson_id": 4,
"content_id": null,
"answer": null,
"correct": null,
"explanation": null,
"points": null,
"send_date": null,
"delivered": 0,
"current_time": null
},
"course": {
"id": 666,
"name": "Course Name",
"certificate_id": null,
"progress": 33
}
}
}

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.