Docs API reference

Learner API

What a signed-in learner does, for building your own front end.

These endpoints are for the learner's own session (a login token). They are how you build a learning experience in your own site. Everything is scoped to enrollments the learner owns. See Learner experience.

13 endpoints · base path /api/v1

GET/api/v1/me/certificates#

My certificates

AccessA signed-in user (the learner's own login token).

Lists the signed-in learner's certificates, including expired or revoked ones, with status.

Responses

200OK· list of CertificateView
Example response
[
  {
    "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
    "courseTitle": "Workplace Safety Essentials",
    "enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
    "expiresAt": "2026-11-25T14:03:11Z",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "issuedAt": "2026-11-25T14:03:11Z",
    "learnerName": "Maya Chen",
    "revokedAt": "2026-11-25T14:03:11Z",
    "revokedReason": "string",
    "serial": "NBL-K7PQ-2X9M",
    "status": "ACTIVE",
    "userId": "11f967df-4272-482f-ac0b-7bea76dd8093",
    "verificationCode": "q8sV2k…",
    "verificationUrl": "https://learn.example.com/verify/q8sV2k…"
  }
]

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/me/certificates" \
  -H "Authorization: Bearer $LMS_TOKEN"
GET/api/v1/me/certificates/{id}/pdf#

Download my certificate PDF

AccessA signed-in user (the learner's own login token).

Downloads one of the learner's own certificates. A revoked certificate returns 410.

Parameters

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

Responses

200OK
Example response
"string"

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).
410The certificate has been revoked.

Errors use RFC 9457 problem details.

CERTIFICATE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/me/certificates/$CERTIFICATE_ID/pdf" \
  -H "Authorization: Bearer $LMS_TOKEN"
GET/api/v1/me/enrollments#

My enrollments

AccessA signed-in user (the learner's own login token).

Lists the signed-in learner's active and completed enrollments with progress.

Responses

200OK· list of EnrollmentView
Example response
[
  {
    "completedAt": "2026-11-25T14:03:11Z",
    "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
    "courseSlug": "string",
    "courseTitle": "Workplace Safety Essentials",
    "dueAt": "2026-11-25T14:03:11Z",
    "expiresAt": "2026-11-25T14:03:11Z",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
    "progressPercent": 40,
    "status": "ACTIVE"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403The credential is an API key. Only a signed-in user has enrollments.

Errors use RFC 9457 problem details.

curl -X GET "$LMS_URL/api/v1/me/enrollments" \
  -H "Authorization: Bearer $LMS_TOKEN"
GET/api/v1/me/enrollments/{enrollmentId}/assessments/{assessmentId}/attempts#

My attempts at a quiz

AccessA signed-in user (the learner's own login token).

Lists the learner's attempts with status, score and pass/fail. Attempts whose time ran out are closed first.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
assessmentIdrequiredpathstring (uuid)The id from a previous response.

Responses

200OK· list of AttemptSummary
Example response
[
  {
    "attemptNumber": 1,
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "passed": true,
    "scorePercent": 86.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.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
ASSESSMENT_ID=9c587f42-0084-4ea2-ac29-69ed309641da
curl -X GET "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/assessments/$ASSESSMENT_ID/attempts" \
  -H "Authorization: Bearer $LMS_TOKEN"
POST/api/v1/me/enrollments/{enrollmentId}/assessments/{assessmentId}/attempts#

Start (or resume) a quiz attempt

AccessA signed-in user (the learner's own login token).

Freezes the learner's paper: which question versions, in what order, how options are shuffled, and any random draws from pools. Learners receive each question's public form only. The answer key is never sent.

If an attempt is already open it is returned (resuming) instead of starting another. Starting is refused once the learner has passed or has no attempts left.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
assessmentIdrequiredpathstring (uuid)The id from a previous response.

Responses

201Created· 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.
403The quiz's lesson is locked.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409Already passed, no attempts left, or the quiz has no questions.

Errors use RFC 9457 problem details.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
ASSESSMENT_ID=9c587f42-0084-4ea2-ac29-69ed309641da
curl -X POST "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/assessments/$ASSESSMENT_ID/attempts" \
  -H "Authorization: Bearer $LMS_TOKEN"
GET/api/v1/me/enrollments/{enrollmentId}/assets/{assetId}/content#

Download a course file

AccessA signed-in user (the learner's own login token).

Downloads a file, but only if the learner's course version actually uses it. Any other file id returns 404, even if it exists in the tenant.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
assetIdrequiredpathstring (uuid)The id from a previous response.

Responses

200OK
Example response
"string"

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.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
ASSET_ID=dda59af6-a498-4a16-acd9-97f9817194fe
curl -X GET "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/assets/$ASSET_ID/content" \
  -H "Authorization: Bearer $LMS_TOKEN"
GET/api/v1/me/enrollments/{enrollmentId}/attempts/{attemptId}#

Get an attempt

AccessA signed-in user (the learner's own login token).

The attempt as the learner may see it. Per-question results and the correct answers appear only when the quiz's feedbackMode allows (AFTER_ATTEMPT, or AFTER_PASS once passed). A score is shown once the attempt is fully graded.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
attemptIdrequiredpathstring (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.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
ATTEMPT_ID=ca174553-d8b0-4963-a885-8246487aba77
curl -X GET "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/attempts/$ATTEMPT_ID" \
  -H "Authorization: Bearer $LMS_TOKEN"
PUT/api/v1/me/enrollments/{enrollmentId}/attempts/{attemptId}/answers#

Save answers

AccessA signed-in user (the learner's own login token).

Autosaves answers for the questions you list; a null response clears an answer. Each response is validated against its question's shape (see Quizzes & questions).

For a timed quiz, answers can't be saved after the deadline (plus 30 seconds of grace).

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
attemptIdrequiredpathstring (uuid)The id from a previous response.

Request body application/json · Answers

FieldTypeNotes
answersrequiredAnswer[]—
Example request body
{
  "answers": [
    {
      "questionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
      "response": {
        "optionId": "a"
      }
    },
    {
      "questionId": "1f8a4c70-b2d9-4e35-9c61-d3a7e0b5f428",
      "response": {
        "value": true
      }
    }
  ]
}

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
400A response doesn't fit its question (for example an unknown option id).
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 was already submitted, or time is up.

Errors use RFC 9457 problem details.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
ATTEMPT_ID=ca174553-d8b0-4963-a885-8246487aba77
curl -X PUT "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/attempts/$ATTEMPT_ID/answers" \
  -H "Authorization: Bearer $LMS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "answers": [
    {
      "questionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
      "response": {
        "optionId": "a"
      }
    },
    {
      "questionId": "1f8a4c70-b2d9-4e35-9c61-d3a7e0b5f428",
      "response": {
        "value": true
      }
    }
  ]
}'
POST/api/v1/me/enrollments/{enrollmentId}/attempts/{attemptId}/submit#

Submit an attempt

AccessA signed-in user (the learner's own login token).

Optionally saves final answers, then grades. Auto-graded questions are scored immediately. If the quiz has essay questions the attempt becomes NEEDS_GRADING and no score is shown yet. Otherwise it is GRADED, pass or fail is set, and passing completes the lessons that require it. Emits attempt.submitted and attempt.graded.

Submitting an attempt whose time has run out grades what was saved before the deadline.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
attemptIdrequiredpathstring (uuid)The id from a previous response.

Request body application/json · Answers

FieldTypeNotes
answersrequiredAnswer[]—
Example request body
{
  "answers": [
    {
      "questionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
      "response": {
        "optionId": "a"
      }
    }
  ]
}

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
400The request was malformed or failed validation. errors lists each field.
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.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
ATTEMPT_ID=ca174553-d8b0-4963-a885-8246487aba77
curl -X POST "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/attempts/$ATTEMPT_ID/submit" \
  -H "Authorization: Bearer $LMS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "answers": [
    {
      "questionId": "9d3b6e21-4a85-4f17-b0c2-7e5a1d8f3b64",
      "response": {
        "optionId": "a"
      }
    }
  ]
}'
GET/api/v1/me/enrollments/{enrollmentId}/course#

Open a course

AccessA signed-in user (the learner's own login token).

The outline of the learner's course: sections and lessons with each lesson's status, whether it is locked, and time spent, plus overall progress and any certificate. Lesson content is fetched lesson by lesson.

An enrollment that isn't the caller's returns 404, exactly as if it didn't exist.

Parameters

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

Responses

Example response
{
  "certificateId": "b335ac0d-4339-49fd-ab81-01ace7c46f69",
  "completedAt": "2026-11-25T14:03:11Z",
  "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
  "description": "A short description.",
  "dueAt": "2026-11-25T14:03:11Z",
  "enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
  "expiresAt": "2026-11-25T14:03:11Z",
  "modules": [
    {
      "description": "A short description.",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "lessons": [
        {
          "completionMode": "MANUAL",
          "estimatedMinutes": 30,
          "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
          "isRequired": true,
          "locked": false,
          "secondsSpent": 120,
          "status": "ACTIVE",
          "title": "Workplace Safety Essentials"
        }
      ],
      "title": "Workplace Safety Essentials"
    }
  ],
  "progressPercent": 40,
  "status": "ACTIVE",
  "summary": "Fire safety and everyday hazards.",
  "title": "Workplace Safety Essentials"
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403The enrollment is withdrawn or expired.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
curl -X GET "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/course" \
  -H "Authorization: Bearer $LMS_TOKEN"
GET/api/v1/me/enrollments/{enrollmentId}/lessons/{lessonId}#

Open a lesson

AccessA signed-in user (the learner's own login token).

Returns the lesson's blocks. Opening a lesson starts it, and a VIEWED lesson completes right here. Quiz blocks include the learner's attempts so far and whether they can start another.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
lessonIdrequiredpathstring (uuid)The id from a previous response.

Responses

Example response
{
  "blocks": [
    {
      "assessment": {
        "attemptsUsed": 1,
        "bestPercent": 1.5,
        "canStart": true,
        "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
        "instructions": "string",
        "maxAttempts": 3,
        "openAttemptId": "60c9388f-6f94-41df-a4df-569af1908d83",
        "passPercent": 70,
        "passed": true,
        "timeLimitSeconds": 1,
        "title": "Workplace Safety Essentials"
      },
      "assetUrl": "string",
      "content": {},
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "position": 0,
      "type": "SINGLE_CHOICE"
    }
  ],
  "completionMode": "MANUAL",
  "estimatedMinutes": 30,
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "isRequired": true,
  "resumeState": {},
  "status": "ACTIVE",
  "title": "Workplace Safety Essentials"
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403The lesson is locked until the previous required lesson is complete.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
LESSON_ID=3d477cf4-98e8-48b4-a056-a98b308b7364
curl -X GET "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/lessons/$LESSON_ID" \
  -H "Authorization: Bearer $LMS_TOKEN"
POST/api/v1/me/enrollments/{enrollmentId}/lessons/{lessonId}/complete#

Mark a lesson complete

AccessA signed-in user (the learner's own login token).

For MANUAL lessons. Completing the last required lesson completes the course, issues the certificate and releases the seat. A lesson that completes by passing a quiz returns 409.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
lessonIdrequiredpathstring (uuid)The id from a previous response.

Responses

204No Content

Errors

StatusWhen
401Missing, invalid or expired credentials.
403The lesson is locked.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409The lesson completes by passing its quiz, or the course is already completed.

Errors use RFC 9457 problem details.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
LESSON_ID=3d477cf4-98e8-48b4-a056-a98b308b7364
curl -X POST "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/lessons/$LESSON_ID/complete" \
  -H "Authorization: Bearer $LMS_TOKEN"
PUT/api/v1/me/enrollments/{enrollmentId}/lessons/{lessonId}/progress#

Report time and position

AccessA signed-in user (the learner's own login token).

A heartbeat. secondsSpent (0 to 300 per call) adds to the lesson's time, and resumeState stores where the learner is (for example a video position) so they can resume.

Parameters

NameInTypeNotes
enrollmentIdrequiredpathstring (uuid)The id from a previous response.
lessonIdrequiredpathstring (uuid)The id from a previous response.

Request body application/json · Heartbeat

FieldTypeNotes
resumeStateJsonNode—
secondsSpentinteger (int32)0 to 300
Example request body
{
  "resumeState": {},
  "secondsSpent": 120
}

Responses

204No Content

Errors

StatusWhen
400The request was malformed or failed validation. errors lists each field.
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.

ENROLLMENT_ID=8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8
LESSON_ID=3d477cf4-98e8-48b4-a056-a98b308b7364
curl -X PUT "$LMS_URL/api/v1/me/enrollments/$ENROLLMENT_ID/lessons/$LESSON_ID/progress" \
  -H "Authorization: Bearer $LMS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "resumeState": {},
  "secondsSpent": 120
}'

Type to search guides and every endpoint.