Show Lesson
Returns a single lesson by its unique identifier, including its topic outline and parent course and section context
Returns a single lesson by its unique identifier, including its topic outline and parent course and section context.
GET
https://example.thoughtindustries.com/incoming/v2/lessons/:idExample request
curl "https://example.thoughtindustries.com/incoming/v2/lessons/:id" \
-H 'Authorization: Bearer YOUR_API_KEY'Parameters
| Name | Type | Required | Location | Description |
|---|---|---|---|---|
id | uuid | Yes | path | The unique identifier of the lesson to retrieve. |
Example response
{
"data": {
"APILessonById": {
"id": "00000000-0000-0000-0000-000000000000",
"title": "string",
"slug": "example-slug",
"accessLevel": "studentsOnly",
"sectionId": "00000000-0000-0000-0000-000000000000",
"sectionTitle": "string",
"courseId": "00000000-0000-0000-0000-000000000000",
"courseTitle": "string",
"topicCount": 0,
"topicOutline": [
{
"id": "00000000-0000-0000-0000-000000000000",
"title": "string",
"type": "ad",
"editableByChildren": true
}
]
}
}
}Response fields
| Field | Type | Description |
|---|---|---|
id | uuid | Unique identifier of the lesson. |
title | string | Display title of the lesson. |
slug | string | URL-friendly identifier for the lesson. |
accessLevel | AccessLevel | Defines who can access the lesson (e.g., studentsOnly). |
sectionId | uuid | Unique identifier of the section that contains this lesson. |
sectionTitle | string | Display title of the parent section. |
courseId | uuid | Unique identifier of the course that contains this lesson. |
courseTitle | string | Display title of the parent course. |
topicCount | integer | Total number of topics within the lesson. |
topicOutline | PageResourceOutline[] | Ordered list of topics belonging to the lesson. |
topicOutline.id | uuid | Unique identifier of the topic. |
topicOutline.title | string | Display title of the topic. |
topicOutline.type | TopicType | Content type of the topic (e.g., ad). |
topicOutline.editableByChildren | boolean | Indicates whether child accounts can edit this topic. |