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.
cursorstringNoqueryOpaque cursor for the next page of lessons, taken from a previous response's pageInfo.cursor. Omit to fetch the first page.
perPageintegerNoqueryThe number of lessons to return per page.

Example response

{
  "pageInfo": {
    "perPage": 0,
    "cursor": "MTA",
    "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.cursorstringOpaque cursor for fetching the next page. Present when hasMore is true; pass it back as the cursor query parameter to continue.
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.