v9
OpenAPI 3.1.02026-08-043703845.2 MBCourse lessons
List course lessons
Returns a paginated list of lessons within a course or chapter, ordered by position.
Required permissions:
- courses:read
get/course_lessons
Query parameters
afterstring nullable
Returns the elements in the list that come after the specified cursor.
beforestring nullable
Returns the elements in the list that come before the specified cursor.
firstinteger nullable
Returns the first n elements from the list.
Example:42
lastinteger nullable
Returns the last n elements from the list.
Example:42
course_idstring nullable
The unique identifier of the course to return all lessons across all chapters.
Example:cors_xxxxxxxxxxxxx
chapter_idstring nullable
The unique identifier of a chapter to return only its lessons.
Example:chap_xxxxxxxxxxxxx
Response
A successful response
Example response
{
"data": [
{
"content": "In this lesson, we will cover the basics of technical analysis...",
"created_at": "2023-12-01T05:00:00.401Z",
"days_from_course_start_until_unlock": 42,
"embed_id": "dQw4w9WgXcQ",
"id": "lesn_xxxxxxxxxxxxx",
"order": 42,
"thumbnail": {
"url": "https://media.whop.com/abc123/optimized.jpg"
},
"title": "Understanding Candlestick Patterns"
}
]
}