Skip to main content
Best Answer

How do you find a Category ID via API?

  • 9 December 2021
  • 3 replies
  • 152 views

We’ve recently turned off the “Display Category Tree” as it was showing Categories to Learners who shouldn’t see them (ie Customers were seeing our Sales Category)
I’m creating pages now for Learners to navigate to our Categories. I’m able to find the Category ID with the Tree enabled: /learn/catalog/view/2?ctldoc-catalog-0=category_id-18

I’d prefer to not have to toggle the Categories Tree on and off to get the Category ID. Is there a way to find the Category IDs via API?

3 replies

Userlevel 5
Badge +3
  1. Go to yourplatform.docebosaas.com/api-browser
  2. On the left hand side, find the “Categories” category and click on Retrieves all categories
  3. Scroll down and you will see a TRY and OAuth button there    
  4. Click OAuth button first, then “Authorize”
  5. Then click “Try” . You will see the information of all the categories.

Hope this helps.

Userlevel 2

This is exactly what I was looking for! Thank you so much!
I have another question if you might be able to help. When I try to locate a Child Category, I see that I place the ID of the Parent Category in, but I’m unsure what value I put in the “data_provider” field?

Userlevel 5
Badge +3

Put the ID of the parent category and 0 in the data_provider field

Reply