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

Section Lessons

Returns a paginated list of lessons belonging to the specified section

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

GEThttps://example.thoughtindustries.com/incoming/v2/sections/:sectionId/lessons

Example request

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

Parameters

NameTypeRequiredLocationDescription
sectionIduuidYespathUnique identifier of the section whose lessons to list.
cursorstringNoqueryOpaque pagination cursor returned by a previous response; use to fetch the next page of results.
perPageintegerNoqueryThe number of lessons to return per page.

Example response

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

Response fields

FieldTypeDescription
pageInfoCursorPageInfoPagination metadata for the current result set.
pageInfo.totalintegerThe total number of lessons across all pages.
pageInfo.cursorstringOpaque cursor to pass in the next request to retrieve the following page.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
lessonsAPILessonInfo[]The list of lessons belonging to the section.
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, such as studentsOnly.
lessons.sectionTitlestringThe display title of the section this lesson belongs to.
lessons.topicCountintegerThe number of topics contained within the lesson.