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

Lesson Topics

Returns a paginated list of topics belonging to the specified lesson

Returns a paginated list of topics belonging to the specified lesson.

GEThttps://example.thoughtindustries.com/incoming/v2/topics/lesson/:lessonId

Example request

curl "https://example.thoughtindustries.com/incoming/v2/topics/lesson/:lessonId" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
lessonIduuidYespathThe lessonId identifier.
pageintegerNoqueryPage number to retrieve in the paginated result set.
perPageintegerNoqueryNumber of topics to return per page.

Example response

{
  "data": {
    "APILessonTopics": {
      "pageInfo": {
        "perPage": 0,
        "currentPage": 0,
        "total": 0,
        "hasMore": true
      },
      "topics": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "originalId": "00000000-0000-0000-0000-000000000000",
          "title": "string",
          "type": "ad",
          "quizQuestions": [
            "00000000-0000-0000-0000-000000000000"
          ],
          "preTextBlock": "string",
          "postTextBlock": "string",
          "updatedAt": "2024-01-01T00:00:00.000Z",
          "resultsMessage": "string",
          "passMessage": "string",
          "failMessage": "string",
          "navigationDisabled": true,
          "instructorAssessment": true,
          "questionSkipEnabled": true,
          "isProctored": true,
          "allowToResume": true,
          "assetType": "string"
        }
      ]
    }
  }
}

Response fields

FieldTypeDescription
pageInfoPageInfoPagination metadata for the topics result set.
pageInfo.perPageintegerNumber of topics returned per page.
pageInfo.currentPageintegerThe current page number in the paginated result set.
pageInfo.totalintegerTotal number of topics across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
topicsTopic[]Array of topic objects belonging to the lesson.
topics.iduuidUnique identifier for the topic.
topics.originalIduuidIdentifier referencing the topic's original source, used when the topic was copied or cloned.
topics.titlestringDisplay title of the topic.
topics.typeTopicTypeContent type of the topic (e.g., ad, quiz, video).
topics.quizQuestionsuuid[]List of UUIDs referencing the quiz questions associated with the topic.
topics.preTextBlockstringHTML or plain-text content displayed before the topic's main content.
topics.postTextBlockstringHTML or plain-text content displayed after the topic's main content.
topics.updatedAtISO 8601 timestampDate and time the topic was last updated, in ISO 8601 format.
topics.resultsMessagestringMessage displayed to the learner after completing a quiz or assessment.
topics.passMessagestringMessage displayed to the learner when they pass a quiz or assessment.
topics.failMessagestringMessage displayed to the learner when they fail a quiz or assessment.
topics.navigationDisabledbooleanIndicates whether learners are prevented from navigating away from the topic before completing it.
topics.instructorAssessmentbooleanIndicates whether the topic requires manual grading by an instructor.
topics.questionSkipEnabledbooleanIndicates whether learners are allowed to skip questions within the topic.
topics.isProctoredbooleanIndicates whether the topic is delivered under proctored conditions.
topics.allowToResumebooleanIndicates whether learners can resume the topic after leaving it mid-progress.
topics.assetTypestringThe media or asset type associated with the topic's content (e.g., video, SCORM).