Skip to main content
{
	"assessment_questions": [
		{
			"correct_answer": "<string>",
			"created_at": "2023-12-01T05:00:00.401Z",
			"id": "crsaq_xxxxxxxxxxxx",
			"image": {
				"content_type": "image/jpeg",
				"filename": "document.pdf",
				"id": "<string>",
				"url": "https://media.whop.com/abc123/optimized.jpg"
			},
			"options": [
				{
					"id": "crsaqo_xxxxxxxxxxx",
					"is_correct": true,
					"option_text": "<string>",
					"order": 42
				}
			],
			"order": 42,
			"question_text": "<string>",
			"question_type": "short_answer"
		}
	],
	"attachments": [
		{
			"content_type": "image/jpeg",
			"filename": "document.pdf",
			"id": "<string>",
			"url": "https://media.whop.com/abc123/optimized.jpg"
		}
	],
	"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",
	"embed_type": "youtube",
	"id": "lesn_xxxxxxxxxxxxx",
	"lesson_type": "text",
	"main_pdf": {
		"content_type": "image/jpeg",
		"filename": "document.pdf",
		"id": "<string>",
		"url": "https://media.whop.com/abc123/optimized.jpg"
	},
	"order": 42,
	"thumbnail": {
		"url": "https://media.whop.com/abc123/optimized.jpg"
	},
	"title": "Understanding Candlestick Patterns",
	"video_asset": {
		"asset_id": "<string>",
		"audio_only": true,
		"created_at": "2023-12-01T05:00:00.401Z",
		"duration_seconds": 42,
		"finished_uploading_at": "2023-12-01T05:00:00.401Z",
		"id": "mux_xxxxxxxxxxxxxx",
		"playback_id": "<string>",
		"signed_playback_id": "<string>",
		"signed_storyboard_playback_token": "<string>",
		"signed_thumbnail_playback_token": "<string>",
		"signed_video_playback_token": "<string>",
		"status": "uploading",
		"updated_at": "2023-12-01T05:00:00.401Z"
	},
	"visibility": "visible"
}
assessment_questions
array<object>
required
The list of questions for quiz or knowledge check lessons. Empty for non-assessment lesson types.
attachments
array<object>
required
All supplementary files attached to this lesson returned as a flat array rather than a paginated connection.
content
string | null
required
The Markdown content body of the lesson. Null if the lesson has no text content.Example: In this lesson, we will cover the basics of technical ana…
created_at
string<date-time>
required
The datetime the lesson was created.Example: 2023-12-01T05:00:00.401Z
days_from_course_start_until_unlock
integer | null
required
The number of days after a student starts the course before this lesson becomes accessible. Null if the lesson is available immediately.Example: 42
embed_id
string | null
required
The external video identifier for embedded video lessons, such as a YouTube video ID or Loom share ID. Null if the lesson has no embed.Example: dQw4w9WgXcQ
embed_type
EmbedTypes | null
required
The platform type for the embedded video. One of: youtube, loom. Null if the lesson has no embed.Available options: youtube, loom
id
string
required
The unique identifier for the lesson.Example: lesn_xxxxxxxxxxxxx
lesson_type
LessonTypes
required
The content format of this lesson. One of: text, video, pdf, multi, quiz, knowledge_check.Available options: text, video, pdf, multi, quiz, knowledge_check
main_pdf
object | null
required
The primary PDF document for PDF-type lessons. Null if this lesson is not a PDF lesson or no PDF has been uploaded.
order
integer
required
The sort position of this lesson within its parent chapter, starting from zero.Example: 42
thumbnail
object | null
required
The thumbnail image displayed on lesson cards and previews. Null if no thumbnail has been uploaded.
title
string
required
The display name of the lesson shown to students. Maximum 120 characters.Example: Understanding Candlestick Patterns
video_asset
object | null
required
The Mux video asset for video-type lessons, used for streaming playback. Null if this lesson has no hosted video.
visibility
LessonVisibilities
required
The visibility setting that controls whether this lesson appears to students. One of: visible, hidden.Available options: visible, hidden