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
lessonIduuidYespathUnique identifier of the lesson 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 are available.
topicsTopic[]Array of topic objects belonging to the lesson.
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 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.