Skip to main content
https://.thoughtindustries.com

Course Lessons

Returns a paginated list of lessons belonging to the specified course

Returns a paginated list of lessons belonging to the specified course.

GEThttps://example.thoughtindustries.com/incoming/v2/courses/:courseId/lessons

Example request

curl "https://example.thoughtindustries.com/incoming/v2/courses/:courseId/lessons" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
courseIduuidYespathThe courseId identifier.
pageintegerNoqueryThe page number to retrieve in the paginated result set.
perPageintegerNoqueryThe number of lessons to return per page.

Example response

{
  "data": {
    "APICourseLessons": {
      "pageInfo": {
        "perPage": 0,
        "currentPage": 0,
        "total": 0,
        "hasMore": true
      },
      "lessons": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "title": "string",
          "slug": "example-slug",
          "accessLevel": "studentsOnly",
          "sectionId": "00000000-0000-0000-0000-000000000000",
          "sectionTitle": "string",
          "topicCount": 0
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
pageInfoPageInfoPagination metadata for the response.
pageInfo.perPageintegerThe number of lessons returned per page.
pageInfo.currentPageintegerThe current page number in the result set.
pageInfo.totalintegerThe total number of lessons across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
lessonsAPILessonInfo[]The list of lessons belonging to the course.
lessons.iduuidThe unique identifier of the lesson.
lessons.titlestringThe display title of the lesson.
lessons.slugstringThe URL-friendly identifier for the lesson.
lessons.accessLevelAccessLevelThe access restriction applied to the lesson (e.g., studentsOnly).
lessons.sectionIduuidThe unique identifier of the section that contains this lesson.
lessons.sectionTitlestringThe display title of the section that contains this lesson.
lessons.topicCountintegerThe number of topics within the lesson.