Learn Space Control API

Control an immersive Learn Space room (or a classroom display) from a media control system or touch panel – Crestron, Extron, Q-SYS, AMX, Stream Deck, or anything that can call a URL.

How it works

Authentication

Send the key in one of these ways (first match wins):

x-api-key: lsc_…
Authorization: Bearer lsc_…
?key=lsc_…        (for devices that can only call a URL – use HTTPS)

Commands

All commands accept GET and POST (parameters as query string, JSON or form fields). Base URL: https://<your-server>/api/control/<room>/…

CommandParametersWhat it does
statusCurrent lesson, scene, blank state. Safe to poll every 1–2 s.
nextNext step (same as “Next” on the iPad: next fact, reveal the answer, next scene at the end).
backOne step back.
scene-next / scene-prevWhole scene forward / back.
gotoscene=3Jump to a scene (1 = first).
revealReveal the answer of a quiz.
blankon=1 or on=0All walls black and silent / back to the lesson.
volumelevel=0…100Volume of the room (sound, music, read-aloud, video).
readRead the current scene aloud.
startlesson=<id>Start a ready-made lesson (ids from /api/control/lessons). Own lessons are started by the teacher on the iPad.

GET /api/control/lessons lists the ready-made lessons (id, title, year, language).

Responses

JSON. Every command returns the room status after sending:

{
  "ok": true, "room": "3168", "connected": true, "layout": "strip",
  "lesson": { "id": "uk-space-room-y5", "title": "Journey into Space" },
  "scene": 3, "of": 14, "sceneTitle": "On the Moon", "type": "panorama",
  "blank": false, "camera": false, "vote": null, "soundBlocked": false,
  "sent": "next"
}
HTTPerrorMeaning
401unauthorizedKey missing or wrong.
403forbiddenThe key may not control this room code.
409not_connectedNo room PC with this code is online (status still answers with "connected": false).
400 / 404bad_request / not_foundMissing parameter, unknown command or lesson id.
429rate_limitedMore than 1200 requests per minute for this key.

Examples

curl "https://learnspace.example.com/api/control/3168/next?key=lsc_XXXX"
curl -H "x-api-key: lsc_XXXX" https://learnspace.example.com/api/control/3168/status
curl -X POST -H "x-api-key: lsc_XXXX" -d "level=40" https://learnspace.example.com/api/control/3168/volume
curl -X POST -H "x-api-key: lsc_XXXX" -H "content-type: application/json" \
     -d '{"lesson":"uk-space-room-y5"}' https://learnspace.example.com/api/control/3168/start

Crestron / Extron / Q-SYS: use the HTTP(S) client module of your system and map one button to one URL (for example “Next” → …/next?key=…, “Blank” → …/blank?on=1&key=…). Poll status to show the current scene on the panel.

Notes