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

GET/api/v1/attempts/{id}#

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

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· AttemptView
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

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It 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"
POST/api/v1/attempts/{id}/grade#

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

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.

Request body application/json · Grades

FieldTypeNotes
gradesrequiredGrade[]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

200OK· AttemptView
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

StatusWhen
400An unknown question, an auto-graded question, or points outside the allowed range.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409The 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."
    }
  ]
}'
GET/api/v1/grading/queue#

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

200OK· list of QueueItem
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

StatusWhen
401Missing, invalid or expired credentials.
403Your 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"

Type to search guides and every endpoint.