Assessments are linked to courses. A learner must be actively enrolled in a course to submit its assessments.
The assessment object
Unique identifier for the assessment. Format:
asmnt_<alphanumeric>.The ID of the course this assessment belongs to.
Display title of the assessment.
Minimum percentage score required to pass, e.g.
70 for 70%.Time allowed to complete the assessment in minutes.
null means no time limit.Total number of questions in the assessment.
List assessments
GET /api/v1/assessments
Returns a paginated list of assessments. Filter by course to retrieve all assessments for a specific course.
Query parameters
Filter assessments by course ID. Recommended when retrieving assessments for a specific course.
Page number to retrieve.
Number of assessments per page. Maximum 100.
Example
Get an assessment
GET /api/v1/assessments/:id
Returns a single assessment by its ID, including the full list of questions.
Create an assessment
POST /api/v1/assessments
Creates a new assessment for a course. Requires the admin or instructor role. Questions are added after creation via a separate questions endpoint.
Request body
The ID of the course to attach this assessment to.
Display title for the assessment. Between 3 and 200 characters.
Minimum percentage score to pass, as an integer from
1 to 100.Time limit in minutes. Omit or pass
null for no time limit.Example
Submit an assessment
POST /api/v1/assessments/:id/submissions
Submits a learner’s answers for scoring. Returns the result immediately, including score and per-answer correctness.
Request body
Array of answer objects, one per question.
Example
Submission result schema
Unique identifier for this submission.
The ID of the assessment that was submitted.
The ID of the learner who submitted.
Percentage score from
0 to 100.true if the score meets or exceeds the assessment’s passing_score.ISO 8601 timestamp of when the submission was received.
Per-question result breakdown.
Get a submission
GET /api/v1/assessments/:id/submissions/:submission_id
Retrieves the result of a specific submission by its ID.
Retake policy
Instructors can configure a maximum number of attempts per assessment. When the limit is reached, submitting returns a403 response:
