latestOpenAPI 3.1.02026-08-183894205.8 MB

f67a043e3190

Course 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

Returns the elements in the list that come after the specified cursor.

beforestring

Returns the elements in the list that come before the specified cursor.

firstinteger

Returns the first n elements from the list.

Example:42
lastinteger

Returns the last n elements from the list.

Example:42
course_idstring

The unique identifier of the course to return all lessons across all chapters.

Example:cors_xxxxxxxxxxxxx
chapter_idstring

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"
    }
  ]
}