Docs API reference

Learners & people

Your users, their courses and their progress, by your own ids.

For an application with its own users. Everything under /learners is addressed by your own id for the person and a course's address, so you never handle our ids: create or update a user (with their organization and role), get all their courses, give or take away a course, see their progress and certificates, and start them learning. See Common tasks. The rest of this group finds people by our ids and suspends or reactivates them.

14 endpoints · base path /api/v1

GET/api/v1/learners/{externalRef}#

Get a learner

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

Looks a person up by your id for them. Returns their details, status and, if they belong to one of your customers, the organization, their role and access.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}

Responses

200OK· LearnerView
Example response
{
  "email": "maya.chen@example.com",
  "externalRef": "order-5001",
  "familyName": "Chen",
  "givenName": "Maya",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "organization": {
    "access": "MEMBER",
    "name": "Acme Company",
    "organization": "string",
    "role": "string"
  },
  "status": "ACTIVE"
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404No learner has that id.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
curl -X GET "$LMS_URL/api/v1/learners/$EXTERNAL_REF" \
  -H "X-API-Key: $LMS_KEY"
PUT/api/v1/learners/{externalRef}#

Create or update a learner

AccessAdmin, or an API key with the write scope.

Records one of your users in the LMS. externalRef is the id of that person in your system (letters, digits and ._:@+~-, up to 200 characters). The first call creates them (201); later calls update them in place (200) and return the same id, so it is safe to repeat whenever their details change.

Name and email are required. To place them in one of your customers, add organization (the customer's own reference, set when you add the customer in the admin or with externalRef on POST /organizations), a role (a job role's key, set up in the admin) and an access level (MEMBER, the default, or MANAGER). The role's courses are given to them automatically, limited to what their company has bought. Omit role or access on a later call to leave them as they are. Add courses to give them courses directly, by address.

Learners made this way have no password. You act for them by asking for a token with start a learner. An existing account with the same email is adopted only if it is a plain learner that isn't already linked, so this can never take over a staff account.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}

Request body application/json · LearnerRequest

FieldTypeNotes
accessstringmatches MEMBER|MANAGER
coursesstring[]items match [a-z0-9][a-z0-9-]{0,100}; min 0 items
emailrequiredstring (email)min length 0; max length 320
familyNamerequiredstringmin length 0; max length 200
givenNamerequiredstringmin length 0; max length 200
organizationstringmin length 0; max length 200
rolestringmatches [a-z][a-z0-9_]{0,62}
Example request body
{
  "email": "ada@customer.example",
  "givenName": "Ada",
  "familyName": "Lovelace",
  "organization": "acme-shop",
  "role": "technician",
  "access": "MEMBER",
  "courses": [
    "safety-101"
  ]
}

Responses

200OK· LearnerView
Example response
{
  "email": "maya.chen@example.com",
  "externalRef": "order-5001",
  "familyName": "Chen",
  "givenName": "Maya",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "organization": {
    "access": "MEMBER",
    "name": "Acme Company",
    "organization": "string",
    "role": "string"
  },
  "status": "ACTIVE"
}

Errors

StatusWhen
400The id has characters that aren't allowed, a field isn't valid, an organization, role or course doesn't exist, or role or access was sent without an organization.
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).
409Another account already uses that email, the account is a staff account, or the organization has no seats left for the role's courses (nothing is changed).

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
curl -X PUT "$LMS_URL/api/v1/learners/$EXTERNAL_REF" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "ada@customer.example",
  "givenName": "Ada",
  "familyName": "Lovelace",
  "organization": "acme-shop",
  "role": "technician",
  "access": "MEMBER",
  "courses": [
    "safety-101"
  ]
}'
DELETE/api/v1/learners/{externalRef}#

Remove a learner who left

AccessAdmin, or an API key with the write scope.

Suspends them: they can't sign in or be given tokens. Their data, progress and certificates are kept. Repeating the call is harmless. Staff accounts are refused.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}

Responses

204No Content

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404No learner has that id.
409The account is a staff account.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
curl -X DELETE "$LMS_URL/api/v1/learners/$EXTERNAL_REF" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/learners/{externalRef}/certificates#

Get a learner's certificates

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

Their certificates with serial, course, dates and verification code. Download one with GET /certificates/{id}/pdf.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}

Responses

200OK
Example response
{}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404No learner has that id.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
curl -X GET "$LMS_URL/api/v1/learners/$EXTERNAL_REF/certificates" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/learners/{externalRef}/courses#

Get all of a learner's courses

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

The data for a "my courses" screen, in one call: each course's address, title, summary, estimated minutes, status (ACTIVE, COMPLETED or EXPIRED), progress, dates, and the certificate id once there is one. Active courses first, then by most recent activity. Withdrawn enrollments are left out.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}

Responses

200OK· list of CourseCard
Example response
[
  {
    "certificateId": "b335ac0d-4339-49fd-ab81-01ace7c46f69",
    "completedAt": "2026-11-25T14:03:11Z",
    "course": "string",
    "coverAssetId": "ce4ba24d-c68c-4c3d-aa93-d96cac1be0a9",
    "dueAt": "2026-11-25T14:03:11Z",
    "enrolledAt": "2026-11-25T14:03:11Z",
    "enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
    "estimatedMinutes": 30,
    "expiresAt": "2026-11-25T14:03:11Z",
    "lastActivityAt": "2026-11-25T14:03:11Z",
    "progressPercent": 40,
    "status": "ACTIVE",
    "summary": "Fire safety and everyday hazards.",
    "title": "Workplace Safety Essentials"
  }
]

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404No learner has that id.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
curl -X GET "$LMS_URL/api/v1/learners/$EXTERNAL_REF/courses" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/learners/{externalRef}/courses/{course}#

Get a learner's progress in one course

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

Their latest enrollment in the course in full: each lesson's status and time spent, every quiz attempt with its score, and the certificate if one was issued. course is the course's address.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}
courserequiredpathstringmatches [a-z0-9][a-z0-9-]{0,100}

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.
404No learner has that id, or they have no enrollment in that course.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
COURSE=sample-value
curl -X GET "$LMS_URL/api/v1/learners/$EXTERNAL_REF/courses/$COURSE" \
  -H "X-API-Key: $LMS_KEY"
PUT/api/v1/learners/{externalRef}/courses/{course}#

Give a learner a course

AccessAdmin, or an API key with the write scope.

Enrolls them in the course's published version, and returns the course as it appears in their list (201). If they already have it, in progress or finished, nothing changes and the existing enrollment is returned (200). If it was withdrawn or expired this starts a new one. course is the course's address.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}
courserequiredpathstringmatches [a-z0-9][a-z0-9-]{0,100}

Responses

200OK· CourseCard
Example response
{
  "certificateId": "b335ac0d-4339-49fd-ab81-01ace7c46f69",
  "completedAt": "2026-11-25T14:03:11Z",
  "course": "string",
  "coverAssetId": "ce4ba24d-c68c-4c3d-aa93-d96cac1be0a9",
  "dueAt": "2026-11-25T14:03:11Z",
  "enrolledAt": "2026-11-25T14:03:11Z",
  "enrollmentId": "8b76f3d8-59e7-4058-a47c-98d7ac7b3bf8",
  "estimatedMinutes": 30,
  "expiresAt": "2026-11-25T14:03:11Z",
  "lastActivityAt": "2026-11-25T14:03:11Z",
  "progressPercent": 40,
  "status": "ACTIVE",
  "summary": "Fire safety and everyday hazards.",
  "title": "Workplace Safety Essentials"
}

Errors

StatusWhen
400Unknown course, or it has no published version.
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404No learner has that id.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
COURSE=sample-value
curl -X PUT "$LMS_URL/api/v1/learners/$EXTERNAL_REF/courses/$COURSE" \
  -H "X-API-Key: $LMS_KEY"
DELETE/api/v1/learners/{externalRef}/courses/{course}#

Take a course away from a learner

AccessAdmin, or an API key with the write scope.

Withdraws their active enrollment. Their progress is kept. Emits enrollment.withdrawn.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}
courserequiredpathstringmatches [a-z0-9][a-z0-9-]{0,100}

Responses

204No Content

Errors

StatusWhen
401Missing, invalid or expired credentials.
403Your credential is valid but isn't allowed to do this.
404No learner has that id, or they aren't currently taking that course.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
COURSE=sample-value
curl -X DELETE "$LMS_URL/api/v1/learners/$EXTERNAL_REF/courses/$COURSE" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/learners/{externalRef}/session#

Start a learner (the one call to let a user learn)

AccessAdmin, or an API key with the write scope.

Call this from your server when one of your users opens a course. Put your own id for that person in the URL (externalRef). It does everything create or update a learner does, then returns a token (valid for an hour) that your app uses to show them their courses.

Send their name and email. Optionally add where they belong (organization, role, access) and the courses they should have, by course address. Courses they have never been enrolled in are added; someone who finished or was withdrawn is not silently put back. Calling it again is harmless.

The person has no password and can't sign in to the LMS themselves. They only ever act through a token your server asks for.

Parameters

NameInTypeNotes
externalRefrequiredpathstringmatches [A-Za-z0-9._:@+~-]{1,200}

Request body application/json · LearnerRequest

FieldTypeNotes
accessstringmatches MEMBER|MANAGER
coursesstring[]items match [a-z0-9][a-z0-9-]{0,100}; min 0 items
emailrequiredstring (email)min length 0; max length 320
familyNamerequiredstringmin length 0; max length 200
givenNamerequiredstringmin length 0; max length 200
organizationstringmin length 0; max length 200
rolestringmatches [a-z][a-z0-9_]{0,62}
Example request body
{
  "email": "ada@customer.example",
  "givenName": "Ada",
  "familyName": "Lovelace",
  "courses": [
    "safety-101"
  ]
}

Responses

200OK· Session
Example response
{
  "accessToken": "eyJhbGciOiJIUzI1NiJ9…",
  "expiresInSeconds": 3600,
  "learnerId": "56e5f63b-170e-41cb-a9cf-10ee39e22c3f"
}

Errors

StatusWhen
400A listed course, organization or role doesn't exist, a course has no published version, or a field is missing or not valid.
401Missing, invalid or expired credentials.
403Your key doesn't have write access.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409Another account already uses that email, the account is a staff account or is suspended, or the organization has no seats left for the role's courses.

Errors use RFC 9457 problem details.

EXTERNAL_REF=order-5001
curl -X POST "$LMS_URL/api/v1/learners/$EXTERNAL_REF/session" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "email": "ada@customer.example",
  "givenName": "Ada",
  "familyName": "Lovelace",
  "courses": [
    "safety-101"
  ]
}'
GET/api/v1/users#

Search people

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

Searches by name or email (q, case-insensitive, % and _ are literal), optionally filtered by status. Paged with limit (max 200) and offset; total is the full count.

Parameters

NameInTypeNotes
qquerystring—
statusquerystringmatches INVITED|ACTIVE|SUSPENDED|ARCHIVED
limitqueryinteger (int32)—
offsetqueryinteger (int32)—

Responses

200OK· UserPage
Example response
{
  "items": [
    {
      "createdAt": "2026-11-25T14:03:11Z",
      "email": "maya.chen@example.com",
      "externalRef": "order-5001",
      "familyName": "Chen",
      "givenName": "Maya",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "lastLoginAt": "2026-11-25T14:03:11Z",
      "organizations": [
        {
          "access": "MEMBER",
          "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
          "organizationName": "Acme Company",
          "roleKey": "team_lead"
        }
      ],
      "roles": [
        "string"
      ],
      "status": "ACTIVE"
    }
  ],
  "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/users?q=maya&status=ACTIVE" \
  -H "X-API-Key: $LMS_KEY"
GET/api/v1/users/{id}#

Get a person

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

Returns the person with their platform roles and organizations.

Parameters

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

Responses

200OK· UserView
Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "email": "maya.chen@example.com",
  "externalRef": "order-5001",
  "familyName": "Chen",
  "givenName": "Maya",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "lastLoginAt": "2026-11-25T14:03:11Z",
  "organizations": [
    {
      "access": "MEMBER",
      "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
      "organizationName": "Acme Company",
      "roleKey": "team_lead"
    }
  ],
  "roles": [
    "string"
  ],
  "status": "ACTIVE"
}

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.

USER_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/users/$USER_ID" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/users/{id}/reactivate#

Reactivate a person

AccessAdmin, or an API key with the write scope.

Lets a suspended person sign in again.

Parameters

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

Responses

200OK· UserView
Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "email": "maya.chen@example.com",
  "externalRef": "order-5001",
  "familyName": "Chen",
  "givenName": "Maya",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "lastLoginAt": "2026-11-25T14:03:11Z",
  "organizations": [
    {
      "access": "MEMBER",
      "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
      "organizationName": "Acme Company",
      "roleKey": "team_lead"
    }
  ],
  "roles": [
    "string"
  ],
  "status": "ACTIVE"
}

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.

USER_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/users/$USER_ID/reactivate" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/users/{id}/suspend#

Suspend a person

AccessAdmin, or an API key with the write scope.

Stops them signing in. Their data, enrollments and certificates are untouched.

Parameters

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

Responses

200OK· UserView
Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "email": "maya.chen@example.com",
  "externalRef": "order-5001",
  "familyName": "Chen",
  "givenName": "Maya",
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "lastLoginAt": "2026-11-25T14:03:11Z",
  "organizations": [
    {
      "access": "MEMBER",
      "organizationId": "44b78147-d73b-4117-ab62-4292d9ca20db",
      "organizationName": "Acme Company",
      "roleKey": "team_lead"
    }
  ],
  "roles": [
    "string"
  ],
  "status": "ACTIVE"
}

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).
409You can't change your own status, or the account isn't active or suspended.

Errors use RFC 9457 problem details.

USER_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/users/$USER_ID/suspend" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/users/{id}/token#

Get a learner token for one of your learners

AccessAdmin, or an API key with the write scope.

Returns a short-lived token (1 hour) that lets that learner call the learner API (/me/…): their courses, lesson content, progress, quizzes and certificates. Request it from your server with your API key, then hand it to your front end or use it server-side. When it expires, ask for another.

Only for active accounts whose only role is LEARNER. Staff accounts are refused, so a key can never impersonate an admin. The user must be in your tenant.

Parameters

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

Responses

200OK· Issued
Example response
{
  "accessToken": "eyJhbGciOiJIUzI1NiJ9…",
  "expiresInSeconds": 3600
}

Errors

StatusWhen
401Missing, invalid or expired credentials.
403The account is a staff account, or your key doesn't have write access.
404No such user in your tenant.
409The learner is suspended or archived.

Errors use RFC 9457 problem details.

USER_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X POST "$LMS_URL/api/v1/users/$USER_ID/token" \
  -H "X-API-Key: $LMS_KEY"

Type to search guides and every endpoint.