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
- Each room PC shows a 4-digit room code (press
Ion the room PC to show it on all walls). - The school’s administration creates a control key in Learn Space under Settings → Staff → Media control and lists the room codes this key may control. The key (
lsc_…) is shown once. - Your control system sends plain HTTPS requests to the Learn Space server. The command reaches the room PC exactly like a tap on the teacher’s iPad. Teacher and control system can work side by side.
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>/…
| Command | Parameters | What it does |
|---|---|---|
status | Current lesson, scene, blank state. Safe to poll every 1–2 s. | |
next | Next step (same as “Next” on the iPad: next fact, reveal the answer, next scene at the end). | |
back | One step back. | |
scene-next / scene-prev | Whole scene forward / back. | |
goto | scene=3 | Jump to a scene (1 = first). |
reveal | Reveal the answer of a quiz. | |
blank | on=1 or on=0 | All walls black and silent / back to the lesson. |
volume | level=0…100 | Volume of the room (sound, music, read-aloud, video). |
read | Read the current scene aloud. | |
start | lesson=<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"
}
| HTTP | error | Meaning |
|---|---|---|
| 401 | unauthorized | Key missing or wrong. |
| 403 | forbidden | The key may not control this room code. |
| 409 | not_connected | No room PC with this code is online (status still answers with "connected": false). |
| 400 / 404 | bad_request / not_found | Missing parameter, unknown command or lesson id. |
| 429 | rate_limited | More 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
- Commands are delivered over the same connection as the teacher’s iPad (WebSocket relay); typical latency is well under a second.
- A control key belongs to one school and only works for the room codes listed with it. Delete the key in Learn Space to revoke it immediately.
- Planned: interactive walls (touch on the projection), lesson playlists, start of the school’s own lessons from the control system.