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

Course Sections

Returns a paginated list of sections belonging to the specified course

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

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

Example request

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

Parameters

NameTypeRequiredLocationDescription
courseIduuidYespathThe courseId identifier.
pageintegerNoqueryPage number to retrieve in the paginated result set.
perPageintegerNoqueryNumber of sections to return per page.

Example response

{
  "data": {
    "APICourseSections": {
      "pageInfo": {
        "perPage": 0,
        "currentPage": 0,
        "total": 0,
        "hasMore": true
      },
      "sections": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "title": "string",
          "slug": "example-slug",
          "status": "draft",
          "releaseAt": "2024-01-01T00:00:00.000Z",
          "parentSectionId": "00000000-0000-0000-0000-000000000000",
          "lessonCount": 0
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
pageInfoPageInfoPagination metadata for the result set.
pageInfo.perPageintegerNumber of sections returned per page.
pageInfo.currentPageintegerThe current page number in the paginated result set.
pageInfo.totalintegerTotal number of sections across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
sectionsAPISectionInfo[]Array of section objects belonging to the course.
sections.iduuidUnique identifier for the section.
sections.titlestringDisplay title of the section.
sections.slugstringURL-friendly identifier for the section.
sections.statusStatusPublication status of the section (e.g., draft or published).
sections.releaseAtISO 8601 timestampDate and time when the section becomes available to learners, in ISO 8601 format.
sections.parentSectionIduuidUnique identifier of the parent section, if this section is nested.
sections.lessonCountintegerTotal number of lessons within the section.