Skip to main content
Answer

How do you find a Category ID via API?

  • December 9, 2021
  • 3 replies
  • 199 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?

Best answer by Chelsy Koshy

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

3 replies

Forum|alt.badge.img+4
  • Guide I
  • December 9, 2021
  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.


  • Author
  • Contributor I
  • December 9, 2021

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?


Forum|alt.badge.img+4
  • Guide I
  • Answer
  • December 10, 2021

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