Get a course draft
US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com
While generating: status and progress. When ready: the bundle (lessons, the course, the certification), the diff publishing would make, warnings (questions left out because the clip doesn't answer them) and media — per clip, its status and a short-lived playable url. Requires read:learning. Also at GET /v1/learning/drafts/{draftId}.
Request example
curl --request GET \ --url 'https://public-api.sessionboard.com/v1/organization/{orgId}/learning/drafts/{draftId}' \ --header 'x-access-token: <api-token>'const response = await fetch('https://public-api.sessionboard.com/v1/organization/{orgId}/learning/drafts/{draftId}', { method: 'GET', headers: { "x-access-token": "<api-token>" },});
const data = await response.json();console.log(data);import requests
response = requests.request( "GET", "https://public-api.sessionboard.com/v1/organization/{orgId}/learning/drafts/{draftId}", headers={ "x-access-token": "<api-token>" },)
print(response.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [ CURLOPT_URL => "https://public-api.sessionboard.com/v1/organization/{orgId}/learning/drafts/{draftId}", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "x-access-token: <api-token>", ],]);
$response = curl_exec($curl);curl_close($curl);
echo $response;package main
import ( "fmt" "io" "net/http")
func main() { req, _ := http.NewRequest("GET", "https://public-api.sessionboard.com/v1/organization/{orgId}/learning/drafts/{draftId}", nil) req.Header.Add("x-access-token", "<api-token>")
res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://public-api.sessionboard.com/v1/organization/{orgId}/learning/drafts/{draftId}")) .header("x-access-token", "<api-token>") .method("GET", HttpRequest.BodyPublishers.noBody()) .build();
HttpResponse<String> response = HttpClient.newHttpClient() .send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Try it
Response headers
Authorizations
x-access-tokenstringheaderOrganization API token. Generate from Organization Settings → API Tokens.
AuthorizationBearer <token>headerorOAuth 2.1 access token. Obtained via the OAuth PKCE flow at
/oauth/token.
Send one of these. See Authentication.
Path parameters
orgIdstringpathrequiredYour organization ID. Any other organization returns
404.draftIdstring<uuid>pathrequired
Responses
200application/json
OK
payloadobjectShow child attributes
draftCourseDraftShow child attributes
idstring<uuid>statusstring- Allowed values
"queued", "generating", "ready", "applying", "applied", "failed"
titlestring | nullmedia_item_idsstring<uuid>[]progressobject | nullShow child attributes
stepstringdoneintegertotalinteger
errorstring | nulllesson_countintegerapplied_atstring<date-time> | nullcreated_atstring<date-time>updated_atstring<date-time>Send back as
baseUpdatedAtwhen you save.bundleCourseBundleLessons, the course and the certification. A lesson's watch step plays a clip (
mediaItemId) and may carrycheckpoints— questions withatSeconds, seconds into the clip. A question hasprompt,type,options,answer(multi-select, ordering and matching answers are JSON strings), optionalconfigandfeedback(correct,incorrect,hint). Keys are permanent: publishing upserts by key.Show child attributes
lessonsobject[]requiredcoursesobject[]certificationsobject[]
diffobjectWhat publishing would do —
created/updated/unchangedfor lessons, courses and certifications.warningsobject[]Show child attributes
lessonintegermessagestring
mediaobjectPer clip id —
status(ready, processing, failed, missing), a short-livedurl,duration_s,poster_url.apply_resultobject | null
403
SCOPE_REQUIRED— the token lacksread:learning(reads) orwrite:learning(writes). Legacy tokens with no scopes cannot write.FORBIDDEN— Learning is not on for the organization, or the token's user lacks the Lessons permission.
404
Not found — also returned for another organization's draft.
Response examples
{ "payload": { "draft": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "status": "queued", "title": "<string>", "media_item_ids": [ "3c90c3cc-0d44-4b50-8888-8dd25736052a" ], "progress": { "step": "<string>", "done": 123, "total": 123 }, "error": "<string>", "lesson_count": 123, "applied_at": "2026-01-15T09:30:00Z", "created_at": "2026-01-15T09:30:00Z", "updated_at": "2026-01-15T09:30:00Z", "bundle": { "lessons": [ {} ], "courses": [ {} ], "certifications": [ {} ] }, "diff": {}, "warnings": [ { "lesson": 123, "message": "<string>" } ], "media": {}, "apply_result": {} } }}