Skip to content

Paper 2 theory question with practice or full rubric view.

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

Exam code, e.g. WAEC.

subject
required
string

Subject slug, e.g. physics.

id
required
string

Theory question identifier.

include_rubric
boolean

Whether to include full marking rubric (defaults to false).

Media typeapplication/json

Served representation of a theory question.

object
diagram_rubric
One of:
object
guidelines
Array<string>
label_marks
required
integer format: int32
line_quality_marks
required
integer format: int32
proportion_marks
required
integer format: int32
title_marks
required
integer format: int32
diagram_url
string | null
exam
required
string
examiner_report
One of:
object
common_errors
Array<string>
general_performance
required
string
remedies
required
string
formulation_bridge
required
Array<object>
object
clause
required
string
derived_equation
required
string
variable_mapping
required
string
id
required
string
includes_rubric
required
boolean
marking_methods
Array<object> | null
object
is_primary
required
boolean
method_id
required
string
method_name
required
string
steps
required
Array<object>
object
description
required
string
expression
string | null
mark_type
required
string
mark_value
required
integer format: int32
notes
string | null
part_label
required
string
step_id
required
string
paper
required
integer format: int32
penalties
Array<object> | null
object
deduction
required
integer format: int32
description
required
string
penalty_type
required
string
question_number
required
string
section
required
string
stem
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
sub_parts
required
Array<object>
object
allocated_marks
required
integer format: int32
part_label
required
string
prompt
required
string
subject
required
string
subtopic_slug
string | null
topic_slug
required
string
total_marks
required
integer format: int32
year
required
integer format: int32

Example

{
"stem": {
"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"
}

Question not found

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"
}