Skip to main content
Answer

API to retrieve sessions by session code

  • August 15, 2023
  • 1 reply
  • 128 views

Hello,

I am trying to get list of sessions by code in Docebo. But the API get course sessions returns sessions id snd enrollments. no way to search session code.

Is there API to retrieve full of session’s info by session code?

Thanks,

Liza

 

Best answer by Ian

This sounds like it’s not ideal for what you want to do, but you can get the session code for a specific session ID via the Courses service (GET /course/v1/sessions/{session_id}). So you may be able to loop through a list of all session IDs, use those to get the session codes, and then proceed with whatever your end goal is.

1 reply

Ian
Guide I
  • Guide I
  • Answer
  • September 21, 2023

This sounds like it’s not ideal for what you want to do, but you can get the session code for a specific session ID via the Courses service (GET /course/v1/sessions/{session_id}). So you may be able to loop through a list of all session IDs, use those to get the session codes, and then proceed with whatever your end goal is.