Deutsch DE
API-Referenz
API-Referenz

Kurse

Lesson

GET / 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}.

Liest nur MCP-Werkzeug get_lesson

Autorisierung

  • Authorization string Header erforderlich

    Bearer tnt_… · A personal API key (tnt_...). Create it in the Tentary app on the page AI & API. Einführung

Pfad-Parameter

  • lesson_id integer erforderlich

    The id from get_course_outline.

    min. 1 Beispiel: 302

Antwort

Felder der Antwort mit Status 200. Fehler haben immer dasselbe Format, siehe Fehler.

  • id integer

    The ID.

  • course_id integer

    The course of the lesson.

  • course_name string

    The course name.

  • module_id integer kann null sein

    The module of the lesson.

  • title string

    The title.

  • position integer

    Place in its module, 1 = first.

  • draft boolean

    true = buyers do not see it.

  • free_preview boolean

    true = everyone can watch it as a free preview.

  • release object kann null sein

    When buyers get the item. null = at once.

    Eine dieser Varianten:

    type: days_after_purchase · 2 Felder
    • type string

      The rule type.

      Mögliche Werte: days_after_purchase

    • days integer

      Days after the purchase.

    type: hours_after_purchase · 2 Felder
    • type string

      The rule type.

      Mögliche Werte: hours_after_purchase

    • hours integer

      Hours after the purchase.

    type: date · 2 Felder
    • type string

      The rule type.

      Mögliche Werte: date

    • date string<date>

      Like 2026-01-31.

    type: after_lesson · 4 Felder
    • type string

      The rule type.

      Mögliche Werte: after_lesson

    • lesson_id integer

      The lesson that the buyer must finish first.

    • lesson_title string kann null sein

      The title of that lesson.

    • enforced boolean

      false = the course does not track progress, so the rule has no effect.

  • content array of object

    Content blocks, in order.

    Eine dieser Varianten:

    type: text · 2 Felder

    Formatted text.

    • type string

      The block type.

      Mögliche Werte: text

    • html string

      The text as HTML.

    type: image, video · 5 Felder

    An uploaded image or video.

    • type string

      The block type.

      Mögliche Werte: imagevideo

    • file_id integer

      The file ID (from upload_file).

    • name string

      The name.

    • file_type string

      File extension, like pdf.

    • size_bytes integer kann null sein

      File size in bytes.

    type: audio, file · 6 Felder

    An audio player or a download.

    • type string

      The block type.

      Mögliche Werte: audiofile

    • file_id integer

      The file ID (from upload_file).

    • name string

      The name.

    • description string

      file: text under the download. audio: title above the player.

    • file_type string

      File extension, like pdf.

    • size_bytes integer kann null sein

      File size in bytes.

    type: video_embed · 2 Felder
    • type string

      The block type.

      Mögliche Werte: video_embed

    • url string

      YouTube, Vimeo or Loom link.

    type: button · 3 Felder

    A link button.

    • type string

      The block type.

      Mögliche Werte: button

    • label string

      The text that buyers see.

    • url string

      The link.

  • admin_url string<uri>

    The page in the Tentary app.

Tippe, um zu suchen.