Skip to main content
GET
/
api
/
public
/
courses
/
v2
/
{courseId}
/
lessons
/
{lessonId}
{
  "Lesson": {},
  "Lesson.Id": 123,
  "Lesson.UniqueId": "<string>",
  "Lesson.Title": "<string>",
  "Lesson.LessonContents": "<string>",
  "Lesson.SummaryText": "<string>",
  "Completed": true,
  "HasNextLesson": true,
  "IsLastActiveLesson": true,
  "Course": {},
  "Section": {}
}

Get Course Lesson

Returns the full content and metadata for a specific lesson within a course. Used to display lesson content and allow the customer to mark it as complete.

Authentication

Requires a valid customer bearer token.

Path Parameters

courseId
number
required
Numeric identifier of the course.
lessonId
number
required
Numeric identifier of the lesson within the course.

Query Parameters

_shape
string
Comma-separated list of field paths to include in the response. When provided, only the specified fields are returned — useful for reducing payload size. Supports nested paths using dot notation.

Response

Returns a CourseLesson object. The lesson content is nested inside a Lesson property.
Lesson
FullLesson
The lesson content object.
Lesson.Id
number
required
Unique identifier for the lesson.
Lesson.UniqueId
string
UUID for the lesson — used as {lessonUniqueId} in the complete-lesson endpoint.
Lesson.Title
string
required
Display title of the lesson.
Lesson.LessonContents
string
Full lesson content. May contain HTML.
Lesson.SummaryText
string
Short summary text for the lesson.
Completed
boolean
Whether the authenticated customer has marked this lesson as complete.
HasNextLesson
boolean
Whether there is a next lesson in the course.
IsLastActiveLesson
boolean
Whether this is the last active (uncompleted) lesson.
Course
CourseSummary
The parent course summary.
Section
Section
The section this lesson belongs to.

Examples

Fetch a lesson

GET /api/public/courses/v2/42/lessons/7
Authorization: Bearer {token}

TypeScript Integration

import endpoints from '@/api/endpoints'

const { resource: lesson } = useTypedData(httpClient, endpoints.courses.lesson(42, 7))