Courses
Lesson
/ v1 / lessons / {lesson_id} One lesson of a course: its content blocks, its draft and free preview flags and its release rule.
Content blocks can be texts, images, videos, audio, files (with file_id and name, but no download links), video links and buttons. The fields have the same names and formats as in PATCH /v1/lessons/{lesson_id}.
Authorization
-
Authorizationstring header requiredBearer tnt_…· A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Introduction
Path parameters
-
lesson_idinteger requiredThe id from get_course_outline.
min
1Example:302
Response
Fields of the answer with status 200. Errors always have the same format, see Errors.
-
idintegerThe ID.
-
course_idintegerThe course of the lesson.
-
course_namestringThe course name.
-
module_idinteger can be nullThe module of the lesson.
-
titlestringThe title.
-
positionintegerPlace in its module, 1 = first.
-
draftbooleantrue = buyers do not see it.
-
free_previewbooleantrue = everyone can watch it as a free preview.
-
releaseobject can be nullWhen buyers get the item. null = at once.
One of these variants:
type: days_after_purchase· 2 fields-
typestringThe rule type.
Allowed values:
days_after_purchase -
daysintegerDays after the purchase.
type: hours_after_purchase· 2 fields-
typestringThe rule type.
Allowed values:
hours_after_purchase -
hoursintegerHours after the purchase.
type: date· 2 fields-
typestringThe rule type.
Allowed values:
date -
datestring<date>Like 2026-01-31.
type: after_lesson· 4 fields-
typestringThe rule type.
Allowed values:
after_lesson -
lesson_idintegerThe lesson that the buyer must finish first.
-
lesson_titlestring can be nullThe title of that lesson.
-
enforcedbooleanfalse = the course does not track progress, so the rule has no effect.
-
-
contentarray of objectContent blocks, in order.
One of these variants:
type: text· 2 fieldsFormatted text.
-
typestringThe block type.
Allowed values:
text -
htmlstringThe text as HTML.
type: image, video· 5 fieldsAn uploaded image or video.
-
typestringThe block type.
Allowed values:
imagevideo -
file_idintegerThe file ID (from upload_file).
-
namestringThe name.
-
file_typestringFile extension, like pdf.
-
size_bytesinteger can be nullFile size in bytes.
type: audio, file· 6 fieldsAn audio player or a download.
-
typestringThe block type.
Allowed values:
audiofile -
file_idintegerThe file ID (from upload_file).
-
namestringThe name.
-
descriptionstringfile: text under the download. audio: title above the player.
-
file_typestringFile extension, like pdf.
-
size_bytesinteger can be nullFile size in bytes.
type: video_embed· 2 fields-
typestringThe block type.
Allowed values:
video_embed -
urlstringYouTube, Vimeo or Loom link.
type: button· 3 fieldsA link button.
-
typestringThe block type.
Allowed values:
button -
labelstringThe text that buyers see.
-
urlstringThe link.
-
-
admin_urlstring<uri>The page in the Tentary app.