Docs API reference

Courses & versions

Create, version and publish courses.

A course is a stable identity with versions beneath it. You edit a draft; publishing freezes it as the new published version. Read the Courses & versions guide.

10 endpoints · base path /api/v1

GET/api/v1/courses#

List courses

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

Lists every course in the tenant with its title, status, and which version numbers are published or in draft.

Responses

200OK· list of CourseSummary
Example response
[
  {
    "createdAt": "2026-11-25T14:03:11Z",
    "draftVersion": 1,
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "publishedVersion": 1,
    "slug": "workplace-safety-essentials",
    "status": "ACTIVE",
    "title": "Workplace Safety Essentials"
  }
]

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/courses" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/courses#

Create a course

AccessAdmin, or an API key with the write scope.

Creates the course and an empty draft version (v1) you can start building in. slug is the course's stable address in your own system: lowercase letters, digits and dashes, unique per tenant.

A course isn't visible to learners until you publish it.

Request body application/json · CreateCourse

FieldTypeNotes
slugrequiredstringmatches [a-z0-9][a-z0-9-]{0,100}; min length 1
summarystring—
titlerequiredstringmin length 1
Example request body
{
  "slug": "workplace-safety-essentials",
  "summary": "Fire safety and everyday hazards.",
  "title": "Workplace Safety Essentials"
}

Responses

201Created· CourseSummary
Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "draftVersion": 1,
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "publishedVersion": 1,
  "slug": "workplace-safety-essentials",
  "status": "ACTIVE",
  "title": "Workplace Safety Essentials"
}

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.
409The slug is already used by another course.

Errors use RFC 9457 problem details.

curl -X POST "$LMS_URL/api/v1/courses" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "slug": "workplace-safety-essentials",
  "summary": "Fire safety and everyday hazards.",
  "title": "Workplace Safety Essentials"
}'
GET/api/v1/courses/{id}#

Get a course

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

Returns the course summary. Use the versions endpoints to read its content.

Parameters

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

Responses

Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "draftVersion": 1,
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "publishedVersion": 1,
  "slug": "workplace-safety-essentials",
  "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.

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

Read the draft as a tree

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

Shortcut for GET /courses/{id}/versions/draft.

Parameters

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

Responses

200OK· CourseTree
Example response
{
  "assessments": [
    {
      "feedbackMode": "AFTER_ATTEMPT",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "instructions": "string",
      "items": [
        {
          "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
          "pointsOverride": 1.5,
          "poolBankId": "2d96d03c-9296-457c-ae5b-8193fa93cc0c",
          "poolDrawCount": 1,
          "position": 0,
          "questionVersionId": "feab681a-824d-43fa-a46a-64050ba5aed2"
        }
      ],
      "maxAttempts": 3,
      "passPercent": 70,
      "shuffleOptions": true,
      "shuffleQuestions": true,
      "stableKey": "adc0be0d-16e2-4bfd-a77c-ffacab0bd969",
      "timeLimitSeconds": 1,
      "title": "Workplace Safety Essentials"
    }
  ],
  "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
  "modules": [
    {
      "description": "A short description.",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "lessons": [
        {
          "blocks": [
            {}
          ],
          "completionMode": "MANUAL",
          "estimatedMinutes": 30,
          "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
          "isRequired": true,
          "position": 0,
          "stableKey": "adc0be0d-16e2-4bfd-a77c-ffacab0bd969",
          "title": "Workplace Safety Essentials",
          "unlockMode": "OPEN"
        }
      ],
      "position": 0,
      "stableKey": "adc0be0d-16e2-4bfd-a77c-ffacab0bd969",
      "title": "Workplace Safety Essentials"
    }
  ],
  "slug": "workplace-safety-essentials",
  "version": {
    "certificateTemplateId": "f9369757-51f7-4227-a2e1-3922edbd9bab",
    "certificateValidityDays": 1,
    "completionPercent": 80,
    "completionPolicy": "ALL_REQUIRED",
    "coverAssetId": "ce4ba24d-c68c-4c3d-aa93-d96cac1be0a9",
    "description": "A short description.",
    "estimatedMinutes": 30,
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "number": 1,
    "publishedAt": "2026-11-25T14:03:11Z",
    "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.
404The course has no draft.

Errors use RFC 9457 problem details.

COURSE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X GET "$LMS_URL/api/v1/courses/$COURSE_ID/draft" \
  -H "X-API-Key: $LMS_KEY"
PUT/api/v1/courses/{id}/draft#

Update the draft's settings

AccessAdmin, or an API key with the write scope.

Replaces the draft's metadata: title, descriptions, cover image, estimated time, the completion rule, and the certificate.

  • completionPolicy is ALL_REQUIRED or PERCENT_REQUIRED. completionPercent is required with the latter and not allowed with the former.
  • certificateTemplateId makes completion issue a certificate; certificateValidityDays sets its expiry (omit for never).

Parameters

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

Request body application/json · Metadata

FieldTypeNotes
certificateTemplateIdstring (uuid)—
certificateValidityDaysinteger (int32)min 1
completionPercentinteger (int32)min 1
completionPolicyrequiredstringmatches ALL_REQUIRED|PERCENT_REQUIRED
coverAssetIdstring (uuid)—
descriptionstring—
estimatedMinutesinteger (int32)min 0
summarystring—
titlerequiredstringmin length 1
Example request body
{
  "title": "Workplace Safety Essentials",
  "summary": "Fire safety and everyday hazards.",
  "completionPolicy": "ALL_REQUIRED",
  "certificateTemplateId": "7a1e3c52-9b4d-4f08-a2c6-5d81e0b39f17",
  "certificateValidityDays": 365
}

Responses

Example response
{
  "certificateTemplateId": "f9369757-51f7-4227-a2e1-3922edbd9bab",
  "certificateValidityDays": 1,
  "completionPercent": 80,
  "completionPolicy": "ALL_REQUIRED",
  "coverAssetId": "ce4ba24d-c68c-4c3d-aa93-d96cac1be0a9",
  "description": "A short description.",
  "estimatedMinutes": 30,
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "number": 1,
  "publishedAt": "2026-11-25T14:03:11Z",
  "status": "ACTIVE",
  "summary": "Fire safety and everyday hazards.",
  "title": "Workplace Safety Essentials"
}

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).
409The course has no draft to edit.

Errors use RFC 9457 problem details.

COURSE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X PUT "$LMS_URL/api/v1/courses/$COURSE_ID/draft" \
  -H "X-API-Key: $LMS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "Workplace Safety Essentials",
  "summary": "Fire safety and everyday hazards.",
  "completionPolicy": "ALL_REQUIRED",
  "certificateTemplateId": "7a1e3c52-9b4d-4f08-a2c6-5d81e0b39f17",
  "certificateValidityDays": 365
}'
DELETE/api/v1/courses/{id}/draft#

Discard the draft

AccessAdmin, or an API key with the write scope.

Throws the draft away. The published version is untouched. You can't discard the only version of a course.

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).
409The course has no draft, or the draft is its only version.

Errors use RFC 9457 problem details.

COURSE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
curl -X DELETE "$LMS_URL/api/v1/courses/$COURSE_ID/draft" \
  -H "X-API-Key: $LMS_KEY"
POST/api/v1/courses/{id}/publish#

Publish the draft

AccessAdmin, or an API key with the write scope.

Freezes the draft as the new published version and retires the previous one. Learners already enrolled keep the version they started on; new enrollments get this one. Emits course.published.

Publishing is validated. If anything is wrong you get a 422 with every problem at once, in problems:

  • the course has no lessons
  • a section has no lessons, or a lesson has no content blocks
  • a lesson completes by passing an assessment but has no assessment block
  • an assessment used in a lesson has no questions
  • a pool draws more questions than its bank holds
  • the certificate template is archived

Parameters

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

Responses

Example response
{
  "createdAt": "2026-11-25T14:03:11Z",
  "draftVersion": 1,
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "publishedVersion": 1,
  "slug": "workplace-safety-essentials",
  "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).
409There is no draft to publish. Start one with POST /courses/{id}/versions.
422The draft can't be published yet. The body's problems array lists everything to fix.

Errors use RFC 9457 problem details.

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

List versions

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

Lists every version of the course, newest first, with its status (DRAFT, PUBLISHED or RETIRED) and publish time.

Parameters

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

Responses

200OK· list of CourseVersionView
Example response
[
  {
    "certificateTemplateId": "f9369757-51f7-4227-a2e1-3922edbd9bab",
    "certificateValidityDays": 1,
    "completionPercent": 80,
    "completionPolicy": "ALL_REQUIRED",
    "coverAssetId": "ce4ba24d-c68c-4c3d-aa93-d96cac1be0a9",
    "description": "A short description.",
    "estimatedMinutes": 30,
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "number": 1,
    "publishedAt": "2026-11-25T14:03:11Z",
    "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.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

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

Start a new draft

AccessAdmin, or an API key with the write scope.

Copies the published version into a new draft, preserving each section's, lesson's and quiz's stableKey so progress can be related across versions. The copy gets new row ids.

A course has at most one draft and one published version at a time. Emits course.version.created.

Parameters

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

Responses

201Created· CourseVersionView
Example response
{
  "certificateTemplateId": "f9369757-51f7-4227-a2e1-3922edbd9bab",
  "certificateValidityDays": 1,
  "completionPercent": 80,
  "completionPolicy": "ALL_REQUIRED",
  "coverAssetId": "ce4ba24d-c68c-4c3d-aa93-d96cac1be0a9",
  "description": "A short description.",
  "estimatedMinutes": 30,
  "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
  "number": 1,
  "publishedAt": "2026-11-25T14:03:11Z",
  "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.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).
409The course already has a draft, or has no published version to copy.

Errors use RFC 9457 problem details.

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

Read a version as a tree

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

Returns a whole version: metadata, sections, lessons, blocks and assessments. which is draft, published, or a version number such as 3. Any version can be read; only drafts can be edited.

Parameters

NameInTypeNotes
idrequiredpathstring (uuid)The id from a previous response.
whichrequiredpathstringdraft, published, or a version number

Responses

200OK· CourseTree
Example response
{
  "assessments": [
    {
      "feedbackMode": "AFTER_ATTEMPT",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "instructions": "string",
      "items": [
        {
          "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
          "pointsOverride": 1.5,
          "poolBankId": "2d96d03c-9296-457c-ae5b-8193fa93cc0c",
          "poolDrawCount": 1,
          "position": 0,
          "questionVersionId": "feab681a-824d-43fa-a46a-64050ba5aed2"
        }
      ],
      "maxAttempts": 3,
      "passPercent": 70,
      "shuffleOptions": true,
      "shuffleQuestions": true,
      "stableKey": "adc0be0d-16e2-4bfd-a77c-ffacab0bd969",
      "timeLimitSeconds": 1,
      "title": "Workplace Safety Essentials"
    }
  ],
  "courseId": "ecec91e5-4eb9-4c55-a6a7-b3c44ebe7561",
  "modules": [
    {
      "description": "A short description.",
      "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
      "lessons": [
        {
          "blocks": [
            {}
          ],
          "completionMode": "MANUAL",
          "estimatedMinutes": 30,
          "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
          "isRequired": true,
          "position": 0,
          "stableKey": "adc0be0d-16e2-4bfd-a77c-ffacab0bd969",
          "title": "Workplace Safety Essentials",
          "unlockMode": "OPEN"
        }
      ],
      "position": 0,
      "stableKey": "adc0be0d-16e2-4bfd-a77c-ffacab0bd969",
      "title": "Workplace Safety Essentials"
    }
  ],
  "slug": "workplace-safety-essentials",
  "version": {
    "certificateTemplateId": "f9369757-51f7-4227-a2e1-3922edbd9bab",
    "certificateValidityDays": 1,
    "completionPercent": 80,
    "completionPolicy": "ALL_REQUIRED",
    "coverAssetId": "ce4ba24d-c68c-4c3d-aa93-d96cac1be0a9",
    "description": "A short description.",
    "estimatedMinutes": 30,
    "id": "37386ae0-0ea5-44e0-a02e-161f807af560",
    "number": 1,
    "publishedAt": "2026-11-25T14:03:11Z",
    "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.
404It doesn't exist, or it belongs to another tenant (the two look the same on purpose).

Errors use RFC 9457 problem details.

COURSE_ID=37386ae0-0ea5-44e0-a02e-161f807af560
WHICH=string
curl -X GET "$LMS_URL/api/v1/courses/$COURSE_ID/versions/$WHICH" \
  -H "X-API-Key: $LMS_KEY"

Type to search guides and every endpoint.