Skip to main content
POST
Typescript (SDK)

Authorizations

Authorization
string
header
required

API key in the format: Bearer {api_token}

Headers

Idempotency-Key
string

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Maximum string length: 255

Path Parameters

chapter_id
string
required

The chapter ID

Body

application/json
title
string

Lesson title (defaults to "Lesson N")

lesson_type
string

Lesson type (defaults to multimedia)

html_content
string | null

Rich-text lesson body

video_url
string | null

URL of the lesson's video

is_published
boolean

Response

Lesson created

id
string
required
object
string
required
title
string
required
position
integer
required
lesson_type
string
required
published
boolean
required
published_at
string<date-time> | null
required
html_content
string | null
required
chapter
string
required
video_url
string | null
required
files
object[]
required