Delivery & Practice
Get online lesson status and analytics
Returns online lesson build state, SCORM 1.2 / standalone HTML download paths, and anonymized learner completions without exposing private results keys.
GET
/
api
/
v1
/
kits
/
{kit}
/
lesson
Get online lesson status and analytics
curl --request GET \
--url https://enablementstudio.ai/api/v1/kits/{kit}/lesson \
--header 'Authorization: Bearer <token>'import requests
url = "https://enablementstudio.ai/api/v1/kits/{kit}/lesson"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enablementstudio.ai/api/v1/kits/{kit}/lesson', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://enablementstudio.ai/api/v1/kits/{kit}/lesson",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://enablementstudio.ai/api/v1/kits/{kit}/lesson"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://enablementstudio.ai/api/v1/kits/{kit}/lesson")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enablementstudio.ai/api/v1/kits/{kit}/lesson")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"kit_id": 12,
"built": true,
"lesson_id": "abc123",
"title": "Harborline AE",
"activity_count": 6,
"preview_path": "/kit/lesson?run=12",
"downloads": {
"html": "/kit/lesson?run=12&download=html",
"scorm_1_2": "/kit/lesson?run=12&download=package"
},
"shared": null
}{
"error": {
"code": "wrong_product",
"message": "Only Role kits have online lessons."
}
}{
"error": {
"code": "signed_out",
"message": "Sign in to continue."
}
}{
"error": {
"code": "connector_forbidden",
"message": "An AI app cannot do that. Open Enablement Studio on the web to do it."
}
}{
"error": {
"code": "not_found",
"message": "That page is not part of the app."
}
}Authorizations
Path Parameters
⌘I
Get online lesson status and analytics
curl --request GET \
--url https://enablementstudio.ai/api/v1/kits/{kit}/lesson \
--header 'Authorization: Bearer <token>'import requests
url = "https://enablementstudio.ai/api/v1/kits/{kit}/lesson"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://enablementstudio.ai/api/v1/kits/{kit}/lesson', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://enablementstudio.ai/api/v1/kits/{kit}/lesson",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://enablementstudio.ai/api/v1/kits/{kit}/lesson"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://enablementstudio.ai/api/v1/kits/{kit}/lesson")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://enablementstudio.ai/api/v1/kits/{kit}/lesson")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"kit_id": 12,
"built": true,
"lesson_id": "abc123",
"title": "Harborline AE",
"activity_count": 6,
"preview_path": "/kit/lesson?run=12",
"downloads": {
"html": "/kit/lesson?run=12&download=html",
"scorm_1_2": "/kit/lesson?run=12&download=package"
},
"shared": null
}{
"error": {
"code": "wrong_product",
"message": "Only Role kits have online lessons."
}
}{
"error": {
"code": "signed_out",
"message": "Sign in to continue."
}
}{
"error": {
"code": "connector_forbidden",
"message": "An AI app cannot do that. Open Enablement Studio on the web to do it."
}
}{
"error": {
"code": "not_found",
"message": "That page is not part of the app."
}
}