Course lessons
List course lessons
Changed onReturns a paginated list of lessons within a course or chapter, ordered by position.
Required permissions:
- courses:read
get/course_lessons
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Query parameters
after, string
Returns the elements in the list that come after the specified cursor.
before, string
Returns the elements in the list that come before the specified cursor.
first, integer
Returns the first n elements from the list.
Example:42
last, integer
Returns the last n elements from the list.
Example:42
course_id, string
The unique identifier of the course to return all lessons across all chapters.
Example:cors_xxxxxxxxxxxxx
chapter_id, string
The unique identifier of a chapter to return only its lessons.
Example:chap_xxxxxxxxxxxxx
Response
A successful response
object required
The connection type for Lesson.
data, Course Lesson List Item[] required
A list of nodes.
page_info, Page Info required
Information to aid in pagination.
Example response
{
"data": [
{
"content": "In this lesson, we will cover washing, decontamination, and paint preparation before ceramic coating.",
"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": "Preparing Paint for Ceramic Coating"
}
]
}Changes
- info
added the non-success response with the status
- info