{
  "opencollection": "1.0.0",
  "info": {
    "name": "LearnWorlds Courses API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "client_credentials",
      "accessTokenUrl": "https://yourschool.learnworlds.com/admin/api/oauth2/access_token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Courses",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List courses",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{school}.learnworlds.com/admin/api/v2/courses",
            "params": [
              {
                "name": "page",
                "value": "",
                "type": "query",
                "description": "The page number to retrieve."
              },
              {
                "name": "items_per_page",
                "value": "",
                "type": "query",
                "description": "The number of items to return per page."
              }
            ]
          },
          "docs": "Lists the school's courses."
        },
        {
          "info": {
            "name": "Get a course",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{school}.learnworlds.com/admin/api/v2/courses/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The course identifier."
              }
            ]
          },
          "docs": "Retrieves a single course by its identifier."
        },
        {
          "info": {
            "name": "Get course contents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{school}.learnworlds.com/admin/api/v2/courses/:id/contents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The course identifier."
              }
            ]
          },
          "docs": "Retrieves the sections and learning units that make up a course."
        }
      ]
    }
  ],
  "bundled": true
}