Skip to content

Learning standards: LTI 1.3, SCORM, cmi5, xAPI and H5P

Academy speaks the e-learning standards in both directions: it plays packages from authoring tools, launches other LTI tools inside its courses, and lets other LMSs launch its courses. This page is the technical reference; organisation administrators find the setup for Moodle, Canvas and others in the LTI guide. The scope and what is left out are decided in ADR 0041 and ADR 0071.

Standard Academy as the LMS (content plays in Academy) Academy as the content (another LMS uses it)
LTI 1.3 launches external tools in a lesson and takes their scores (AGS) is a tool: an LMS launches its courses, with Deep Linking and scores back (AGS)
SCORM plays SCORM 1.2 packages –
cmi5 plays cmi5 packages, with an LRS of its own for them exports a course as a cmi5 package
xAPI (Tin Can) plays Tin Can packages, with an LRS of its own for them –
H5P plays .h5p files –

Not supported: SCORM 2004, LTI Names and Roles (NRPS), Deep Linking for tools launched from Academy, a general-purpose LRS, and sending statements to an external LRS (future features).

Both LTI roles sign with one RSA key (RS256, 2048 bits). Its public half is at

GET https://<api>/.well-known/jwks.json

The key is made on first use, and its private half is sealed with the platform’s key service. The JWKS lists every key, newest first (kid academy-…), so a platform that cached an older key keeps working while a new one is added.

An LMS launches Academy courses: people arrive signed in, and their progress goes to the LMS’s grade book.

Register the LMS. An organisation administrator finds the tool’s values under Manage → Integrations → Interfaces → LTI (GET /v1/admin/lti/tool):

Value Address
OIDC login initiation https://<api>/v1/lti/login, or per registration https://<api>/v1/lti/r/<id>/login
Target link and redirect URI https://<api>/v1/lti/launch
Deep Linking https://<api>/v1/lti/launch
Public keys (JWKS) https://<api>/.well-known/jwks.json

and registers the LMS (POST /v1/admin/lti/platforms) with the LMS’s issuer, clientId, deploymentIds (1 to 50), authLoginUrl, authTokenUrl and jwksUrl. The same issuer and client id twice is 409 already_registered.

The launch.

  1. The LMS calls the login initiation (GET or form POST) with iss, login_hint, target_link_uri and optionally lti_message_hint, client_id, lti_deployment_id.
  2. Academy redirects to the LMS’s authLoginUrl with scope=openid, response_type=id_token, response_mode=form_post, prompt=none, a state and a nonce, valid 10 minutes.
  3. The LMS posts id_token and state to /v1/lti/launch. Academy checks the token against the LMS’s JWKS (RS256, at most 5 minutes old, issuer, audience = client id), the nonce, version 1.3.0 and the deployment id.
  4. The person becomes a guest of the organisation, known by issuer and subject only, never matched to a member by email.

Message types.

  • LtiDeepLinkingRequest, for teaching roles (Instructor, Administrator, ContentDeveloper, TeachingAssistant): the teacher picks a published course in Academy within 30 minutes. Academy answers with a signed LtiDeepLinkingResponse holding one ltiResourceLink with custom.course_id and a line item (scoreMaximum 100).
  • LtiResourceLinkRequest: opens the course in custom.course_id. Only courses this LMS linked through Deep Linking open; another is 400 lti_no_course.

Scores back (AGS). When the launch carries an AGS endpoint with a lineitem and the score scope, Academy posts a score each time a lesson is completed: the share of the course’s lessons done (0 to 100), InProgress/Pending until all are done, then Completed/FullyGraded. It gets its token from the LMS’s authTokenUrl with a client-credentials grant and a signed JWT assertion (RFC 7523).

A lesson of type External learning content can launch another LTI 1.3 tool.

Register the tool (organisation administrators). GET /v1/learning-standards/tools lists the tools and Academy’s platform values:

Value Address
Issuer https://<api>
OIDC authorization endpoint https://<api>/v1/learning-standards/authorize
Token endpoint https://<api>/v1/learning-standards/token
Public keys (JWKS) https://<api>/.well-known/jwks.json
Client id and deployment id the tool’s id in Academy, the same in both fields

POST /v1/learning-standards/tools takes name, the tool’s loginUrl (HTTPS), its redirectUris (1 to 20 exact HTTPS addresses) and its public keys as a JWKS (1 to 5 RSA keys with distinct kid). Never enter a private key. PATCH /v1/learning-standards/tools/{id} switches a tool off or on and replaces its keys: add the new key beside the old one while the tool rotates, then remove the old one. Switching a tool off stops new launches and score posts at once; completions already recorded stay.

Attach it to a lesson (trainers): PUT /v1/learning-objects/{id}/external/lti with toolId, targetUrl (one of the tool’s redirect URIs), passThreshold (0 to 1, default 0.7) and optional custom parameters (at most 30 keys matching ^[a-z][a-z0-9_]{0,63}$).

The launch. POST /v1/learning-objects/{id}/external/lti/launch gives a one-time address, valid for 2 minutes. It sends the browser to the tool’s loginUrl with iss, login_hint, target_link_uri, client_id and lti_deployment_id. The tool’s authentication request to the authorization endpoint (nonce once, within 10 minutes) gets a signed id_token (RS256, 5 minutes) posted to the tool: a pseudonymous sub, the role Learner or Instructor, context, resource link, custom, and an AGS endpoint with the score scope and a line item for this launch.

Scores from the tool.

  1. The tool gets a token: POST /v1/learning-standards/token, form-encoded, with grant_type=client_credentials, client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer, a client_assertion signed with its key (iss = sub = its client id, aud = the token endpoint, jti used once, at most 5 minutes) and scope=https://purl.imsglobal.org/spec/lti-ags/scope/score. The bearer token lasts an hour.
  2. It posts to the line item’s /scores with Content-Type: application/vnd.ims.lis.v1.score+json: userId (the launch’s sub), timestamp, activityProgress, gradingProgress, and scoreGiven with scoreMaximum. Academy answers 204.
  3. The lesson is passed when a score is Completed and FullyGraded and reaches the pass threshold. Each launch has its own line item; after a newer launch, the older one’s scores are 409 standard_changed. A tool that sends no scores never completes a lesson.
  • Import: POST /v1/learning-objects/{id}/scorm with the ZIP as the raw body (Content-Type: application/zip), for a lesson of type Package (SCORM). imsmanifest.xml must be at the top. Limits: 300 MiB upload, 5,000 files, 500 MiB unpacked, 200 MiB a file. Every file is scanned for viruses. SCORM 2004 manifests are refused.
  • Runtime: packages play on a separate content host (SCORM_CONTENT_URL, configuration), so their scripts can’t reach the portal. The player gives the package the SCORM 1.2 API (window.API with LMSInitialize, LMSGetValue, LMSSetValue, LMSCommit, LMSFinish and the error functions) and talks to the portal only by postMessage, to the portal’s exact origin. cmi.suspend_data holds up to 4,096 characters, cmi.core.lesson_location 255.
  • Completion: a package with a mastery score passes or fails by it. The lesson is complete when every SCO is completed or passed.
  • Without a content host, SCORM, cmi5, xAPI and H5P answer 409 scorm_unavailable.

A lesson of type External learning content takes a package: a ZIP with cmi5.xml or tincan.xml at its root, or an .h5p file with its libraries.

  • Import: POST /v1/learning-objects/{id}/external/package. Limits: 300 MiB, 10,000 files, 500 MiB unpacked, 200 MiB a file, 1 to 200 launchable units. Broken archives, missing H5P libraries and ambiguous manifests are refused.
  • Launch: POST /v1/learning-objects/{id}/external/package/launch with an optional unitId. The unit gets the LRS address https://<api>/v1/learning-standards/xapi/, a registration, its activity id and an actor (an Agent with an account on the API’s address and a pseudonymous name). cmi5 units also get a fetch address for their token (once, within 5 minutes); Tin Can units get auth in the query; H5P gets the same values in the address’s fragment.
  • Completion: cmi5 follows the author’s moveOn, and every unit must be satisfied; Academy writes satisfied for blocks and the course. Tin Can and H5P count completed (with completion: true) or passed (with success: true) on the unit’s activity. H5P saves its state every 20 seconds when the content supports it.
  • A replacement package gets a new identity and registrations of its own; completions of the old one stay as history.

The units of a package talk to an LRS of their own, not a general one. Every request needs Authorization: Basic <the launch token> and X-Experience-API-Version: 1.0.3 (anything else is 400 standard_version). Launch tokens last 4 hours.

Method Path
GET /v1/learning-standards/xapi/about {"version": ["1.0.3"]}
POST /v1/learning-standards/xapi/statements 1 to 100 statements
PUT /v1/learning-standards/xapi/statements?statementId=… one statement
GET /v1/learning-standards/xapi/statements by statementId, or limit (up to 100) and offset, within the registration
GET, PUT, POST, DELETE /v1/learning-standards/xapi/activities/state with ETag, If-Match and If-None-Match; POST merges JSON objects. 1 MiB a document; 10 MiB and 200 documents a registration

Statements must carry the session’s actor and registration; attachments are refused. For cmi5, initialized comes first, and each defined verb (completed, passed, failed, terminated) at most once, with a duration. LMS.LaunchData is read-only. The agent and activity profile resources, voided statements and the verb, agent and since filters are not offered.

Academy’s own record of statements: GET /v1/xapi/statements?activity=…&limit=… (up to 200; administrators see the organisation’s, others their own).

A trainer exports a published course for another LMS: POST /v1/courses/{id}/exports/cmi5 answers a ZIP with only cmi5.xml. Each module is a block and each lesson an AU (moveOn Passed for quizzes and labs, otherwise Completed; launchMethod AnyWindow). The AUs point to https://<api>/v1/cmi5/launch?pkg=…&au=…, so the content stays in Academy.

  • When the LMS launches an AU, Academy fetches the token from the LMS’s fetch address, reads LMS.LaunchData and sends initialized. As the person goes on, it sends passed (quizzes and labs, with the scaled score) and completed, and at the end terminated with the duration. Only launches in Normal mode report.
  • The first LMS that launches a package binds it to its addresses; another LMS gets 403 cmi5_other_lms.
  • GET /v1/courses/{id}/exports lists the exports; DELETE /v1/cmi5/packages/{id} revokes one, and later launches get 410.

Launches give other tools only pseudonymous ids and the course context. Progress and statements are part of a person’s data export and are erased with the person.