Learning Science
Run deterministic learning-science audit
Checks objectives (Mager/Bloom), quiz items (Haladyna/key-position bias), session blocks (cognitive load), and lesson outlines with zero model calls or allowance spend.
POST
/
api
/
v1
/
audit
Run deterministic learning-science audit
curl --request POST \
--url https://enablementstudio.ai/api/v1/audit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objectives": [
"Understand refund policy."
]
}
'import requests
url = "https://enablementstudio.ai/api/v1/audit"
payload = { "objectives": ["Understand refund policy."] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({objectives: ['Understand refund policy.']})
};
fetch('https://enablementstudio.ai/api/v1/audit', 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/audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'objectives' => [
'Understand refund policy.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://enablementstudio.ai/api/v1/audit"
payload := strings.NewReader("{\n \"objectives\": [\n \"Understand refund policy.\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://enablementstudio.ai/api/v1/audit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"objectives\": [\n \"Understand refund policy.\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://enablementstudio.ai/api/v1/audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"objectives\": [\n \"Understand refund policy.\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"objectives": [
{
"statement": "Understand refund policy.",
"score": 2,
"observable": false,
"level": null,
"verb": "understand",
"condition": "",
"object": "refund policy",
"criterion": "",
"reasons": [
"'understand' is a state of mind, not a performance an observer can check — write 'explain' instead."
],
"suggested_verb": "explain"
}
],
"quiz": {
"items": [],
"key_position_bias": null
},
"session": null,
"lesson": null,
"summary": "1 objective(s) (1 below 4/5)"
}{
"error": {
"code": "bad_request",
"message": "Send at least one of objectives, quiz items, session blocks, or lesson_text to audit."
}
}{
"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."
}
}Authorizations
Body
application/json
At least one of objectives, quiz, session, or lesson_text must be present.
⌘I
Run deterministic learning-science audit
curl --request POST \
--url https://enablementstudio.ai/api/v1/audit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objectives": [
"Understand refund policy."
]
}
'import requests
url = "https://enablementstudio.ai/api/v1/audit"
payload = { "objectives": ["Understand refund policy."] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({objectives: ['Understand refund policy.']})
};
fetch('https://enablementstudio.ai/api/v1/audit', 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/audit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'objectives' => [
'Understand refund policy.'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://enablementstudio.ai/api/v1/audit"
payload := strings.NewReader("{\n \"objectives\": [\n \"Understand refund policy.\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://enablementstudio.ai/api/v1/audit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"objectives\": [\n \"Understand refund policy.\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://enablementstudio.ai/api/v1/audit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"objectives\": [\n \"Understand refund policy.\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"objectives": [
{
"statement": "Understand refund policy.",
"score": 2,
"observable": false,
"level": null,
"verb": "understand",
"condition": "",
"object": "refund policy",
"criterion": "",
"reasons": [
"'understand' is a state of mind, not a performance an observer can check — write 'explain' instead."
],
"suggested_verb": "explain"
}
],
"quiz": {
"items": [],
"key_position_bias": null
},
"session": null,
"lesson": null,
"summary": "1 objective(s) (1 below 4/5)"
}{
"error": {
"code": "bad_request",
"message": "Send at least one of objectives, quiz items, session blocks, or lesson_text to audit."
}
}{
"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."
}
}