Skip to content

How an exam's paper is shaped, and whether the bank can fill it.

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

Exam code, e.g. JAMB.

country
string | null

Country scope, e.g. GH. A one-country exam implies its own; anything else needs it said out loud, and completeness is only ever claimed for a scope.

Media typeapplication/json

The scheme plus whether the bank can fill it. Readiness sits beside the scheme rather than inside it, so the validated shape does not move as our content grows.

object
complete
required

True when every requirement group for this scope holds enough verified questions to fill its min_select slots.

boolean
exam
required
string
scheme
required

How an exam’s paper is shaped, restated from the bank (D19). This is a constant over our content, so it moves only when the bank does.

object
country

Country scope this scheme was computed for. Absent means the full honest view, and completeness is only ever claimed for a scope.

string | null
duration_minutes

Minutes for a full sitting, verified only. Null where unverified.

integer | null format: int32
exam
required
string
questions_available
required

Questions a full paper holds, summed from subjects we can fill. A lower bound for any exam whose bank is incomplete.

integer format: int32
requirements
required

The paper-assembly rules evaluated for this scope, copied from the exam’s requirement rows so a consumer sees what complete meant.

Array<object>

One board rule about which subjects a paper needs. An empty subjects means “every exam subject not named by another group”; min_select is how many of that pool must be ready before the paper is real.

object
group
required
string
min_select
required
integer format: int32
subjects
required
Array<string>
rules
required

Board-stated rules a consumer must know. Empty where unstated.

Array<string>
subjects
required
Array<object>

One subject’s slot in an exam scheme. questions is the stated paper size (null where unverified), and marks_per_question is stated only where the bank supports it: both are absences, never zeros.

object
compulsory
required
boolean
marks_per_question
number | null format: float
name
required
string
questions
integer | null format: int32
slug
required
string
subjects_ready
required

Which subjects can fill a slot today, by slug.

Array<string>

Example generated

{
"complete": true,
"exam": "example",
"scheme": {
"country": "example",
"duration_minutes": 1,
"exam": "example",
"questions_available": 1,
"requirements": [
{
"group": "example",
"min_select": 1,
"subjects": [
"example"
]
}
],
"rules": [
"example"
],
"subjects": [
{
"compulsory": true,
"marks_per_question": 1,
"name": "example",
"questions": 1,
"slug": "example"
}
],
"subjects_ready": [
"example"
]
}
}

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 exam, or an exam with no subjects

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