Docs API reference
Grading
The manual grading queue and attempt review.
Essay questions need a person. Attempts waiting for grading appear in the queue; grading the last pending answer finalizes the score. See Learning.
3 endpoints · base path /api/v1
Review an attempt
AccessAdmin, instructor, or an API key with the read or write scope.
The staff view of an attempt: every question as the learner saw it, their response, the answer key, the marking guide for essays, and the results so far.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
| idrequired | path | string (uuid) | The id from a previous response. |
Responses
Example response
{
"assessmentId": "9c587f42-0084-4ea2-ac29-69ed309641da",
"assessmentTitle": "Safety knowledge check",
"attemptNumber": 1,
"dueAt": "2026-11-25T14:03:11Z",
"id": "37386ae0-0ea5-44e0-a02e-161f807af560",
"maxPoints": 1.5,
"passed": true,
"questions": [
{
"id": "37386ae0-0ea5-44e0-a02e-161f807af560",
"options": {},
"points": 1,
"position": 0,
"prompt": "Where do you go when the fire alarm sounds?",
"response": {},
"result": {
"answerKey": {},
"correct": false,
"explanation": "Always use the nearest safe exit.",
"graderFeedback": "string",
"pointsAwarded": 1
},
"type": "SINGLE_CHOICE"
}
],
"scorePercent": 86.5,
"scorePoints": 1.5,
"startedAt": "2026-11-25T14:03:11Z",
"status": "ACTIVE",
"submittedAt": "2026-11-25T14:03:11Z"
}Errors
| Status | When |
|---|---|
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
| 404 | It doesn't exist, or it belongs to another tenant (the two look the same on purpose). |
Errors use RFC 9457 problem details.
ATTEMPT_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/attempts/$ATTEMPT_ID" \
-H "X-API-Key: $LMS_KEY"const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/attempts/${attemptId}`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/attempts/${attemptId}`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
attempt_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
res = requests.get(f"{LMS_URL}/api/v1/attempts/{attempt_id}", headers=HEADERS, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
String attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560";
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/attempts/" + attemptId))
.header("X-API-Key", lmsKey)
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
attempt_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
uri = URI("#{lms_url}/api/v1/attempts/#{attempt_id}")
request = Net::HTTP::Get.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"))
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560";
$ch = curl_init("$lmsUrl/api/v1/attempts/{$attemptId}");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY')],
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
attemptId := "37386ae0-0ea5-44e0-a02e-161f807af560"
req, _ := http.NewRequest("GET", os.Getenv("LMS_URL") + "/api/v1/attempts/" + attemptId, nil)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}Grade essay answers
AccessAdmin, instructor, or an API key with the write scope.
Awards points to manual (essay) questions. pointsAwarded must be between 0 and the question's points. When the last pending answer is graded the attempt becomes GRADED, its score and pass/fail are computed, and a passing score completes any lesson that required it.
Auto-graded questions can't be graded by hand.
Parameters
| Name | In | Type | Notes |
|---|---|---|---|
| idrequired | path | string (uuid) | The id from a previous response. |
Request body application/json · Grades
| Field | Type | Notes |
|---|---|---|
| gradesrequired | Grade[] | min 1 item |
Example request body
{
"grades": [
{
"attemptQuestionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded": 4,
"feedback": "Good. You named a real hazard and its owner."
}
]
}Responses
Example response
{
"assessmentId": "9c587f42-0084-4ea2-ac29-69ed309641da",
"assessmentTitle": "Safety knowledge check",
"attemptNumber": 1,
"dueAt": "2026-11-25T14:03:11Z",
"id": "37386ae0-0ea5-44e0-a02e-161f807af560",
"maxPoints": 1.5,
"passed": true,
"questions": [
{
"id": "37386ae0-0ea5-44e0-a02e-161f807af560",
"options": {},
"points": 1,
"position": 0,
"prompt": "Where do you go when the fire alarm sounds?",
"response": {},
"result": {
"answerKey": {},
"correct": false,
"explanation": "Always use the nearest safe exit.",
"graderFeedback": "string",
"pointsAwarded": 1
},
"type": "SINGLE_CHOICE"
}
],
"scorePercent": 86.5,
"scorePoints": 1.5,
"startedAt": "2026-11-25T14:03:11Z",
"status": "ACTIVE",
"submittedAt": "2026-11-25T14:03:11Z"
}Errors
| Status | When |
|---|---|
| 400 | An unknown question, an auto-graded question, or points outside the allowed range. |
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
| 404 | It doesn't exist, or it belongs to another tenant (the two look the same on purpose). |
| 409 | The attempt isn't waiting for grading. |
Errors use RFC 9457 problem details.
ATTEMPT_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/attempts/$ATTEMPT_ID/grade" \
-H "X-API-Key: $LMS_KEY" \
-H "Content-Type: application/json" \
-d '{
"grades": [
{
"attemptQuestionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded": 4,
"feedback": "Good. You named a real hazard and its owner."
}
]
}'const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/attempts/${attemptId}/grade`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"grades": [
{
"attemptQuestionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded": 4,
"feedback": "Good. You named a real hazard and its owner."
}
]
}),
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560"
const res = await fetch(`${LMS_URL}/api/v1/attempts/${attemptId}/grade`, {
method: 'POST',
headers: { "X-API-Key": LMS_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"grades": [
{
"attemptQuestionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded": 4,
"feedback": "Good. You named a real hazard and its owner."
}
]
}),
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
attempt_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
res = requests.post(f"{LMS_URL}/api/v1/attempts/{attempt_id}/grade", headers=HEADERS, json={
"grades": [
{
"attemptQuestionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded": 4,
"feedback": "Good. You named a real hazard and its owner.",
},
],
}, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
String attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560";
String body = """
{
"grades": [
{
"attemptQuestionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded": 4,
"feedback": "Good. You named a real hazard and its owner."
}
]
}
""";
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/attempts/" + attemptId + "/grade"))
.header("X-API-Key", lmsKey)
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString(body))
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
attempt_id = "37386ae0-0ea5-44e0-a02e-161f807af560"
uri = URI("#{lms_url}/api/v1/attempts/#{attempt_id}/grade")
request = Net::HTTP::Post.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"), "Content-Type" => "application/json")
request.body = {
"grades" => [
{
"attemptQuestionId" => "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded" => 4,
"feedback" => "Good. You named a real hazard and its owner.",
},
],
}.to_json
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$attemptId = "37386ae0-0ea5-44e0-a02e-161f807af560";
$ch = curl_init("$lmsUrl/api/v1/attempts/{$attemptId}/grade");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
"grades" => [
[
"attemptQuestionId" => "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded" => 4,
"feedback" => "Good. You named a real hazard and its owner.",
],
],
]),
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
"strings"
)
func main() {
attemptId := "37386ae0-0ea5-44e0-a02e-161f807af560"
body := strings.NewReader(`{
"grades": [
{
"attemptQuestionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
"pointsAwarded": 4,
"feedback": "Good. You named a real hazard and its owner."
}
]
}`)
req, _ := http.NewRequest("POST", os.Getenv("LMS_URL") + "/api/v1/attempts/" + attemptId + "/grade", body)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}The grading queue
AccessAdmin, instructor, or an API key with the write scope.
Attempts waiting for a person to mark essay answers, oldest first, with how many answers are pending.
Responses
Example response
[
{
"assessmentTitle": "Safety knowledge check",
"attemptId": "ca174553-d8b0-4963-a885-8246487aba77",
"courseTitle": "Workplace Safety Essentials",
"enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
"learnerName": "Maya Chen",
"pendingQuestions": 1,
"submittedAt": "2026-11-25T14:03:11Z"
}
]Errors
| Status | When |
|---|---|
| 401 | Missing, invalid or expired credentials. |
| 403 | Your credential is valid but isn't allowed to do this. |
Errors use RFC 9457 problem details.
curl -X GET "$LMS_URL/api/v1/grading/queue" \
-H "X-API-Key: $LMS_KEY"const LMS_URL = process.env.LMS_URL
const LMS_KEY = process.env.LMS_KEY
const res = await fetch(`${LMS_URL}/api/v1/grading/queue`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data = await res.json()const LMS_URL = process.env.LMS_URL!
const LMS_KEY = process.env.LMS_KEY!
const res = await fetch(`${LMS_URL}/api/v1/grading/queue`, {
method: 'GET',
headers: { "X-API-Key": LMS_KEY },
})
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`)
const data: unknown = await res.json()import os
import requests
LMS_URL = os.environ["LMS_URL"]
HEADERS = {"X-API-Key": os.environ["LMS_KEY"]}
res = requests.get(f"{LMS_URL}/api/v1/grading/queue", headers=HEADERS, timeout=10)
res.raise_for_status()
data = res.json()import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
String lmsUrl = System.getenv("LMS_URL");
String lmsKey = System.getenv("LMS_KEY");
var request = HttpRequest.newBuilder(URI.create(lmsUrl + "/api/v1/grading/queue"))
.header("X-API-Key", lmsKey)
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
if (response.statusCode() >= 300) throw new IllegalStateException(response.statusCode() + " " + response.body());
System.out.println(response.body());
}
}require "net/http"
require "json"
lms_url = ENV.fetch("LMS_URL")
uri = URI("#{lms_url}/api/v1/grading/queue")
request = Net::HTTP::Get.new(uri, "X-API-Key" => ENV.fetch("LMS_KEY"))
response = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
raise "#{response.code} #{response.body}" unless response.is_a?(Net::HTTPSuccess)
data = JSON.parse(response.body)<?php
$lmsUrl = getenv('LMS_URL');
$ch = curl_init("$lmsUrl/api/v1/grading/queue");
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('LMS_KEY')],
]);
$response = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 300) {
throw new RuntimeException($response);
}
$data = json_decode($response, true);package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", os.Getenv("LMS_URL") + "/api/v1/grading/queue", nil)
req.Header.Set("X-API-Key", os.Getenv("LMS_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
data, _ := io.ReadAll(res.Body)
if res.StatusCode >= 300 {
panic(fmt.Sprintf("%d %s", res.StatusCode, data))
}
fmt.Println(string(data))
}