Skip to main content
Best Answer

Self-enrollment link from API

  • January 23, 2023
  • 5 replies
  • 241 views

Hello,

I’m working with the API for creating sessions and events. I’m also looking at posting events as they are created on our intranet for our users.

I’ve looked all around for a reference to the self-enrollment link in the API, but I can’t seem to find it in courses, sessions, events, or enrollments.

Does anyone know where I’d find this information? Or is there another way for a user to directly link to an event to self-enroll?

Thanks much for any insight

//pb

Best answer by Sdinnoce

Hello - We do the same thing.  A couple of gotchas though to choose the best link.

The Self-Enrollment link for courses is found in the Course Details section, Enrollment Options, then Enable enrollment link for this course.  CAUTION - Use that for ELEARNING only. Gotcha - For ILT courses, person enrolls into a course wthout selecting a session.  

 

For ILT with sessions, the better option is to find the course in the course catalog, do NOT open the course, right click on the course tile and select Copy Link Address.  We post this on our webpage and the person, when they click the link can see the list of sessions, select one and enroll themselves into the session.  

 

5 replies

Forum|alt.badge.img+2
  • Helper II
  • Answer
  • January 23, 2023

Hello - We do the same thing.  A couple of gotchas though to choose the best link.

The Self-Enrollment link for courses is found in the Course Details section, Enrollment Options, then Enable enrollment link for this course.  CAUTION - Use that for ELEARNING only. Gotcha - For ILT courses, person enrolls into a course wthout selecting a session.  

 

For ILT with sessions, the better option is to find the course in the course catalog, do NOT open the course, right click on the course tile and select Copy Link Address.  We post this on our webpage and the person, when they click the link can see the list of sessions, select one and enroll themselves into the session.  

 


  • Author
  • Novice II
  • January 23, 2023

Thank you, @Sdinnoce . That’s very helpful!


  • Newcomer
  • April 17, 2023

Hi - I’m facing a similar issue whereby we would like to get an enrolment url from the API - Was there a resolution to your question, specifically regarding the API route ?


  • Author
  • Novice II
  • April 17, 2023

We ended up making our solution work with Docebo Connect vs straight API due to time constraints. However the Connector uses APIs to function and we did modify the Connector recipe to include the outside-docebo-accessible URL. It works very well.

The Connector uses the API. But the beginning steps may help you.

Our’s is triggered by a webhook that is sent when an ILT event is created. That webhook includes the Course ID.

Then it makes the API call to GET COURSE BY ID. From that call, grab ID and  SLUG NAME.

The URL is then formatted as:

https://YOURSUBDOMAIN.docebosaas.com/learn/course/internal/view/classroom/ID/SLUGNAME

 

Good luck!

//pb


codywinchester
Contributor III

@pberkery , could you elaborate on what you meant by, “But the beginning steps may help you[?]” From what I can see via the API, there are a few href URLS that come through, but all return error 403. All links are enabled for courses, so I’m curious what the rule is for generating the direct link. I’m hoping at the least I could create a formula that matches (if nothing else is offered from Docebo API to help).