Skip to content

One exam-neutral teaching lesson.

GET
/api/v1/lessons/{id}
curl --request GET \
--url https://api.utmelab.com/api/v1/lessons/example \
--header 'X-API-Key: <X-API-Key>'
id
required
string

Lesson id.

Media typeapplication/json

A reusable, exam-neutral teaching unit served by the Content API.

Exam syllabus topics and exam questions may reference a lesson, but a lesson never carries exam identity.

object
checks
Array<object>
object
answer
required

Correct option; clients must withhold it until the learner responds.

object
option_id
required
string
feedback
required

Source-authored feedback to show after an attempt or explicit reveal.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
hint
One of:

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
id
required

Stable identity within the owning section.

string
kind
required

A short formative check authored for a teaching section, not drawn from an exam-practice bank.

string
Allowed values: multiple_choice
objective_id

Learning objective this check supports when the relation is known.

string | null
options
required
Array<object>
object
content
required

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
id
required
string
order
required

One-based authored order within the section.

integer format: int64
position_after_block_id

Insert the check immediately after this teaching block when present.

string | null
prompt
required

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
provenance
required
object
licence
string
locator
string
publisher
string
title
string
url
string
content
Array
One of:

The single concrete anchor that starts every lesson.

object
anchor
required

The kind of concrete anchor used to begin a lesson. The wording shown to learners is carried by the opening’s heading; this keeps the contract useful across subjects without forcing every lesson to say “The situation”.

string
Allowed values: scenario sentence problem observation passage event case
heading
required
string
id
required
string
text
required

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
type
required
string
Allowed values: opening
content_hash
string
description

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
estimated_minutes
integer format: int32
example_question_refs
Array<object>
object
id
required
string
order

Canonical position of this reference within its parent.

integer format: int32
title
string
id
required
string
level
string
misconceptions
Array<object>

A misconception with its correction and provenance.

object
claim
required

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
correction
required

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
id
required
string
provenance
object
licence
string
locator
string
publisher
string
title
string
url
string
objectives
Array<object>

One thing the reader will be able to do.

object
bloom_level
string
id
required
string
statement
required
string
provenance
object
licence
string
locator
string
publisher
string
title
string
url
string
status

Consumer-visible lifecycle. Only published lessons are returned by normal catalog reads.

string
subject
required
string
summary
Array<object>

Plain text plus offset marks. text stays searchable as characters; structure rides in inline as Unicode-scalar offsets, never bytes.

object
inline
required
Array

One offset mark. Serialised flat with an adjacent kind tag, e.g. {"start":24,"len":6,"kind":"underline"}.

object
One of:
object
kind
required
string
Allowed values: bold
len
required

Length in Unicode scalar values. Zero for an image anchor, which marks an attachment point rather than a span.

integer format: int32
start
required

Offset in Unicode scalar values from the start of text.

integer format: int32
text
required
string
title
required
string

Example

{
"checks": [
{
"feedback": {
"inline": [
{
"kind": "bold"
}
]
},
"hint": {
"inline": [
{
"kind": "bold"
}
]
},
"kind": "multiple_choice",
"options": [
{
"content": {
"inline": [
{
"kind": "bold"
}
]
}
}
],
"prompt": {
"inline": [
{
"kind": "bold"
}
]
}
}
],
"content": [
{
"anchor": "scenario",
"text": {
"inline": [
{
"kind": "bold"
}
]
},
"type": "opening"
}
],
"description": {
"inline": [
{
"kind": "bold"
}
]
},
"misconceptions": [
{
"claim": {
"inline": [
{
"kind": "bold"
}
]
},
"correction": {
"inline": [
{
"kind": "bold"
}
]
}
}
],
"summary": [
{
"inline": [
{
"kind": "bold"
}
]
}
]
}

An API key is missing or invalid.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API key lacks the required scope.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

No such lesson

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The caller has exceeded the applicable rate limit.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}

The API is temporarily unavailable.

Media typeapplication/json

Stable body returned by HTTP error responses.

object
code
required
string
error
required
string

Example generated

{
"code": "example",
"error": "example"
}