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
courseIduuidYespathUnique identifier of the course whose topics to list.
cursorstringNoqueryOpaque pagination cursor returned by a previous response; use to fetch the next page of results.
perPageintegerNoqueryNumber of topics to return per page.

Example response

{
  "pageInfo": {
    "total": 0,
    "cursor": "string",
    "hasMore": true
  },
  "topics": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "title": "string",
      "type": "ad",
      "preTextBlock": "string",
      "postTextBlock": "string",
      "updatedAt": "2024-01-01T00:00:00.000Z"
    }
  ]
}

Response fields

FieldTypeDescription
pageInfoCursorPageInfoPagination metadata for the current result set.
pageInfo.totalintegerTotal number of topics across all pages.
pageInfo.cursorstringOpaque cursor to pass in the next request to retrieve the following page.
pageInfo.hasMorebooleanIndicates whether additional pages of results exist.
topicsTopic[]Array of topic objects belonging to the course.
topics.iduuidUnique identifier for the topic.
topics.titlestringDisplay title of the topic.
topics.typeTopicTypeContent type of the topic (e.g., ad, quiz, video).
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.