Skip to main content
Question

Any way to know when a user un-enrolls via API?

  • April 27, 2025
  • 3 replies
  • 47 views

Hi!

We are in the middle of integrating Docebo with an internal application in our org, and we keep a table with all enrollments per course.

We want to update it when we notice a new enrollment/un-enrollment happened in the last 24 hours.

The enrollment part I can get by using /learn/v1/courses/report (Get enrollment report for a given course or all course) and utilizing the parameters to get the courses with enrollments of the last 24 hours.

However, When someone un-enrolls from a course, there is not indication I could find to who un-enrolled in the last 24 hours. (Wanted to believe that the ‘date_last_updated’ param in /learn/v1/courses would update but no success)

 

If anyone have any idea if that’s possible, your assistance is much appreciated.

Thanks!

3 replies

Forum|alt.badge.img+1
  • April 28, 2025

Hi ​@ArielOr there isn’t a report or API that I’m aware of that will show who has unenrolled from a course over the past 24 hours other than the audit trail, because once unenrolled, the enrollment record(s) are deleted. Instead you could configure a webhook in Docebo for the user unenrolled from course event and record those in a spreadsheet or data table. 


  • Author
  • Newcomer
  • April 29, 2025

Hi ​@ArielOr there isn’t a report or API that I’m aware of that will show who has unenrolled from a course over the past 24 hours other than the audit trail, because once unenrolled, the enrollment record(s) are deleted. Instead you could configure a webhook in Docebo for the user unenrolled from course event and record those in a spreadsheet or data table. 

Thanks ​@mstrom!
I’ll give it a shot.

BTW, even an API call that returns when any change last occurred in enrollments works, but I assume it’s the same answer.


Forum|alt.badge.img+1
  • April 29, 2025

Hi ​@ArielOr there isn’t a report or API that I’m aware of that will show who has unenrolled from a course over the past 24 hours other than the audit trail, because once unenrolled, the enrollment record(s) are deleted. Instead you could configure a webhook in Docebo for the user unenrolled from course event and record those in a spreadsheet or data table. 

Thanks ​@mstrom!
I’ll give it a shot.

BTW, even an API call that returns when any change last occurred in enrollments works, but I assume it’s the same answer.

Correct, same answer. The Docebo API’s won’t trigger themselves to send information back to you. That’s where webhooks come in. Webhooks are triggered based on an event in the platform and send you the details of that event from which you can take action on, preferably via an iPaaS like Workato or Docebo Connect.