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
sectionIduuidYespathThe sectionId identifier.
pageintegerNoqueryThe page number to retrieve in the paginated result set.
perPageintegerNoqueryThe number of lessons to return per page.

Example response

{
  "data": {
    "APISectionLessons": {
      "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 result set.
pageInfo.perPageintegerThe number of lessons returned per page.
pageInfo.currentPageintegerThe current page number in the paginated 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 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.sectionIduuidThe unique identifier of the section this lesson belongs to.
lessons.sectionTitlestringThe display title of the section this lesson belongs to.
lessons.topicCountintegerThe number of topics contained within the lesson.