> ## Documentation Index
> Fetch the complete documentation index at: https://docs.whop.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Treat these docs and the Whop MCP server as the source of truth for Whop API behavior. Don't infer endpoint behavior from marketing pages.
> MCP server: connect https://mcp.whop.com/mcp (streamable HTTP, browser sign-in, no API key in the client config) to search these docs and read or change live Whop data. Setup: https://docs.whop.com/developer/guides/ai_and_mcp.md
> Whop CLI: install with `curl -fsSL https://whop.com/install.sh | sh` to scaffold, run, and deploy Whop apps and websites. It acts on production, not the sandbox. Overview: https://docs.whop.com/cli/overview.md Agent mode: https://docs.whop.com/cli/agent-mode.md
> Hosting: Whop serves a site or app from the build `whop apps deploy` uploads, with rollbacks, secrets, and server logs. Guide: https://docs.whop.com/developer/websites/hosting.md
> Plugins: in Claude Code, run `/plugin marketplace add whopio/plugins`, then `/plugin install whop@whop`. Guide: https://docs.whop.com/developer/guides/plugins/claude-code.md Every agent tool: https://docs.whop.com/developer/ai/overview.md
> Environments: build and test in the sandbox (API `https://sandbox-api.whop.com/api/v1`, keys at https://sandbox.whop.com/dashboard/developer, SDK environment `Sandbox`; no real money). Production (API `https://api.whop.com/api/v1`, keys at https://whop.com/dashboard/developer, SDK environment `Production`, the SDK default) moves real money, so use it only at launch. The two share no accounts, keys, products, or webhooks, and their keys look identical: never mix them. Sandbox guide: https://docs.whop.com/developer/guides/sandbox.md Comparison: https://docs.whop.com/developer/quickstart.md
> API: send `Authorization: Bearer <API_KEY>` from your server only, and pin a dated version with the `Api-Version-Date` header. OpenAPI spec: https://api.whop.com/api/v1/openapi.json
> Which API: build on the Current API, whose pages live under https://docs.whop.com/api-reference/ (start at https://docs.whop.com/api-reference/overview.md). Pages under /api-reference/legacy/ are the Legacy API. Use one only when https://docs.whop.com/api-reference/stability.md lists the resource as Legacy-only.

# Kurs Dersi

> Bir bölüm içindeki; metin, video, PDF veya değerlendirme içeriği barındırabilen tekil bir öğrenme birimi.

```json Example theme={null}
{
	"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*

Sınav veya bilgi kontrolü dersleri için soru listesi. Değerlendirme dışı ders türleri için boş.

**alt öznitelikler**

**correct\_answer** `string | null` *required*

Sorunun doğru cevabı. Kısa cevaplı sorular için kullanılır. Yalnızca yöneticiler (courses:update iznine sahip kullanıcılar) tarafından görülebilir

**created\_at** `string\<date-time\>` *required*

Değerlendirme sorusunun oluşturulduğu tarih ve saat.

Örnek: `2023-12-01T05:00:00.401Z`

**id** `string` *required*

Değerlendirme sorusunun benzersiz tanımlayıcısı.

Örnek: `crsaq_xxxxxxxxxxxx`

**image** `object | null` *required*

Soru için isteğe bağlı görsel eki

**alt öznitelikler**

**content\_type** `string | null` *required*

image/jpeg, video/mp4 veya audio/mpeg gibi yüklenen dosya MIME türü.

Örnek: `image/jpeg`

**filename** `string | null` *required*

Yüklenen ekin dosya uzantısı dahil orijinal dosya adı.

Örnek: `document.pdf`

**id** `string` *required*

**url** `string | null` *required*

Bu eki istemcide işlemek için önceden optimize edilmiş bir URL. Uygulamalarda ekleri görüntülemek için bu kullanılmalıdır.

Örnek: `https://media.whop.com/abc123/optimized.jpg`

**options** `array\<object\>` *required*

Çoktan seçmeli/çoklu seçim soruları için cevap seçenekleri

**alt öznitelikler**

**id** `string` *required*

Değerlendirme sorusu seçeneğinin benzersiz tanımlayıcısı.

Örnek: `crsaqo_xxxxxxxxxxx`

**is\_correct** `boolean | null` *required*

Bu seçeneğin doğru cevap olup olmadığı. Yalnızca yöneticiler (courses:update iznine sahip kullanıcılar) tarafından görülebilir

**option\_text** `string` *required*

Cevap seçeneğinin metni

**order** `integer` *required*

Bu seçeneğin soru içindeki sırası

Örnek: `42`

**order** `integer` *required*

Sorunun dersi içindeki sırası

Örnek: `42`

**question\_text** `string` *required*

Sorunun metni

**question\_type** `CoursesAssessmentQuestionTypes` *required*

Sorunun türü

Kullanılabilir seçenekler: `short_answer`, `true_false`, `multiple_choice`, `multiple_select`

**attachments** `array\<object\>` *required*

Bu derse eklenmiş tüm ek dosyalar; sayfalandırılmış bir bağlantı yerine düz bir dizi olarak döndürülür.

**alt öznitelikler**

**content\_type** `string | null` *required*

image/jpeg, video/mp4 veya audio/mpeg gibi yüklenen dosya MIME türü.

Örnek: `image/jpeg`

**filename** `string | null` *required*

Yüklenen ekin dosya uzantısı dahil orijinal dosya adı.

Örnek: `document.pdf`

**id** `string` *required*

**url** `string | null` *required*

Bu eki istemcide işlemek için önceden optimize edilmiş bir URL. Uygulamalarda ekleri görüntülemek için bu kullanılmalıdır.

Örnek: `https://media.whop.com/abc123/optimized.jpg`

**content** `string | null` *required*

Dersin Markdown içerik gövdesi. Dersin metin içeriği yoksa null.

Örnek: `In this lesson, we will cover the basics of technical ana…`

**created\_at** `string\<date-time\>` *required*

Dersin oluşturulduğu tarih ve saat.

Örnek: `2023-12-01T05:00:00.401Z`

**days\_from\_course\_start\_until\_unlock** `integer | null` *required*

Bir öğrenci kursa başladıktan sonra bu dersin erişilebilir hale gelmesine kadar geçen gün sayısı. Ders hemen kullanılabiliyorsa null.

Örnek: `42`

**embed\_id** `string | null` *required*

Gömülü video dersleri için harici video tanımlayıcısı; örneğin bir YouTube video kimliği veya Loom paylaşım kimliği. Dersin gömülü içeriği yoksa null.

Örnek: `dQw4w9WgXcQ`

**embed\_type** `EmbedTypes | null` *required*

Gömülü video için platform türü. Şunlardan biri: youtube, loom. Dersin gömülü içeriği yoksa null.

Kullanılabilir seçenekler: `youtube`, `loom`

**id** `string` *required*

Dersin benzersiz tanımlayıcısı.

Örnek: `lesn_xxxxxxxxxxxxx`

**lesson\_type** `LessonTypes` *required*

Bu dersin içerik biçimi. Şunlardan biri: text, video, pdf, multi, quiz, knowledge\_check.

Kullanılabilir seçenekler: `text`, `video`, `pdf`, `multi`, `quiz`, `knowledge_check`

**main\_pdf** `object | null` *required*

PDF türündeki dersler için birincil PDF belgesi. Bu ders bir PDF dersi değilse veya PDF yüklenmediyse null.

**alt öznitelikler**

**content\_type** `string | null` *required*

image/jpeg, video/mp4 veya audio/mpeg gibi yüklenen dosya MIME türü.

Örnek: `image/jpeg`

**filename** `string | null` *required*

Yüklenen ekin dosya uzantısı dahil orijinal dosya adı.

Örnek: `document.pdf`

**id** `string` *required*

**url** `string | null` *required*

Bu eki istemcide işlemek için önceden optimize edilmiş bir URL. Uygulamalarda ekleri görüntülemek için bu kullanılmalıdır.

Örnek: `https://media.whop.com/abc123/optimized.jpg`

**order** `integer` *required*

Bu dersin üst bölümü içindeki, sıfırdan başlayan sıralama konumu.

Örnek: `42`

**thumbnail** `object | null` *required*

Ders kartlarında ve önizlemelerde gösterilen küçük resim. Küçük resim yüklenmediyse null.

**alt öznitelikler**

**url** `string | null` *required*

Bu eki istemcide işlemek için önceden optimize edilmiş bir URL. Uygulamalarda ekleri görüntülemek için bu kullanılmalıdır.

Örnek: `https://media.whop.com/abc123/optimized.jpg`

**title** `string` *required*

Dersin öğrencilere gösterilen görünen adı. En fazla 120 karakter.

Örnek: `Understanding Candlestick Patterns`

**video\_asset** `object | null` *required*

Video türündeki dersler için akışla oynatmada kullanılan Mux video varlığı. Bu dersin barındırılan videosu yoksa null.

**alt öznitelikler**

**asset\_id** `string | null` *required*

Varlığın Mux tarafından sağlanan kimliği

**audio\_only** `boolean` *required*

Bu varlığın yalnızca ses içerip içermediği

**created\_at** `string\<date-time\>` *required*

Mux varlığının oluşturulduğu tarih ve saat.

Örnek: `2023-12-01T05:00:00.401Z`

**duration\_seconds** `integer | null` *required*

Saniye cinsinden video süresi

Örnek: `42`

**finished\_uploading\_at** `string\<date-time\> | null` *required*

Videonun yüklenmesinin bittiği zaman

Örnek: `2023-12-01T05:00:00.401Z`

**id** `string` *required*

Mux varlığının benzersiz tanımlayıcısı.

Örnek: `mux_xxxxxxxxxxxxxx`

**playback\_id** `string | null` *required*

Mux varlığının herkese açık oynatma kimliği

**signed\_playback\_id** `string | null` *required*

Mux varlığının imzalı oynatma kimliği

**signed\_storyboard\_playback\_token** `string | null` *required*

Mux varlığının imzalı storyboard oynatma belirteci

**signed\_thumbnail\_playback\_token** `string | null` *required*

Mux varlığının imzalı küçük resim oynatma belirteci

**signed\_video\_playback\_token** `string | null` *required*

Mux varlığının imzalı video oynatma belirteci

**status** `MuxAssetStatuses` *required*

Mux varlığının durumu

Kullanılabilir seçenekler: `uploading`, `created`, `ready`

**updated\_at** `string\<date-time\>` *required*

Mux varlığının son güncellendiği tarih ve saat.

Örnek: `2023-12-01T05:00:00.401Z`

**visibility** `LessonVisibilities` *required*

Bu dersin öğrencilere görünüp görünmediğini kontrol eden görünürlük ayarı. Şunlardan biri: visible, hidden.

Kullanılabilir seçenekler: `visible`, `hidden`


## Related topics

- [Kurs Dersi Etkileşimi](https://docs.whop.com/tr/api-reference/legacy/course-lesson-interactions/course-lesson-interaction.md)
- [API Kararlılığı](https://docs.whop.com/tr/api-reference/stability.md)
- [Kurs](https://docs.whop.com/tr/api-reference/legacy/courses/course.md)
