Docs API reference

Enrollments & progress

Who is taking what, and how far along they are.

An enrollment is the only thing that gives someone access to a course. Use these endpoints to report on progress and to enroll or withdraw people directly.

4 endpoints · base path /api/v1

GET/api/v1/enrollments#

List enrollments

AccessAdmin, or an API key with the read or write scope.

A page of enrollments with learner, course, status and progress. Filter by courseId, userId, organizationId and status (ACTIVE, COMPLETED, EXPIRED, WITHDRAWN). Newest first; page with limit and offset.

Parameters

NameInTypeNotes
courseIdquerystring (uuid)—
userIdquerystring (uuid)—
organizationIdquerystring (uuid)—
statusquerystringmatches ACTIVE|COMPLETED|EXPIRED|WITHDRAWN
limitqueryinteger (int32)—
offsetqueryinteger (int32)—

Responses

200OK· Page
Example response
{
  "items": [
    {
      "completedAt": "2026-11-25T14:03:11Z",
      "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
      "courseSlug": "string",
      "courseTitle": "Workplace Safety Essentials",
      "dueAt": "2026-11-25T14:03:11Z",
      "enrolledAt": "2026-11-25T14:03:11Z",
      "expiresAt": "2026-11-25T14:03:11Z",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "lastActivityAt": "2026-11-25T14:03:11Z",
      "learnerEmail": "maya.chen@example.com",
      "learnerExternalRef": "string",
      "learnerName": "Maya Chen",
      "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
      "progressPercent": 40,
      "source": "ROLE",
      "status": "ACTIVE",
      "userId": "11f967df-4272-482f-ac0b-7bea76dd8093"
    }
  ],
  "total": 1
}

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/enrollments?courseId=ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561&userId=11f967df-4272-482f-ac0b-7bea76dd8093" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/enrollments#

Enroll someone directly

AccessAdmin, or an API key with the write scope.

Enrolls a person in a course's published version without any organization or license. Use it for individual learners or one-off access. dueAt and expiresAt are optional.

A person can have only one active enrollment per course, but can retake after completing.

Request body application/json · EnrollRequest

FieldTypeNotes
courseIdrequiredstring (uuid)—
dueAtstring (date-time)—
expiresAtstring (date-time)—
userIdrequiredstring (uuid)—
Example request body
{
  "userId": "6a2f9c04-e1b7-4d83-85a5-c0d4f7e1b932",
  "courseId": "4b2e8f90-1d73-4c5a-9e06-a8f1d3b7c254",
  "expiresAt": "2027-06-30T23:59:59Z"
}

Responses

201Created· EnrollmentRow
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",
  "enrolledAt": "2026-11-25T14:03:11Z",
  "expiresAt": "2026-11-25T14:03:11Z",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "lastActivityAt": "2026-11-25T14:03:11Z",
  "learnerEmail": "maya.chen@example.com",
  "learnerExternalRef": "string",
  "learnerName": "Maya Chen",
  "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
  "progressPercent": 40,
  "source": "ROLE",
  "status": "ACTIVE",
  "userId": "11f967df-4272-482f-ac0b-7bea76dd8093"
}

Errors

StatusWhen
400Unknown or inactive user, an unknown course or one with no published version, or expiresAt isn't in the future.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
409They already have an active enrollment in this course.

Errors use RFC 9457 problem details.

curl -X POST "$LMS_URL/api/v1/enrollments" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "userId": "6a2f9c04-e1b7-4d83-85a5-c0d4f7e1b932",
  "courseId": "4b2e8f90-1d73-4c5a-9e06-a8f1d3b7c254",
  "expiresAt": "2027-06-30T23:59:59Z"
}'
GET/api/v1/enrollments/{id}#

Get an enrollment's progress

AccessAdmin, or an API key with the read or write scope.

Returns the enrollment, the course version it is pinned to, each lesson's status and time spent, every quiz attempt with its score, and the certificate if one was issued.

Parameters

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

Responses

200OK· Detail
Example response
{
  "attempts": [
    {
      "assessmentTitle": "Safety knowledge check",
      "attemptNumber": 1,
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "passed": true,
      "scorePercent": 86.5,
      "status": "ACTIVE",
      "submittedAt": "2026-11-25T14:03:11Z"
    }
  ],
  "certificateId": "b335ac0d-4339-49fd-ab81-01ace7c46f69",
  "courseVersion": 1,
  "enrollment": {
    "completedAt": "2026-11-25T14:03:11Z",
    "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
    "courseSlug": "string",
    "courseTitle": "Workplace Safety Essentials",
    "dueAt": "2026-11-25T14:03:11Z",
    "enrolledAt": "2026-11-25T14:03:11Z",
    "expiresAt": "2026-11-25T14:03:11Z",
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "lastActivityAt": "2026-11-25T14:03:11Z",
    "learnerEmail": "maya.chen@example.com",
    "learnerExternalRef": "string",
    "learnerName": "Maya Chen",
    "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
    "progressPercent": 40,
    "source": "ROLE",
    "status": "ACTIVE",
    "userId": "11f967df-4272-482f-ac0b-7bea76dd8093"
  },
  "lessons": [
    {
      "completedAt": "2026-11-25T14:03:11Z",
      "lessonId": "3d477cf4-98e8-48b4-a056-a98b308b7364",
      "required": false,
      "secondsSpent": 120,
      "startedAt": "2026-11-25T14:03:11Z",
      "status": "ACTIVE",
      "title": "Workplace Safety Essentials"
    }
  ]
}

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=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/enrollments/$ENROLLMENT_ID" \
  -H "X-API-Key: $LMS_KEY"
DELETE/api/v1/enrollments/{id}#

Withdraw an enrollment

AccessAdmin, or an API key with the write scope.

Ends the learner's access and releases their license seat. Their progress is kept. Emits enrollment.withdrawn.

Parameters

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

Responses

204No Content

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).
409Only an active enrollment can be withdrawn.

Errors use RFC 9457 problem details.

ENROLLMENT_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X DELETE "$LMS_URL/api/v1/enrollments/$ENROLLMENT_ID" \
  -H "X-API-Key: $LMS_KEY"

Type to search guides and every endpoint.