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

Course Topics

Returns a paginated list of topics belonging to the specified course

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

GEThttps://example.thoughtindustries.com/incoming/v2/topics/course/:courseId

Example request

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

Parameters

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

Example response

{
  "data": {
    "APICourseTopics": {
      "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 result set.
pageInfo.perPageintegerNumber of topics returned per page.
pageInfo.currentPageintegerThe current page number in the result set.
pageInfo.totalintegerTotal number of topics across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results exist.
topicsTopic[]Array of topic objects belonging to the course.
topics.iduuidUnique identifier for the topic.
topics.originalIduuidIdentifier referencing the topic's original source, used when the topic was copied from another course.
topics.titlestringDisplay title of the topic.
topics.typeTopicTypeContent type of the topic (e.g., ad, quiz, video).
topics.quizQuestionsuuid[]List of question IDs associated with the topic, applicable when the topic type is a quiz or assessment.
topics.preTextBlockstringHTML or plain-text content displayed before the main topic content.
topics.postTextBlockstringHTML or plain-text content displayed after the main topic content.
topics.updatedAtISO 8601 timestampDate and time the topic was last updated, in ISO 8601 format.
topics.resultsMessagestringMessage shown to learners after completing the topic.
topics.passMessagestringMessage shown to learners when they pass the topic's assessment.
topics.failMessagestringMessage shown to learners when they fail the topic's assessment.
topics.navigationDisabledbooleanWhen true, learners cannot freely navigate away from this topic until it is completed.
topics.instructorAssessmentbooleanWhen true, the topic requires manual grading by an instructor.
topics.questionSkipEnabledbooleanWhen true, learners are allowed to skip individual questions within the topic.
topics.isProctoredbooleanWhen true, the topic is delivered under proctored exam conditions.
topics.allowToResumebooleanWhen true, learners can resume the topic from where they left off after exiting.
topics.assetTypestringThe media or content asset type associated with the topic (e.g., video, SCORM, PDF).