Skip to main content
Question

Catalogs report via API & Notification log

  • June 6, 2024
  • 1 reply
  • 79 views

PathanSana
Novice III

Which API Endpoint can be used to extract a report for the below mentioned activities :

  1. Export a Catalogs report via API with all courses assigned to it.
  2. Export the notification log via API - I found 

    Returns a list of notifications logs.

    GET/notifications/v1/notifications_log

  3. However, from where do I get the notification code ?

Any help would be much appreciated. Thanks.

1 reply

Ian
Guide I
  • Guide I
  • June 11, 2024

Re: Catalogs

Looking at the API Browser, there seem to be two API endpoints for this, depending on whether the catalog in question is public or internal?

  • GET /learn/v1/catalog_content/public/{catalog_id}
  • GET /learn/v1/catalog_content/internal/{catalog_id}

Now, you may be wondering, “But where do I get the catalog_id, Ian? Where do I get the catalog_id?” Which, honestly? Good question that had me stumped for a moment, because nowhere in the API browser is the GET /learn/v1/catalog endpoint listed. 🤦 It’s not even exposed via the browser dev tools, either, because the Catalog admin side is still on Docebo’s legacy framework. 😑

Re: Notifications

You can get a list of notifications (including their codes) from this endpoint:

  • GET /notifications/v1/notification/list

Is that useful? I confess I’m not sure what you’re hoping to achieve with these codes.