209 documented routes · iOS, Mac & Apple TV · Android & Android TV
LiveDeck control API
Every LiveDeck app runs a small local HTTP server so a Stream Deck, Bitfocus Companion, a browser remote, or your own script can switch, cue skins, run PTZ and start outputs — all on your own network, with nothing passing through our servers. This page documents every route, traced directly to the app's own source, with the platform differences called out rather than hidden.
API reference (PDF)Companion module (free) ↗ Download the standalone tester
Both apps already send Access-Control-Allow-Origin: * on every /api/* route, so the standalone tester works even opened straight from disk (file://) — no server in between, nothing to install.
Try it on your device
This opens the device's own API console in a new tab — nothing is sent to manarlabs.com. Your browser blocks a secure website like this one from calling devices on your local network directly, but the device's own page runs calls straight from your browser to the device.
Find the token and the exact IP in the app under Output → Control API.
Pairing
The only two JSON /api routes that don't need a token — but they only answer a peer on the same local network. Use this to get a token into a browser or a Companion install without ever showing the token on screen. (The /api and /api/docs pages — LiveDeck's own self-documenting HTML reference — also answer without a token; they document, they don't control.)
/api/pairNo token (local network only)| Param | Where | Required | Description |
|---|---|---|---|
| name | body (JSON) | Yes | Label shown in the app's pairing prompt, ≤40 characters. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/pair \
-H 'Content-Type: application/json' \
-d '{"name":"My browser"}'Example response
{ "requestID": "a1b2c3", "code": "4821", "expiresIn": 60 }Rate-limited to 5 requests/min per peer (429 past that), one pending pair at a time (409), and 503 if the app has no token configured yet (API fully closed). The app shows the 4-digit code for the operator to approve or deny on-screen.
/api/pair/<requestID>No token (local network only)| Param | Where | Required | Description |
|---|---|---|---|
| requestID | path | Yes | The id returned by POST /api/pair. |
Example request
curl -s http://192.168.1.42:8088/api/pair/a1b2c3Example response
{ "state": "waiting", "expiresIn": 42 }
// then, once approved:
{ "state": "approved", "token": "<48-char hex token>" }
// or: { "state": "denied" } / { "state": "expired" }Poll this every couple of seconds. The token is handed over exactly once — the server destroys the pairing record right after a successful "approved" read, so a second poll after that returns "expired".
State & monitoring
Read-only. Everything here works with GET and never changes anything in the app.
/api/stateBearer tokenExample request
curl -s http://192.168.1.42:8088/api/state?token=YOUR_TOKENExample response
Full state JSON — the same object the browser remote polls as /state.json.Recent additions: `sourceOptions[].group` is now "remote" (label "Phones & guests (satellites)") for Wi-Fi satellites as well as internet ones — it used to be "network" for the Wi-Fi ones; `inputs[].sat` and `discovered[].sat` are booleans that flag a Wi-Fi satellite; new top-level keys `score`, `scoreSkins`, `scoreBoards` (scoreboard), `crew`, `messages`, `unreadMessages`, `talkTarget`, `talkTargetLabel`, `talkback`, `crewQuick` (Crew), `satBackup` (satellite backups), `whiteboard`, `showLive`, `goLive`, `liveArmed`, `viewers` (live viewer counts, see GET /api/outputs) `scheduleCountdown`, `scheduleMissed`, `savedShows`, `scheduleOutputs` (schedules, see GET /api/schedules), `platform` (ios | ipados | mac | tvos; Apple) and, in `skins[]`, `drawing`; `facebook.askFirst`. Each is also readable on its own through the route documented in its section. New in iOS 542 / Android vc259: `cam` (both platforms; Android from the build after vc259; the built-in camera on Program: {zoom, minZoom, maxZoom, lenses[], canFlip, front, torch, hasTorch}, null when none — see Phone camera) and, inside `stats`, the stream warning fields `warn`, `warnLevel`, `warnCause`, `warnSilent` (see GET /api/stats).
/api/programBearer tokenExample request
curl -s http://192.168.1.42:8088/api/program?token=YOUR_TOKENExample response
{ "program": "...", "liveLayout": "...", "cuedLayout": "...", "takeStyle": "cut", "portrait": false, "programPtz": {...} }Android's response additionally includes "preview" and "monMuted" keys that iOS does not return here.
/api/layoutsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/layouts?token=YOUR_TOKENExample response
Array of layout objects (id, name, sources, skins…)./api/sourcesBearer tokenExample request
curl -s http://192.168.1.42:8088/api/sources?token=YOUR_TOKENExample response
Array of source objects currently known to the mixer (NDI, cameras, satellites, test patterns)./api/sources/<id>/removeBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id, from /api/sources. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/sources/cam1/remove?token=YOUR_TOKENExample response
{ "ok": true }/api/skinsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/skins?token=YOUR_TOKENExample response
iOS: { skins, skinKinds, skinEffects, skinTriggers, skinGroups, layouts }Android's response is narrower: only { skins, skinKinds }. The skinEffects/skinTriggers/skinGroups/per-layout skin list are iOS-only on this route. Every skin carries suppressed (true for a Scoreboard/Fundraiser bug hidden by its own board layout while that layout is live; false for every other skin).
/api/transitionsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/transitions?token=YOUR_TOKENExample response
Array of available transition styles (cut, dissolve, …)./api/audioBearer tokenExample request
curl -s http://192.168.1.42:8088/api/audio?token=YOUR_TOKENExample response
Per-source audio state: gain, mute, solo, delay, follow mode, master level./api/healthBearer tokenExample request
curl -s http://192.168.1.42:8088/api/health?token=YOUR_TOKENExample response
{ "ok": true }Cheap liveness check — good for a Companion "device reachable" indicator.
/api/statsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/stats?token=YOUR_TOKENExample response
{ "stats": { "cpu": 42, "res": "1920×1080 @ 29.97", "fps": 29.9, "outputRes": "1080p", "outputFps": 30, "warn": "", "warnLevel": "", "warnCause": "", "warnSilent": [] }, "inputs": [ … ] }Stream warning fields (both platforms, same verdict as the app's PiP bar / Live Activity / notification): `warn` = the one line to show ("" when all is well), `warnLevel` = warning (flashing) | note (small tag) | silent, `warnCause` = machine-readable cause, `warnSilent` = detail lines for a performance panel. Platform differences: for the silent level iOS sends warnLevel "" and Android "silent"; warnCause keys differ — iOS: video, audio, output, recording, memory, upload, wifi, saturated, overload, heat, fps or ""; Android: source_lost, no_audio, output, rec_space, low_memory, upload, weak_wifi, saturated, overload, heat, generic_fps or none. Treat an empty `warn` as healthy on both.
/api/eventsSSE streamBearer tokenExample request
curl -N http://192.168.1.42:8088/api/events?token=YOUR_TOKENExample response
text/event-stream. `event: state` with a compact state payload on every change, plus a `: ping` comment every ~15s to keep the connection alive. The compact payload carries the keys a control surface needs, including `crew`, `unreadMessages`, `talkTarget`, `talkback`, `isLive`, `liveArmed`, `liveSince`, `goLive` and `sc` (the scoreboard game) and `fund` (the fundraiser campaign).Both platforms' compact payload includes `liveSelection` (Android's carries a few more keys than iOS: facebook, rtmpConfigured, fbConfigured, hasChosen, remember) and the isLive/liveSince fields. iOS/Apple TV also send `facebook` (= GET /api/facebook: login code, account, target, state). iOS/Apple TV also send `nextSchedule` and `scheduleCountdown` (see GET /api/schedules). A scorekeeper-page session (cookie or remote PIN, no API token) gets a cut-down stream that carries only the game: `data: {"sc":{…},"serverNow":…}`. Fundraiser changes arrive in the same compact payload as `fund` (the R object without `ok`), and a fundraiser treasurer-cookie session gets a cut-down stream carrying only `data: {"fund":{…},"serverNow":…}`. Not fetch-able from the standalone tester (EventSource keeps the connection open) — use curl -N or a Companion feedback instead.
/api/thumb/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
Example request
curl -s http://192.168.1.42:8088/api/thumb/cam1?token=YOUR_TOKEN -o thumb.jpgExample response
image/jpegHitting this also counts as "someone is watching" and keeps that source's thumbnail refreshing.
/api/program.jpgBearer tokenExample request
curl -s http://192.168.1.42:8088/api/program.jpg?token=YOUR_TOKEN -o program.jpgExample response
image/jpeg — a snapshot of the current Program output./api/outputsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/outputs?token=YOUR_TOKENExample response
{ out: { ndi, rtmp, rec/record, hls, rtmpSrv, fb, fbStatus, fbConfigured, fbLive, fbGraphStatus, fbPermalink, yt, ytStatus, ytConfigured, ytLive, ytLifeCycle, ytStreamStatus, ytWatchURL, ytChannel, … }, isLive, liveSince, liveSelection { ndi, rtmp, record, hls, rtmpServer, facebook, fbConfigured, youtube, ytConfigured, rtmpConfigured, hasChosen, remember }, goLiveRemembered, lastGoLiveFailures, goLive, viewers { youtube, facebook, total, peak } }One-tap Facebook Live: out.fb (starting or on air), out.fbStatus ("", "logging in…", "connecting to <where>…", "● live to <where>", or "Facebook: <reason>" when it failed) fbLive (true only once FACEBOOK reports the live video LIVE, not when the RTMP push connects), fbGraphStatus (Facebook's own status of the live video: LIVE, UNPUBLISHED, …), fbPermalink (the live video on facebook.com) and fbConfigured (this build offers one-tap: iPhone/iPad and Apple TV (device-code login, see the Facebook Live group); Android; never the Mac). State key `facebook` = GET /api/facebook (Apple platforms; Android pending). liveSelection.facebook = ticked for GO LIVE. Android's table does not list the GO LIVE bookkeeping fields, but its state carries them. One-tap YouTube Live (same shape): out.yt (starting or on air), out.ytStatus ("", "signing in to YouTube…", "creating the YouTube live…", "connecting to YouTube…", "Connected — waiting for YouTube…", "● live on YouTube · <channel>", or "YouTube: <reason>" when it failed), ytLive (true only once YOUTUBE reports lifeCycleStatus live), ytLifeCycle (YouTube's lifeCycleStatus: ready, testing, live, complete…), ytStreamStatus (stream status/health, e.g. active/good), ytWatchURL (https://www.youtube.com/watch?v=<broadcast>), ytChannel (the signed-in channel) and ytConfigured (iPhone/iPad and Android test builds until Google verifies the app; never Mac / Apple TV). liveSelection.youtube = ticked for GO LIVE. State also carries outputPills: one row per ACTIVE output {kind (youtube, facebook, rtmp, ndi, record, hls, rtmpServer), name, state (connecting, waiting, live, error), error, since} — the same states the app's output status pills show (Facebook is only live when Graph reports LIVE, YouTube only at lifeCycleStatus live; waiting = the platform accepted the stream but has not reported live yet; error = a problem). Live viewer counts: `viewers` = { youtube, facebook, total, peak }, each a number or null. Counts exist only for broadcasts LiveDeck created itself (one-tap Facebook: Graph live_views; one-tap YouTube: concurrentViewers, switched off on iOS and Android until Google approves that API use, so youtube stays null for now) and only while that output is live; null = unknown or hidden by the channel (never 0 as a guess). total = sum of the known counts (null when none), peak = highest total since the stream started; all reset when the stream ends. Read every 30 s. Stream-key / RTMP outputs never have a count.
/api/sources/uploadBearer token| Param | Where | Required | Description |
|---|---|---|---|
| name | query | No | display name |
| kind | query | No | auto | image | video (default auto) |
| layout | query | No | true | false (default true). false = add the source only, no full-frame layout (reply has no layoutID). |
| (body) | body (raw) | Yes | the picture or video |
Example request
curl -s -X POST --data-binary @logo.png 'http://192.168.1.42:8088/api/sources/upload?name=Logo&token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…", "kind": "image", "layoutID": "…" }Adds a picture or (looping) video source from the uploaded file, plus a full-frame layout showing it, as the app does (layout=false: the source only). Raw request body = the file (Content-Length required). Max 500 MB; refused when the device would keep under 2 GB free. Errors: 411 no length, 413 too big, 415 file type not supported, 422 (Android) file can't be opened, 507 not enough space.
Run a Show
Starts, steps through and ends a saved rundown (intro/outro, cued segments).
/api/show/startBearer token| Param | Where | Required | Description |
|---|---|---|---|
| record | query | No | Default true. |
| stream | query | No | Default true. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/show/start?token=YOUR_TOKEN&record=true&stream=true'Example response
{ "ok": true }/api/show/nextBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/show/next?token=YOUR_TOKENExample response
{ "ok": true }/api/show/step/<index>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| index | path | Yes | 0-based step index. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/show/step/2?token=YOUR_TOKENExample response
{ "ok": true }/api/show/endBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/show/end?token=YOUR_TOKENExample response
{ "ok": true }/api/show/liveBearer tokenExample request
curl -s http://192.168.1.42:8088/api/show/live?token=YOUR_TOKENExample response
{ "showLive": { "show": "Sunday Service", "title": "", "effectiveTitle": "Sunday Service", "description": "", "facebook": true, "facebookTarget": "", "facebookTargetName": "", "oneTapFacebook": false, "youtube": true, "youtubePrivacy": "unlisted", "oneTapYouTube": false } }The loaded show's live-stream details: title (blank = the show name, see effectiveTitle), description, and whether START also goes live to Facebook (facebookTarget "me" = timeline, otherwise a Page id; blank = asked at the first go-live). oneTapFacebook = this device can go live to Facebook in one tap. youtube = START also goes live on YouTube (with the title/description, no prompts) and youtubePrivacy = public | unlisted | private (default unlisted); oneTapYouTube = this device offers one-tap YouTube Live.
/api/show/liveBearer token| Param | Where | Required | Description |
|---|---|---|---|
| title | query/body | No | Live video title (empty = use the show name). |
| description | query/body | No | Live video description. |
| query/body | No | true | false — START also goes live to Facebook. | |
| clearTarget | query/body | No | true = forget the remembered timeline / Page. |
| youtube | query/body | No | true | false — START also goes live on YouTube. |
| youtubePrivacy | query/body | No | public | unlisted | private — who can watch the YouTube broadcast. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/show/live?token=YOUR_TOKEN&title=Sunday%20Service&facebook=true'Example response
{ "ok": true }Set the loaded show's live-stream details (saved into the show). Omitted params stay as they are; an empty title or description clears it.
/api/showsBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/shows?token=YOUR_TOKEN'Example response
{ "ok": true, "shows": [{ "id": "…", "name": "Sunday service", "savedAt": 1764150000, "layouts": 3, "steps": 3, "intro": true, "outro": false, "loaded": false }], "loadedID": null }Every saved show. Also in /api/state as `shows`.
/api/shows/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | show id |
Example request
curl -s 'http://192.168.1.42:8088/api/shows/<id>?token=YOUR_TOKEN'Example response
{ "ok": true, "show": { "id": "…", "name": "…", "savedAt": 1764150000, "layouts": [{"id":"…","name":"Host"}], "rundown": [{"name":"Host","layoutID":"…","seconds":null}], "operator": { … }, "intro": {"name":"intro.mp4","kind":"video"}, "outro": null, "loaded": false } }One show with its rundown, operator settings and intro/outro.
/api/shows/saveBearer token| Param | Where | Required | Description |
|---|---|---|---|
| (body) | body (JSON) | Yes | {name, id?, layouts:[layoutID…], rundown?, operator?, intro?, outro?} |
Example request
curl -s -X POST -H 'Content-Type: application/json' -d '{"name":"Sunday service","layouts":["<layoutID>"],"operator":{"combined":true}}' 'http://192.168.1.42:8088/api/shows/save?token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…" }Saves the Studio's CURRENT session as a show, keeping only the picked layouts (in order) and the sources they use. No id = a NEW show; an existing id = overwrite that show (edit). rundown absent = one step per layout. intro/outro: an upload token from /api/shows/media, "keep" (edit), or null. operator keys: showRecord, showStream, combined, streamNDI, streamRTMP, openingLayoutID, outroSameAsIntro, stillSeconds, liveTitle, liveDescription, liveFacebook, liveFacebookTargetID, liveFacebookTargetName, liveYouTube, liveYouTubePrivacy (unknown keys ignored). 400 empty name / no layouts / unknown layout; 404 unknown id; 409 while a show is running.
/api/shows/<id>/loadBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | show id |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/shows/<id>/load?token=YOUR_TOKEN'Example response
{ "ok": true }Loads the show (replaces the current layouts and sources). 404 unknown; 409 while anything is on air or a show is running.
/api/shows/<id>/renameBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | show id |
| name | query | Yes | new name |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/shows/<id>/rename?token=YOUR_TOKEN'Example response
{ "ok": true }Renames a show.
/api/shows/<id>/deleteBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | show id |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/shows/<id>/delete?token=YOUR_TOKEN'Example response
{ "ok": true }Deletes a show and its media (DELETE /api/shows/<id> does the same). 409 if it is the running show.
/api/shows/mediaBearer token| Param | Where | Required | Description |
|---|---|---|---|
| role | query | Yes | intro | outro |
| name | query | Yes | file name |
| (body) | body (raw) | Yes | the video or picture |
Example request
curl -s -X POST --data-binary @intro.mp4 'http://192.168.1.42:8088/api/shows/media?role=intro&name=intro.mp4&token=YOUR_TOKEN'Example response
{ "ok": true, "token": "…", "kind": "video", "seconds": 12.4 }Uploads an intro/outro for /api/shows/save (pass the token). Unused uploads are deleted after 1 hour. Raw request body = the file (Content-Length required). Max 500 MB; refused when the device would keep under 2 GB free. Errors: 411 no length, 413 too big, 415 file type not supported, 422 (Android) file can't be opened, 507 not enough space.
Satellite
Controls a connected Satellite (a second phone sending camera/screen/test pattern) from the Studio side.
/api/satellite/talk/<on>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| on | path | Yes | "on" or "off". |
Example request
curl -s -X POST http://192.168.1.42:8088/api/satellite/talk/on?token=YOUR_TOKENExample response
{ "ok": true }/api/satellite/talk/target/<target>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| target | path | Yes | "auto", "all", or a source id. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/satellite/talk/target/auto?token=YOUR_TOKENExample response
{ "ok": true }/api/satellite/camera/<action>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| action | path | Yes | "flip", "torch", or "zoom". |
| value | query | No | Used by "zoom". |
| to | query | No | Target satellite, if more than one. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/satellite/camera/flip?token=YOUR_TOKEN'Example response
{ "ok": true }/api/satellite/messageBearer token| Param | Where | Required | Description |
|---|---|---|---|
| text | query/body | Yes | Message text. |
| to | query | No | Target satellite, if more than one. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/satellite/message?token=YOUR_TOKEN&text=Go+to+camera+2'Example response
{ "ok": true }Crew
The Crew card: every satellite (internet or same Wi-Fi) with its tally, unread count and last message, plus the message thread. Same routes and JSON on both platforms. Talkback, camera control and sending messages are under Satellite above.
/api/crewBearer tokenExample request
curl -s http://192.168.1.42:8088/api/crew?token=YOUR_TOKENExample response
{ "crew": [{ "id": "<sourceId>", "name": "Wedding Cam", "link": "internet", "linkLabel": "Internet", "guest": false, "camera": true, "feed": "camera", "tally": "cued", "tallyLabel": "CUED", "standby": 0, "unread": 1, "last": { "id": "…", "from": "Wedding Cam", "text": "Ready", "ts": 1760000000.5, "mine": false, "to": "" } }],
"messages": […], "unreadMessages": 1, "talkTarget": "auto", "talkTargetLabel": "Wedding Cam", "talkback": false,
"crewQuick": ["You’re next — 30s", "Stand by", "Frame up"] }One entry per satellite with its tally exactly as the app's Crew shows it — `tally` onAir | onProgram | cued | standby | preview (Android may also report waiting | offline), `tallyLabel` the badge text ("STANDBY · 12s"), `standby` the seconds left — plus its unread count and last message; the message thread (last 30, `mine` = sent by this Studio, `to` = the satellite it went to, empty = all), the total unread, the talk target and the card's quick messages (`crewQuick[0]` is the one that also runs the 30 s standby). Changes also arrive on /api/events.
/api/crew/readBearer token| Param | Where | Required | Description |
|---|---|---|---|
| peer | query/body | No | A satellite's source id (or its name) for its thread, or `all` (default) for every thread. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/crew/read?token=YOUR_TOKEN&peer=all'Example response
{ "ok": true }Mark a thread read — the same as opening it in the app's Crew. Sending a message also reads that thread.
/api/crew/standby/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Satellite source id from GET /api/crew. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/crew/standby/SAT_SOURCE_ID?token=YOUR_TOKENExample response
{ "ok": true }The Crew card's “You’re next — 30s”: sends that message to the satellite and runs its 30 s STANDBY countdown (its screen counts down; the tally shows STANDBY · n). Cancel it with the countdown banner's Cancel (`cancelCountdown` via /api/command).
Guests
The show room for guests joining by invite link: the link to share and removing a guest.
/api/guestsBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/guests?token=YOUR_TOKEN'Example response
{ "ok": true, "on": true, "inviteURL": "https://live-deck.app/g/123456", "code": "123456", "guests": [{ "id": "…", "name": "Amina" }] }The guest room: on/off, the invite link and code (null when none), and the connected guests.
/api/guests/inviteBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/guests/invite?token=YOUR_TOKEN'Example response
{ "ok": true, "on": true, "url": "https://live-deck.app/g/123456", "code": "123456" }The invite link guests open (url/code empty while the room is off or has no code yet).
/api/guests/<id>/kickBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | guest source id (from /api/state) |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/guests/<id>/kick?token=YOUR_TOKEN'Example response
{ "ok": true }Removes a connected guest from the show now. 404 unknown guest.
Satellite backups
Satellite backup recording: every satellite records its own camera from the moment it connects, and the Studio collects the files afterwards. These routes control the Studio side from the control API. (The satellite-to-Studio file transfer protocol itself is internal to the apps and is not part of this API.)
/api/backupsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/backups?token=YOUR_TOKENExample response
{ "satBackup": { "on": true, "quality": "high", "whileLive": false, "keepDays": 0, "autoDelete": true, "inet": "wait", "relay": false,
"line": "Recording on 2 phones", "folder": "LiveDeck 2026-10-18 10-30-02",
"items": [{ "id": "lan:192.168.1.20", "name": "Amira’s iPhone", "cam": "Camera 2", "link": "lan", "state": "recording", "tag": "● Backup",
"line": "00:24:10 · about 11 h of space", "recSec": 1450, "minutesLeft": 690, "bytes": 0, "total": 0, "progress": 0, "mbps": 0, "etaS": 0, "error": "", "retryS": 0, "file": "" }] } }The switch (ON by default), the settings, the Output row's line and one item per satellite recording, with its state, time recorded, space left, pull progress and files saved. Item states differ by platform — iOS: recording | offline | full | stopped | queued | pulling | checking | paused | failed | waitingWifi | noSpace | saved; Android: rec | full | queued | waitWifi | xfer | paused | checking | done | failed | space | liveHold | offline. Item ids also differ (iOS `lan:<ip>`, Android a recording id); always take them from this reply.
/api/backups/onBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/backups/on?token=YOUR_TOKENExample response
{ "ok": true }Turn “Back up satellites” on: every connected satellite starts (or continues) recording its own camera.
/api/backups/offBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/backups/off?token=YOUR_TOKENExample response
{ "ok": true }Turn “Back up satellites” off: every satellite stops its backup. Files already recorded are still collected.
/api/backups/settingsBearer token| Param | Where | Required | Description |
|---|---|---|---|
| quality | query/body | No | high | standard |
| whileLive | query/body | No | true | false |
| keepDays | query/body | No | 0 | 7 |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/backups/settings?token=YOUR_TOKEN&quality=high&keepDays=7'Example response
{ "ok": true }Change settings: `quality` high (1080p) | standard (720p), `whileLive` true | false (also pull closed parts while live), `keepDays` 0 (delete from the phone once checked) | 7 (keep a week). Give any or all.
/api/backups/setBearer token| Param | Where | Required | Description |
|---|---|---|---|
| quality | query/body | No | high | standard |
| whileLive | query/body | No | true | false |
| autoDelete | query/body | No | true | false |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/backups/set?token=YOUR_TOKEN&autoDelete=false'Example response
{ "ok": true }Alias of /api/backups/settings, same body on both platforms: `quality`, `whileLive`, and `autoDelete` true (delete from the phone once checked) | false (keep 7 days).
/api/backups/retry/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Item id from GET /api/backups. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/backups/retry/ITEM_ID?token=YOUR_TOKENExample response
{ "ok": true }Retry a paused or failed pull now (the item's Retry now).
/api/backups/relay/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Item id from GET /api/backups. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/backups/relay/ITEM_ID?token=YOUR_TOKENExample response
{ "ok": false, "error": "Send via relay is coming later: …" }Send via relay — not available yet. Both platforms answer 400: internet satellites send their backup the next time they are on the Studio's Wi-Fi.
Switching
Cue and take layouts — the core vision-mixing actions.
/api/layout/<id>/cueBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Layout id. |
Example request
curl -s http://192.168.1.42:8088/api/layout/lower-third/cue?token=YOUR_TOKENExample response
{ "ok": true }Cues green — does not go to air.
/api/layout/<id>/takeBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Layout id. |
Example request
curl -s http://192.168.1.42:8088/api/layout/lower-third/take?token=YOUR_TOKENExample response
{ "ok": true }Takes to air with the studio's current default transition.
/api/layout/<id>/take/<style>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Layout id. |
| style | path | Yes | Transition style, e.g. cut, dissolve. |
Example request
curl -s http://192.168.1.42:8088/api/layout/lower-third/take/cut?token=YOUR_TOKENExample response
{ "ok": true }/api/takeBearer token| Param | Where | Required | Description |
|---|---|---|---|
| style | query | No | Optional transition style override. |
Example request
curl -s http://192.168.1.42:8088/api/take?token=YOUR_TOKENExample response
{ "ok": true }Takes the currently cued layout.
/api/cutBearer tokenExample request
curl -s http://192.168.1.42:8088/api/cut?token=YOUR_TOKENExample response
{ "ok": true }Shortcut for take with a hard cut.
/api/transition/<style>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| style | path | Yes | New studio default transition style. |
Example request
curl -s http://192.168.1.42:8088/api/transition/dissolve?token=YOUR_TOKENExample response
{ "ok": true }Skins
Lower thirds, tickers, clocks and other overlays played over Program.
/api/skin/<id>/playBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Skin id. |
Example request
curl -s http://192.168.1.42:8088/api/skin/ticker1/play?token=YOUR_TOKENExample response
{ "ok": true }/api/skin/<id>/stopBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Skin id. |
Example request
curl -s http://192.168.1.42:8088/api/skin/ticker1/stop?token=YOUR_TOKENExample response
{ "ok": true }/api/skin/<id>/colorBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Skin id. |
| value | query | Yes | #RRGGBB, or "original" to reset. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/skin/ticker1/color?token=YOUR_TOKEN&value=%23FF3366'Example response
{ "ok": true }/api/catalogBearer tokenExample request
curl -s http://192.168.1.42:8088/api/catalog?token=YOUR_TOKENExample response
Merged bundled + remote skin catalogue index.Served directly, not routed through the generic command table.
/api/catalog/<id>/addBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Catalogue item id. |
| layoutId | query | No | Layout to add the skin to. |
Example request
curl -s 'http://192.168.1.42:8088/api/catalog/lower-third-01/add?token=YOUR_TOKEN&layoutId=main'Example response
{ "ok": true }/api/skin/uploadBearer token| Param | Where | Required | Description |
|---|---|---|---|
| kind | query | Yes | logo | gif | video |
| name | query | No | display name |
| layout | query | No | layout id (default: Program) |
| (body) | body (raw) | Yes | the file |
Example request
curl -s -X POST --data-binary @logo.png 'http://192.168.1.42:8088/api/skin/upload?kind=logo&token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…" }Adds a logo, animated-image or video skin from the uploaded file, with the app's defaults. Raw request body = the file (Content-Length required). Max 500 MB; refused when the device would keep under 2 GB free. Errors: 411 no length, 413 too big, 415 file type not supported, 422 (Android) file can't be opened, 507 not enough space.
Text cards & rich text
Read and set the rich text of a text-card source or a skin (lines of styled runs, a background plate, a reveal animation). Same routes and JSON on both platforms. Ids come from GET /api/sources (text sources carry kind "text" and rich) and GET /api/skins. A text card's id is a stable uppercase UUID (e.g. 3F2A9C1E-…) that never changes when its title changes, on both platforms — store it once and keep addressing the card by it.
/api/sources/<id>/richBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Text source id from GET /api/sources — a stable uppercase UUID that survives title edits. |
Example request
curl -s http://192.168.1.42:8088/api/sources/TEXT_SOURCE_ID/rich?token=YOUR_TOKENExample response
{ "ok": true, "id": "…", "rich": { "v": 1, "lines": [{ "align": "center", "runs": [{ "t": "Welcome", "font": "Archivo", "size": 92, "weight": 800, "color": "#FFFFFF" }] }], "bg": { "kind": "frost", "shape": "box", "opacity": 0.42 }, "place": "bot", "reveal": { "mode": "fade", "speed": 1.0 } } | null, "reveal": { … } }A text source's rich-text JSON (`rich`, null = a plain title + subtitle card) and its `reveal` progress (mode, units, units shown, running — the reveal replays whenever the card is cut to Program).
/api/sources/<id>/richBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Text source id from GET /api/sources — a stable uppercase UUID that survives title edits. |
| rich | body (JSON) | Yes | The rich object above, or null for a plain card. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/sources/TEXT_SOURCE_ID/rich?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"rich":{ "v": 1, "lines": [{ "align": "center", "runs": [{ "t": "Welcome", "font": "Archivo", "size": 92, "weight": 800, "color": "#FFFFFF" }] }], "bg": { "kind": "frost", "shape": "box", "opacity": 0.42 }, "place": "bot", "reveal": { "mode": "fade", "speed": 1.0 } }}'Example response
{ "ok": true, "action": "updateText" }Set a text source's rich text. JSON body {"rich":{…}} (or the bare rich object): {"v":1,"lines":[{"align":"start|center|end","dir":"ltr|rtl","list":"","lineHeight":1.15,"runs":[{"t":"Hello","font":"Archivo","size":92,"weight":800,"italic":false,"underline":false,"case":"none|upper","color":"#FFFFFF","mark":"#E2382C|null","spacing":0,"shadow":true,"outline":false}]}],"bg":{"kind":"none|frost|solid|gradient|image","shape":"box|strip|full","color":"#0E1424","color2":"#8A1220","opacity":0.42,"frost":0.5,"radius":14,"edge":true},"place":"top|mid|bot","reveal":{"mode":"none|fade|line|word|letter|typewriter","speed":1.0}}. Sizes are pt at 1080p. title/subtitle follow the first two lines. {"rich":null} turns it back into a plain card (optional title / subtitle). The same change is available as /api/command actions addText {title, subtitle, rich} and updateText {id, title, subtitle, rich}.
/api/skin/<id>/richBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Skin id from GET /api/skins. |
Example request
curl -s http://192.168.1.42:8088/api/skin/SKIN_ID/rich?token=YOUR_TOKENExample response
{ "ok": true, "id": "…", "rich": { … } | null }A skin's rich-text JSON (null = the skin's own look). A rich Message, Ticker or Lower-third skin draws in its own place: inside the skin's rectangle (anchor + size), a ticker as one scrolling line, a lower third inside its artwork's text zone. Any other kind of rich skin is a whole-frame card; clocks and countdowns ignore it.
/api/skin/<id>/richBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Skin id from GET /api/skins. |
| rich | body (JSON) | Yes | The rich object, or null to restore the skin's own look. |
| layout | body (JSON) | No | Layout id, for a skin that lives inside a layout. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/skin/SKIN_ID/rich?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"rich":{ "v": 1, "lines": [{ "align": "center", "runs": [{ "t": "Welcome", "font": "Archivo", "size": 92, "weight": 800, "color": "#FFFFFF" }] }], "bg": { "kind": "frost", "shape": "box", "opacity": 0.42 }, "place": "bot", "reveal": { "mode": "fade", "speed": 1.0 } }}'Example response
{ "ok": true, "action": "updateSkin" }Set a skin's rich text (same JSON as /api/sources/<id>/rich; add "layout" for a skin inside a layout). The skin's anchor and size place it (`place` is ignored); a ticker keeps one line and no bullets; a lower third's lines 1/2/3 fill its text zone. {"rich":null} restores the skin's own look. Same as /api/command updateSkin with `rich`.
Whiteboard & drawing
Whiteboard layouts (multi-page boards of strokes and text on a white, grid, chalk or picture background) and Drawing skins. Coordinates are 0..1, pages are 0-based. Layout and skin ids are not stable across a Resume (new UUIDs) — read them from GET /api/state or GET /api/whiteboard first. Unknown id → 404 {"ok":false,"error":"no such whiteboard: <id>"}. Same routes and JSON on both platforms.
/api/whiteboardBearer tokenExample request
curl -s http://192.168.1.42:8088/api/whiteboard?token=YOUR_TOKENExample response
{ "ok": true, "boards": [{ "type": "layout|skin", "id": "…", "name": "…", "boardKind": "white", "page": 0, "pages": 1, "locked": true, "clearOnCut": false, "rev": 3, "onAir": false }], "stats": { … } }Every whiteboard layout and drawing skin (no strokes) plus the stroke-to-Program delay counters.
/api/whiteboardBearer token| Param | Where | Required | Description |
|---|---|---|---|
| kind | body (JSON) | Yes | white | grid | chalk | drawing |
| name | body (JSON) | No | Layout name (default "Whiteboard", made unique). |
| play | body (JSON) | No | kind=drawing only: true shows the new Drawing skin at once. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/whiteboard?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"kind":"white","name":"Tactics"}'Example response
{ "ok": true, "id": "<layout id>", "boards": [ … ], "stats": { … } }Add a Whiteboard layout (cued, like + → Layouts → Whiteboard) so a TV box or a browser can make one. The web remote's Skins page does the same and also draws on any board or Drawing skin (it posts the whole board to POST /api/whiteboard/<id> or /api/skin/<id>/drawing as you draw). Without kind, {"resetStats":true} zeroes the delay counters. An unknown kind answers 400. kind = drawing adds a Drawing skin (a clear sheet over Program) instead; add play=true to show it at once. (2026-10-22)
/api/whiteboard/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
Example request
curl -s http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID?token=YOUR_TOKENExample response
{ "ok": true, "id": "…", "board": { … }, "page": 0, "pages": 1, "locked": true, "clearOnCut": false, "onAir": false, "rev": 3 }A whiteboard layout (id = layout id): the board {kind, bg, pages:[{strokes, texts}], page}, its lock and the page count.
/api/whiteboard/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
| locked | body (JSON) | No | true | false |
| kind | body (JSON) | No | white | grid | chalk | picture |
| page | body (JSON) | No | 0-based page to show. |
| clear | body (JSON) | No | true wipes the current page. |
| board | body (JSON) | No | Replace the whole board JSON. |
| clearOnCut | body (JSON) | No | true | false |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"locked":true,"kind":"grid"}'Example response
{ "ok": true, …same as GET… }Change a whiteboard. Every body key is optional. A bad `kind` or an out-of-range `page` answers 400. The reply is the same as GET.
/api/whiteboard/<id>/clearBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID/clear?token=YOUR_TOKENExample response
{ "ok": true, …same as GET… }Wipe the current page (works while locked).
/api/whiteboard/<id>/page/<n>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
| n | path | Yes | 0-based page number, or `new`. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID/page/0?token=YOUR_TOKENExample response
{ "ok": true, …same as GET… }Go to page n (0-based), or n = new to add a page after the current one. An out-of-range page answers 400 (`page must be 0..N or "new"`).
/api/skin/<id>/drawingBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Drawing skin id. |
Example request
curl -s http://192.168.1.42:8088/api/skin/SKIN_ID/drawing?token=YOUR_TOKENExample response
{ "ok": true, "id": "…", "board": { … }, "locked": true, "clearOnCut": false }A Drawing skin's sheet (id = skin id): the same shape as a whiteboard with one page and no kind.
/api/skin/<id>/drawingBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Drawing skin id. |
| locked | body (JSON) | No | true | false |
| clearOnCut | body (JSON) | No | true | false |
| clear | body (JSON) | No | true wipes the sheet. |
| board | body (JSON) | No | Replace the whole sheet JSON. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/skin/SKIN_ID/drawing?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"clear":true}'Example response
{ "ok": true, …same as GET… }Change a Drawing skin. Every body key is optional.
/api/whiteboard/<id>/strokeBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
| points | body (JSON) | Yes | [[x,y],…] in 0..1 of the frame, top-left origin (a third number = ms since the stroke started, optional). |
| tool | body (JSON) | No | pen (default) | highlighter | line | arrow | box | circle (line/arrow/box/circle use the first and last point). |
| color | body (JSON) | No | #RRGGBB. Default: the board's pen colour (black on white/grid, white on chalk, yellow on a Drawing skin). |
| size | body (JSON) | No | S | M (default) | L, or a fraction of the short edge (0..0.2). |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID/stroke?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"points":[[0.1,0.2],[0.5,0.8],[0.9,0.2]],"color":"#E5484D","size":"L"}'Example response
{ "ok": true, …same as GET… }Draw one stroke from a control surface. It is drawn even while the board is locked (the lock guards touches; the API is deliberate). Bad points, tool, colour or size answer 400.
/api/whiteboard/<id>/undoBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID/undo?token=YOUR_TOKEN'Example response
{ "ok": true, "done": true, …same as GET… }Undo the last stroke, text or clear on the current page. done = false when there was nothing to undo.
/api/whiteboard/<id>/redoBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID/redo?token=YOUR_TOKEN'Example response
{ "ok": true, "done": true, …same as GET… }Redo what undo took back.
/api/whiteboard/<id>/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Whiteboard layout id or Drawing skin id. |
| mode | path | Yes | show | hide |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/whiteboard/LAYOUT_ID/show?token=YOUR_TOKEN'Example response
{ "ok": true, …same as GET… }A Drawing skin plays (show) or stops (hide). A Whiteboard layout is taken to Program (show); hide takes the layout that was on before it (409 when there is no other layout).
/backdrop.jpgNo token (local network only)| Param | Where | Required | Description |
|---|---|---|---|
| skin | query | Yes | A Drawing skin id (state skins[] / whiteboard.boards[] with type skin). |
| k | query | No | The web remote PIN, when one is set (same rule as /program.jpg). |
Example request
curl -s 'http://192.168.1.42:8088/backdrop.jpg?skin=<skinId>&k=<PIN>' -o backdrop.jpgExample response
image/jpeg (960 px wide, quality 0.5)Web remote route (not /api): Program WITHOUT that drawing skin, so a browser can draw over the live camera with its own strokes on top. Other showing skins stay. Poll it about every 160 ms while drawing; the Studio renders it only while it is asked for (2 s). Unknown id or no frame yet = the Program frame.
Scoreboard
A live game (teams, score, clock, period, rules) that drives the score-bug skins and the full-screen Scoreboard layout. One game, shared by the app, the scorekeeper web page and these routes. Every reply is {"ok":true,"game":{…},"serverNow":ms,"undoLabel":"…","bugOn":bool,"boardOn":bool} (plus me/canBug); errors are {"ok":false,"error":"…"} with 400/401/403/404/405. The clock is never streamed: value = run ? ms ∓ (serverNow − at) : ms — compute it locally from the game. The same operations are available on /cmd as {"action":"score","op":…}, and the game is in /api/state as `score` (bugs `scoreSkins`, boards `scoreBoards`) and in /api/events as `sc`. Free tier: all scoreboard features are free; only outputs are limited (watermark + 5 min). Same routes and JSON on both platforms.
/api/scoreBearer tokenExample request
curl -s http://192.168.1.42:8088/api/score?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }The game: teams, scores, clock, period, rules, bugOpts, plus serverNow and the undo label. The `sport` key is the preset (basketball, soccer, AFL, netball, volleyball, generic). Authentication: the API token (like every /api route), or the web-remote PIN as `?k=`, or a scorekeeper session cookie from POST /score/login (a scorer may change only the game, and the bug if the app lets scorers show it; other routes answer 403 "the scorer cannot do that"). bugOn = a bug is VISIBLE on Program; bugSuppressed = a bug of this family is on Program (or fixed) but hidden because its own board layout is live (a Scoreboard board hides Scoreboard bugs, a Fundraiser layout hides Fundraiser bugs; never across families). A button bug is switched off when the board lands; tapping/showing it while the board is live overrides until the layout changes. The game carries home/away players [{n,name}] and scorer {team,n,name,t} (rosters, 2026-10-22).
/api/scoreBearer token| Param | Where | Required | Description |
|---|---|---|---|
| title | body (JSON) | No | Game title. |
| sport | body (JSON) | No | Starts a new game of that sport. |
| home / away | body (JSON) | No | {name, short, color, color2} |
| rules | body (JSON) | No | Sport rules override. |
| bugOpts | body (JSON) | No | {fouls, timeouts, shot} |
| clock | body (JSON) | No | {dir, lenMs} |
| new | body (JSON) | No | true = new game, same teams. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"title":"U16 Div 1","home":{"name":"Ashfield Owls","short":"OWL","color":"#F2A93B"}}'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Change the setup. Body keys (all optional): title; sport (starts a new game); home / away {name, short, color, color2}; rules; bugOpts {fouls, timeouts, shot}; clock {dir, lenMs}. {"new":true} starts a new game with the same teams.
/api/score/<team>/addBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | path | Yes | home | away |
| v | query/body | No | Points, e.g. 3 (default: the sport's first button). |
| kind | query/body | No | AFL only: g | b |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/home/add?token=YOUR_TOKEN&v=3'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Add to a team's score (negative allowed). v defaults to the sport's first button. AFL: kind=g (goal, 6) or b (behind, 1).
/api/score/<team>/setBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | path | Yes | home | away |
| value | query/body | Yes | The new score. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/home/set?token=YOUR_TOKEN&value=40'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Set a team's score directly.
/api/score/<team>/foulsBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | path | Yes | home | away |
| v | query/body | Yes | +1 or -1 |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/home/fouls?token=YOUR_TOKEN&v=1'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Fouls up or down.
/api/score/<team>/timeoutsBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | path | Yes | home | away |
| v | query/body | Yes | +1 or -1 |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/away/timeouts?token=YOUR_TOKEN&v=-1'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Timeouts left, up or down.
/api/score/clock/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | start | stop | toggle | reset | set | adjust |
| t | query/body | No | set: m:ss |
| ms | query/body | No | set: milliseconds |
| s | query/body | No | adjust: seconds, e.g. -1 |
Example request
curl -s -X POST http://192.168.1.42:8088/api/score/clock/toggle?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Game clock. mode = start | stop | toggle | set (t=10:00 or ms=) | adjust (s=-1). A down clock stops itself at 0. mode = reset stops the clock and puts it back to the start of a period (count-down = the period length, count-up = 0:00). (2026-10-22)
/api/score/shot/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | reset | start | stop |
| s | query/body | No | reset: seconds |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/shot/reset?token=YOUR_TOKEN&s=24'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Shot clock (basketball). mode = reset (s=24 or 14) | start | stop.
/api/score/period/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | next | prev | end | set |
| n | query/body | No | set: period number |
Example request
curl -s -X POST http://192.168.1.42:8088/api/score/period/next?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Period. mode = next | prev | end (start the break) | set (n=3).
/api/score/finalBearer token| Param | Where | Required | Description |
|---|---|---|---|
| value | query/body | No | true (default) | false |
Example request
curl -s -X POST http://192.168.1.42:8088/api/score/final?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }End the game (FINAL / Full time). value=false reopens it.
/api/score/undoBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/score/undo?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Undo the last change (20 deep, shared by the app, the scorer page and the API).
/api/score/swapBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/score/swap?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Swap sides (home ↔ away).
/api/score/set/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | confirm | dismiss |
Example request
curl -s -X POST http://192.168.1.42:8088/api/score/set/confirm?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Volleyball "Set to X?" prompt. mode = confirm | dismiss.
/api/score/bug/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | show | hide | toggle |
Example request
curl -s -X POST http://192.168.1.42:8088/api/score/bug/toggle?token=YOUR_TOKENExample response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Play or stop every score bug on Program. mode = show | hide | toggle (show makes one when there is none). `bugOn` in the reply says the result.
/api/score/board/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | cue | take |
| shows | query/body | No | auto | live | half | final |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/board/take?token=YOUR_TOKEN&shows=auto'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Cue or take the full-screen Scoreboard layout (made when missing). mode = cue | take; `shows` picks what it displays.
/api/score/teamsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/score/teams?token=YOUR_TOKENExample response
{ "ok": true, "teams": [{ "id": "…", "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "color2": "#1A1300", "logo": "", "sport": "basketball", "updated": 1760769600 }] }Saved teams: [{id, name, short, color, color2, logo, sport, updated}].
/api/score/teamsBearer token| Param | Where | Required | Description |
|---|---|---|---|
| name | body (JSON) | Yes | Team name. |
| short | body (JSON) | No | 3-letter code. |
| color | body (JSON) | No | #RRGGBB |
| color2 | body (JSON) | No | #RRGGBB text colour. |
| id | body (JSON) | No | Existing id to replace. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/teams?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"name":"Ashfield Owls","short":"OWL","color":"#F2A93B"}'Example response
{ "ok": true, "team": { … }, "teams": [ … ] }Save one team (body = the team; the same id replaces it). Give at least a name.
/api/score/teams/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Team id. |
Example request
curl -s -X DELETE http://192.168.1.42:8088/api/score/teams/TEAM_ID?token=YOUR_TOKENExample response
{ "ok": true, "deleted": "TEAM_ID", "teams": [ … ] }Delete a saved team.
/api/score/teams/<id>/useBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Team id. |
| team | query/body | No | home (default) | away |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/teams/TEAM_ID/use?token=YOUR_TOKEN&team=away'Example response
{ "ok": true, "game": { "v": 1, "rev": 118, "sport": "basketball", "title": "U16 Div 1",
"home": { "name": "Ashfield Owls", "short": "OWL", "color": "#F2A93B", "score": 38, "fouls": 3, "timeouts": 4 },
"away": { "name": "Bondi Blaze", "short": "BLZ", "color": "#2B6CB0", "score": 35, "fouls": 2, "timeouts": 5 },
"period": 2, "brk": false, "final": false,
"clock": { "dir": "down", "lenMs": 600000, "ms": 462000, "run": true, "at": 1760769600123 } },
"serverNow": 1760769600123, "undoLabel": "+3 Owls", "bugOn": true, "bugSuppressed": false, "boardOn": false, "me": "", "canBug": true }Put a saved team on one side of the current game.
/api/score/logoBearer token| Param | Where | Required | Description |
|---|---|---|---|
| data | body (JSON) | No | Base64 (or a data: URI) of any image; scaled to 512 px max and stored as a PNG. Give this OR flag. |
| flag | body (JSON) | No | A country code from GET /api/score/flags (AU, GB-ENG, EU ...; case-insensitive). Stored as flag-<code>.png. |
| team | body (JSON) | No | home or away: also set that team's logo to the new file. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/logo?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"flag":"AU","team":"home"}'Example response
{ "ok": true, "logo": "flag-au.png", "flag": "AU", "game": { … } }Set a team logo without a picker (TV box or browser): either a country flag (flag) or your own picture (data). With team the team is updated in the same call; without it, set it with POST /api/score {"home":{"logo":"flag-au.png"}} or save it in a team preset (POST /api/score/teams). On the device itself use Keep score > Game setup > Logo (Flag, Photos, Files). A scorer cookie cannot do this (403). Not an image: 400; unknown flag: 400 "unknown flag: XX".
/api/score/flagsBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/score/flags?token=YOUR_TOKEN'Example response
{ "ok": true, "flags": [ { "code": "AU", "name": "Australia", "alt": "" }, … ], "game": { … } }Every country flag a team logo can use (255: ISO 3166-1 plus England, Scotland, Wales, Northern Ireland, EU, Kosovo), sorted by name. Pick one with POST /api/score/logo {"flag":"AU"}.
/api/score/flags/<CODE>.pngBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/score/flags/AU.png?token=YOUR_TOKEN'Example response
(image/png, 160x120)The flag picture (PNG). Unknown code: 404.
/api/score/logos/<file>Bearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/score/logos/flag-au.png?token=YOUR_TOKEN'Example response
(image/png)A stored team logo by file name (the team's logo field, e.g. flag-au.png or logo-1a2b3c4d.png). Missing: 404.
/api/score/stylesBearer tokenExample request
curl -s http://192.168.1.42:8088/api/score/styles?token=YOUR_TOKENExample response
{ "ok": true, "bugs": [{ "id": "stack", … }], "boards": [{ "id": "card", … }] }The score-bug styles and board styles of the skins gallery: id, name, blurb, sports, shows, tier, def {anchor, radius, bg, font, anim, title}.
/api/score/bugBearer tokenExample request
curl -s http://192.168.1.42:8088/api/score/bug?token=YOUR_TOKENExample response
{ "ok": true, "skins": [ … ], "boards": [ … ] }Every score bug (style, drawn, look, layoutId, phase …) and every board — the same lists /api/state carries as `scoreSkins` / `scoreBoards`. Each entry also has trigger (always | onTake | manual), holdSeconds and suppressed (true = hidden by the live board).
/api/score/bug/addBearer token| Param | Where | Required | Description |
|---|---|---|---|
| style | body (JSON) | Yes | stack | strip | split | pill | soccer | afl |
| look | body (JSON) | No | Merged over the style's defaults. |
| dest | body (JSON) | No | program | <layoutId> |
| trigger | body (JSON) | No | manual | always |
| play | body (JSON) | No | true (default) | false |
| holdSeconds | body (JSON) | No | 0..60. With trigger manual = button with a timer; with onTake = timed (comes in, stays N s); 0 = until stopped. Same play modes as every other skin: always = fixed. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/bug/add?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"style":"split","dest":"program"}'Example response
{ "ok": true, "skin": { "id": "…", "name": "Team split", "style": "split", "drawn": "split", "look": { … }, "layoutId": "", "phase": "held" } }Add a score bug. One bug plays at a time. style = stack | strip | split | pill | soccer | afl; look is merged over the style's defaults; dest = program (default) or a layout id; trigger = manual | always; play defaults to true.
/api/score/bug/<skinId>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| skinId | path | Yes | Bug skin id from /api/score/bug or scoreSkins in /api/state. |
| style | body (JSON) | No | stack | strip | split | pill | soccer | afl |
| look | body (JSON) | No | Merged over the current look. |
| anchor | body (JSON) | No | Screen anchor. |
| scale | body (JSON) | No | Size factor. |
| opacity | body (JSON) | No | 0..1 |
| trigger | body (JSON) | No | manual | always |
| hideOnBoard | body (JSON) | No | true | false |
| holdSeconds | body (JSON) | No | 0..60. With trigger manual = button with a timer; with onTake = timed (comes in, stays N s); 0 = until stopped. Same play modes as every other skin: always = fixed. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/bug/SKIN_ID?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"scale":1.2,"opacity":0.9}'Example response
{ "ok": true, "skin": { … } }Change one bug. Body keys (all optional): style, look (merged), anchor, scale, opacity, trigger, hideOnBoard.
/api/score/bug/<skinId>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| skinId | path | Yes | Bug skin id. |
Example request
curl -s -X DELETE http://192.168.1.42:8088/api/score/bug/SKIN_ID?token=YOUR_TOKENExample response
{ "ok": true, "game": { … }, "deleted": "<id>" }Remove one bug (the game stays).
/api/score/bug/<skinId>/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| skinId | path | Yes | Bug skin id. |
| mode | path | Yes | show | hide | toggle |
Example request
curl -s -X POST http://192.168.1.42:8088/api/score/bug/SKIN_ID/show?token=YOUR_TOKENExample response
{ "ok": true, "game": { … }, "bugOn": true, "bugSuppressed": false }Show, hide or toggle ONE bug (mode = show | hide | toggle). Showing one stops any other.
/api/score/board/styleBearer token| Param | Where | Required | Description |
|---|---|---|---|
| style | body (JSON) | Yes | card | table | halves |
| shows | body (JSON) | No | auto | live | half | final |
| look | body (JSON) | No | Merged over the style defaults. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/board/style?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"style":"table"}'Example response
{ "ok": true, "game": { … }, "board": { "id": "…", "name": "Scoreboard", "style": "table", "shows": "auto", "look": { … } } }Style the Scoreboard layout (made when missing): style = card | table | halves, plus shows and look.
/score.jsonNo token (local network only)Example request
curl -s http://192.168.1.42:8088/score.json?k={remotePin}Example response
{ "ok": true, "me": "Sam", "canBug": true, "game": { … }, "serverNow": 1760769600123 }The scorekeeper page's own read: who the session is (`me`, `canBug`) and the whole game. Works with the scorer cookie or the remote PIN (?k=) — it is not under /api and does not take the API token's role.
/score/loginNo token (local network only)| Param | Where | Required | Description |
|---|---|---|---|
| pin | body (JSON) | Yes | The scorer PIN. |
| name | body (JSON) | No | Shown in the app as "Sam · phone · +2 Owls". |
Example request
curl -s -c cookies.txt -X POST http://192.168.1.42:8088/score/login \
-H 'Content-Type: application/json' \
-d '{"pin":"4821","name":"Sam"}'Example response
{ "ok": true, "name": "Sam", "me": "Sam", "canBug": true, "game": { … } }Scorekeeper sign-in: the scorer PIN (4–8 digits, set in the app's Keep score sheet; not the web-remote PIN) and a name. Answers with a 12-hour `ld_score` session cookie. 401 wrong PIN, 429 after too many tries.
/score/logoutNo token (local network only)Example request
curl -s -X POST http://192.168.1.42:8088/score/logoutExample response
{ "ok": true }End the scorekeeper session (clears the cookie).
/scoreNo token (local network only)Example request
curl -s http://192.168.1.42:8088/scoreExample response
text/htmlThe scorekeeper web page itself (HTML, installable, works with no internet): open http://{ip}:{port}/score on a second person's phone and sign in with the scorer PIN. Needs no token to load; every action it takes goes through the routes above.
/api/score/view/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | bug | board | off |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/view/board?token=YOUR_TOKEN'Example response
{ "ok": true, "game": {…}, "bugOn": false, "boardOn": true, … }One switch for a control surface: bug = the score bug over the show (takes the previous layout back first when the board is on Program), board = take the full-screen Scoreboard layout (made when missing), off = neither. The scorer page cannot use it unless bug control is allowed.
/api/desksBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/desks?token=YOUR_TOKEN'Example response
{ "desks": { "score": { "path": "/score", "url": "http://192.168.1.20:8088/score", "pin": "4821" }, "fund": { "path": "/fund", "url": "…/fund", "pin": "0593" } } }The two helper pages a second person opens on a phone: the scorekeeper page (/score) and the treasurer page (/fund), with their 4-digit PINs (made on first use). Also in the web state as `desks`.
/api/desks/<desk>/pinBearer token| Param | Where | Required | Description |
|---|---|---|---|
| desk | path | Yes | score | fund |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/desks/score/pin?token=YOUR_TOKEN'Example response
{ "ok": true, "action": "deskPin" }Make a new PIN for that page. People already signed in stay in; the next sign-in needs the new PIN.
/api/score/playersBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | body (JSON) | Yes | home or away. |
| players | body (JSON) | Yes | The whole list, in order: [{"n":"10","name":"Silva"}, …]. n = shirt number as a string, 1-3 letters or digits, unique; name up to 30 characters (may be empty). Blank rows and bad numbers are dropped, the first of a duplicate number wins, at most 60. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/players?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"team":"home","players":[{"n":"10","name":"Silva"},{"n":"9","name":"Costa"}]}'Example response
{ "ok": true, "game": { …, "home": { …, "players": [ {"n":"10","name":"Silva"} ] }, "scorer": {"team":"home","n":"10","name":"Silva","t":1761100000000} }, "serverNow": …, "undoLabel": "…", "bugOn": true, "boardOn": false, "bugSuppressed": false }Replace a team's player roster (op rosterSet, undoable: undo label "Players · <team>"). The roster is part of the team: it is saved in game.json, carried by shows and saved teams, and swaps with the team. Errors 400: "team must be home or away", "players must be a list". The scorekeeper cookie may do this.
/api/score/players/addBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | body (JSON) | Yes | home or away. |
| n | body (JSON) | Yes | Shirt number, 1-3 letters or digits. |
| name | body (JSON) | No | Up to 30 characters. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/players/add?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"team":"home","n":"10","name":"Silva"}'Example response
{ "ok": true, "game": { …, "home": { …, "players": [ {"n":"10","name":"Silva"} ] }, "scorer": {"team":"home","n":"10","name":"Silva","t":1761100000000} }, "serverNow": …, "undoLabel": "…", "bugOn": true, "boardOn": false, "bugSuppressed": false }Add one player (op playerAdd, undoable: "Add #10 Silva"). An existing number gets the new name in place. Errors 400: "n must be 1-3 letters or digits", "a team has at most 60 players".
/api/score/players/removeBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | body (JSON) | Yes | home or away. |
| n | body (JSON) | Yes | Shirt number to remove. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/players/remove?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"team":"home","n":"10"}'Example response
{ "ok": true, "game": { …, "home": { …, "players": [ {"n":"10","name":"Silva"} ] }, "scorer": {"team":"home","n":"10","name":"Silva","t":1761100000000} }, "serverNow": …, "undoLabel": "…", "bugOn": true, "boardOn": false, "bugSuppressed": false }Remove one player (op playerRemove, undoable: "Remove #10 Silva"). Error 400: "no player #<n> in <team name>".
/api/score/scorerBearer token| Param | Where | Required | Description |
|---|---|---|---|
| team | body (JSON) | No | home or away (needed to set a scorer). |
| n | body (JSON) | No | Shirt number of who scored; empty or missing = clear the scorer. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/score/scorer?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"team":"home","n":"10"}'Example response
{ "ok": true, "game": { …, "home": { …, "players": [ {"n":"10","name":"Silva"} ] }, "scorer": {"team":"home","n":"10","name":"Silva","t":1761100000000} }, "serverNow": …, "undoLabel": "…", "bugOn": true, "boardOn": false, "bugSuppressed": false }Who scored (op scorer, undoable). Sets game.scorer = {team, n, name, t}; every score bug then shows a "#10 Silva" line in the team colour for 6 seconds. The app, the web remote and the /score page offer "Who scored?" chips for 20 s after a score for a team that has players. Undo after "+2 then scorer" takes the scorer back first. Error 400: "no player #<n> in <team name>". The scorekeeper cookie may do this.
Fundraiser
One fundraising campaign per Studio (goal, minimum, stretch goal, raised, donors) that drives the on-air fundraiser bug (thermometer, dial, strip, tote board) and the full-screen Fundraiser layout, with a celebration banner when a goal is reached. Manual entry only, no payments. IMPORTANT: money in a REQUEST is in MAJOR units (50 = $50; decimals allowed when dec is 2); money in every RESPONSE and in the state is integer MINOR units (with dec 2, 5000 = $50.00; with dec 0, 1 unit = 1 minor unit). Every reply is {"ok":true,"fund":{…},"serverNow":ms,"undoLabel":"…","undoDepth":n,"bugOn":bool,"layoutOn":bool} (plus `cel` for 5 s after a celebration, `added` after /add); errors are {"ok":false,"error":"…"} with 400/401/403/404/405/429. The campaign is in /api/state as `fund` (skins `fundSkins`, layouts `fundLayouts`) and in /api/events as `fund`. The same operations are on /cmd as {"action":"fund","op":…}. Nothing is Pro-gated; only outputs are limited (watermark + 5 min). Same routes and JSON on both platforms.
/api/fundBearer tokenExample request
curl -s http://192.168.1.42:8088/api/fund?token=YOUR_TOKENExample response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false, "skins": [ { "id": "A1B2C3", "name": "Fundraiser", "layoutId": "", "phase": "off" } ], "layouts": [ { "id": "D4E5F6", "name": "Fundraiser", "live": false, "cued": false } ] }The Fundraiser campaign (one per Studio) plus the controller extras. Money in the REQUEST is in MAJOR units (50 = $50, 12.5 allowed when dec is 2); money in every RESPONSE is integer MINOR units (with dec 2, 5000 = $50.00). `undoLabel` is "" when there is nothing to undo; `cel` appears only for 5 s after a celebration fires. `skins` lists the fundraiser bug skins, `layouts` the Fundraiser layouts. Authentication: the API token, or the web-remote PIN as `?k=`, or a treasurer session cookie from POST /fund/login (a treasurer may only call GET /api/fund, POST /api/fund/add and POST /api/fund/undo; anything else answers 403 "the treasurer cannot do that"). bugOn = a bug is VISIBLE on Program; bugSuppressed = a bug of this family is on Program (or fixed) but hidden because its own board layout is live (a Scoreboard board hides Scoreboard bugs, a Fundraiser layout hides Fundraiser bugs; never across families). A button bug is switched off when the board lands; tapping/showing it while the board is live overrides until the layout changes.
/api/fundBearer token| Param | Where | Required | Description |
|---|---|---|---|
| title / desc | body (JSON) | No | Campaign title and description text. |
| cur / dec | body (JSON) | No | ISO currency code; decimals 0 or 2 (dec only while raised is 0). |
| min / target / stretch | body (JSON) | No | Goals in MAJOR units (0 = unset). Milestones listed only when 0 < min < target, target > 0, stretch > target. |
| show | body (JSON) | No | {as: gauge|numbers|both, on, ticker, celebrate} |
| look | body (JSON) | No | {style: thermo|dial|strip|tote, theme, pos: tl|tr|bl|br, ink} |
| layout | body (JSON) | No | {style, theme, ink} for the full-screen layout. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"title":"Masjid roof appeal","cur":"AUD","dec":2,"min":20000,"target":50000,"stretch":65000,"look":{"style":"strip","theme":"frost","pos":"bl"}}'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false }Change the setup. Send any subset; unknown keys are ignored. Money fields are MAJOR units here (`min`, `target`, `stretch`); the reply returns MINOR units. `cur` (ISO code), `dec` (0 or 2; only accepted while raised is 0 and rescales nothing). `show` {as: gauge|numbers|both, on, ticker, celebrate}; `look` {style, theme, pos tl|tr|bl|br, ink #RRGGBB|null} styles the on-screen bug; `layout` {style, theme, ink} styles the full-screen layout. `show.on` behaves like POST /api/fund/show. A milestone's `hit` flag resets only when its threshold is edited to a value above `raised`. Errors: 400 `unknown style: <id>`, `unknown theme: <id>`, `bad colour: <v>`.
/api/fund/addBearer token| Param | Where | Required | Description |
|---|---|---|---|
| amount | body (JSON) | Yes | Major units, > 0, e.g. 50 or 12.5 (max 100,000,000.00). |
| name | body (JSON) | No | Donor name, <= 40 chars; default Anonymous. |
| donor | body (JSON) | No | false = money only, does not count as a donor. Default true. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/add?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"amount":50,"name":"Sam"}'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false, "added": { "a": 5000, "n": "Sam" } }Record a donation: raised += amount, donors += 1 (unless donor is false), pushes the donor onto the ticker and the log. Request `amount` is in MAJOR units (50 = $50 / with dec 2 also 12.5); the reply's `added.a` is MINOR units. A name is optional and is on air only when typed; empty becomes "Anonymous" (max 40 chars, trimmed). Crossing an un-hit milestone fires ONE celebration (the highest crossed) when show.celebrate is on. Errors: 400 `amount must be more than 0`. Allowed for a treasurer session.
/api/fund/removeBearer token| Param | Where | Required | Description |
|---|---|---|---|
| amount | body (JSON) | Yes | Major units, > 0, e.g. 20 or 12.5 (max 100,000,000.00). Never takes the total below 0. |
| name | body (JSON) | No | Optional note for the log, <= 40 chars, e.g. "Duplicate entry". Default empty. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/remove?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"amount":20,"name":"Duplicate entry"}'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false, "added": { "a": 5000, "n": "Sam" } }Take money back off the total (a correction, for example a gift entered twice): raised -= amount, never below 0 (a larger amount removes only what is there). Donor count, the donor ticker and milestone `hit` flags are left alone. NEVER celebrates and shows no donor toast. Logged (op `remove`) and undoable with POST /api/fund/undo (the undo label reads "Undo −$20 Duplicate entry"). Request `amount` is MAJOR units. Reply is the same shape as /api/fund/add without `cel`. Errors: 400 `amount must be more than 0`, 400 `nothing to remove` (the total is already 0). Allowed for a treasurer session.
/api/fund/undoBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/undo?token=YOUR_TOKEN'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false }Revert the last add, remove or set (20 deep, not saved across restarts). Never celebrates, never clears a milestone's `hit`. Error 400 `nothing to undo`. Allowed for a treasurer session.
/api/fund/setBearer token| Param | Where | Required | Description |
|---|---|---|---|
| raised | body (JSON) | No | New raised total, MAJOR units. |
| donors | body (JSON) | No | New donor count. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/set?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"raised":18450,"donors":132}'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false }Correct the totals (logged, undoable, no celebration). Request values are MAJOR units for `raised` and a plain count for `donors`; values must be >= 0.
/api/fund/showBearer token| Param | Where | Required | Description |
|---|---|---|---|
| on | body (JSON) | Yes | true | false |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/show?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"on":true}'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false }Put the fundraiser bug on air (on:true; makes a bug skin when there is none, an existing one plays) or take every fundraiser bug off (on:false). One fundraiser bug on air at a time. While a Fundraiser layout is live the bug is hidden (bugSuppressed); show:true then overrides it until the layout changes.
/api/fund/celebrateBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/celebrate?token=YOUR_TOKEN'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false, "cel": { "k": "target", "v": 5000000, "t": 1760770100500 } }Replay the celebration banner and confetti for the highest milestone hit so far (else the target). No sound.
/api/fund/stylesBearer tokenExample request
curl -s http://192.168.1.42:8088/api/fund/styles?token=YOUR_TOKENExample response
{ "ok": true, "v": 1, "styles": [ { "id": "thermo", "letter": "A", "name": "Thermometer", "posKind": "side",
"themes": [ { "id": "emerald", "name": "Emerald", "c1": "#2fd27a", "c2": "#ffd34d", "plate": "#061610", "plateA": 0.74, "ink": "#ffffff", "bg1": "#06261c", "bg2": "#0d5b3f" } ] } ],
"defaults": { "bug": { "style": "strip", "theme": "frost", "pos": "bl" }, "layout": { "style": "tote", "theme": "gold" } },
"positions": ["tl","tr","bl","br"], "showAs": ["gauge","numbers","both"],
"currencies": [ { "code": "AUD", "symbol": "$" } ], "bgModes": ["colour","gradient","image"] }The shared table of looks, identical on both platforms: `styles` (thermo A, dial B, strip C, tote D; each with its `themes`: c1 fill, c2 accent, plate + plateA panel colour/alpha, ink, bg1/bg2), `defaults`, `positions`, `showAs`, `currencies` (code + symbol) and `bgModes`.
/api/fund/bug/<skinId>/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| skinId | path | Yes | A skin id from GET /api/fund `skins`. |
| mode | path | Yes | show | hide | toggle |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/bug/A1B2C3/show?token=YOUR_TOKEN'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false, "bugOn": true }Play, stop or toggle one fundraiser bug skin. Only one fundraiser bug is on air at a time: playing one takes the others off. Errors: 404 `no such skin: <id>`.
/api/fund/layout/styleBearer token| Param | Where | Required | Description |
|---|---|---|---|
| style | body (JSON) | Yes | thermo | dial | strip | tote |
| theme | body (JSON) | No | A theme id of that style (see /api/fund/styles). |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/layout/style?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"style":"tote","theme":"gold"}'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false }Set the full-screen Fundraiser layout style (and optionally its theme; choosing a theme also resets the layout background colours to that theme's bg1/bg2 unless the background is an image, and clears layout.ink). Errors: 400 `unknown style: <id>`, `unknown theme: <id>`.
/api/fund/layout/cueBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/layout/cue?token=YOUR_TOKEN'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false, "layoutOn": false }Cue (preview) the Fundraiser layout; it is made on demand when it does not exist yet.
/api/fund/layout/takeBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/layout/take?token=YOUR_TOKEN'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false, "layoutOn": true }Take the Fundraiser layout to Program; it is made on demand when it does not exist yet.
/api/fund/bgBearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | body (JSON) | No | colour | gradient | image |
| c1 / c2 | body (JSON) | No | #RRGGBB |
| dim | body (JSON) | No | 0..1 |
| data | body (JSON) | No | Image as base64 or data: URI. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/bg?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","dim":0.35}'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false }Set the layout background: `mode` colour | gradient | image with `c1`, `c2` (#RRGGBB) and `dim` (0..1, image darkening), and/or `data` = a JPEG/PNG as base64 or a data: URI (stored as a file in the fundraiser folder, <= 1920 px, and mode becomes image). Error 400 `bad colour: <v>`.
/api/fund/newBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/new?token=YOUR_TOKEN'Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":0,"min":2000000,"target":5000000,"stretch":6500000,"donors":0,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "bugSuppressed": false, "layoutOn": false }Start a fresh campaign run: resets raised, donors, milestone hit flags, recent, log, last and the undo stack, makes a new `id`, and keeps the setup (title, goals, looks). Destructive: confirm with the operator first.
/api/commandBearer token| Param | Where | Required | Description |
|---|---|---|---|
| action | body (JSON) | Yes | "fund" |
| op | body (JSON) | Yes | add | undo | set | patch | show | celebrate | bg | new | layoutCue | layoutTake | bugPlay | bugStop | bugToggle | styleBug | styleLayout |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/command?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"action":"fund","op":"add","amount":50,"name":"Sam"}'Example response
{ "ok": true }The Fundraiser operations through the raw command route (POST /api/command with the API token; the browser remote's own POST /cmd with the web-remote PIN takes the same body). The reply is just ok; read the new state from GET /api/fund or the event stream. Body {"action":"fund","op":"<op>", ...params}; also accepted: {"action":"fund.add",...} (and fund.remove) and {"op":"fund.add",...}. ops: add (amount, name, donor), remove (amount, name: take money off, never celebrates, floor 0, undoable), undo, set (raised, donors), patch (the POST /api/fund body), show (on), celebrate, bg, new, layoutCue, layoutTake, bugPlay / bugStop / bugToggle (skin), styleBug ({style, theme?, pos?} -> look), styleLayout ({style, theme?} -> layout). Money in the REQUEST is in MAJOR units (50 = $50, 12.5 allowed when dec is 2); money in every RESPONSE is integer MINOR units (with dec 2, 5000 = $50.00). The reply is the same R object as the /api/fund routes. This is what the Companion module uses.
/fund.jsonNo token (local network only)Example request
curl -s http://192.168.1.42:8088/fund.json?k={remotePin}Example response
{ "ok": true, "fund": {"v":1,"id":"5b0c0c1e-7a41-4d6e-9c55-3f1d0a9e2b10","rev":42,"title":"Masjid roof appeal","desc":"Help us replace the roof before winter.","cur":"AUD","dec":2,"raised":1845000,"min":2000000,"target":5000000,"stretch":6500000,"donors":132,"show":{"as":"both","on":true,"ticker":true,"celebrate":true},"look":{"style":"strip","theme":"frost","pos":"bl","ink":null},"layout":{"style":"tote","theme":"gold","bg":{"mode":"gradient","c1":"#0b0b0b","c2":"#2b2210","img":"","dim":0.35},"ink":null},"milestones":[{"k":"min","v":2000000,"hit":false},{"k":"target","v":5000000,"hit":false},{"k":"stretch","v":6500000,"hit":false}],"recent":[{"n":"Fatima A.","a":10000,"t":1760770000000}],"log":[{"op":"add","a":5000,"n":"Anonymous","donor":true,"by":"api","t":1760770100000}],"last":{"op":"add","a":5000,"n":"Anonymous","t":1760770100000}}, "serverNow": 1760770100123, "undoLabel": "Undo +$50 Anonymous", "undoDepth": 3, "bugOn": false, "layoutOn": false, "me": "Sam" }The treasurer page's own read: GET /api/fund plus `me` (the signed-in name). Works with the treasurer cookie or the remote PIN (?k=). Money is MINOR units.
/fund/loginNo token (local network only)| Param | Where | Required | Description |
|---|---|---|---|
| pin | body (JSON) | Yes | The 4-digit fundraiser PIN. |
| name | body (JSON) | No | Shown in the app log as web:Sam. |
Example request
curl -s -c cookies.txt -X POST http://192.168.1.42:8088/fund/login \
-H 'Content-Type: application/json' \
-d '{"pin":"4821","name":"Sam"}'Example response
{ "ok": true, "me": "Sam" }Treasurer sign-in: the fundraiser PIN (4 digits, made on first use of the app's Fundraiser Control section; not the web-remote PIN) and a name. Sets a 12-hour `ld_fund` session cookie. Errors: 401 `fundraiser PIN needed`, 401 `wrong PIN`, 429 `too many tries, wait a minute` (20 wrong PINs in a minute lock the door for a minute). "New PIN" in the app signs every session out.
/fund/logoutNo token (local network only)Example request
curl -s -X POST http://192.168.1.42:8088/fund/logoutExample response
{ "ok": true }End the treasurer session (clears the cookie).
/fundNo token (local network only)Example request
curl -s http://192.168.1.42:8088/fundExample response
text/htmlThe treasurer web page itself (HTML, installable; also /fund/manifest.json and /fund/icon.png): open http://{ip}:{port}/fund on a second person's phone and sign in with the fundraiser PIN. It can add donations, take some off (− Remove), undo and read the totals only. Needs no token to load.
/api/fund/view/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | bar | full | off |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/fund/view/full?token=YOUR_TOKEN'Example response
{ "ok": true, "fund": {…}, "bugOn": false, "layoutOn": true, … }One switch for a control surface: bar = the fundraiser bug over the show (takes the previous layout back first when the full-screen layout is on Program), full = take the Fundraiser layout (made when missing), off = neither. The treasurer page cannot use it (403).
My designs
Saved card and skin designs (text cards, messages, lower thirds, tickers) that can be dropped into the Studio with new words. Same routes and JSON on both platforms.
/api/designsBearer tokenExample request
curl -s http://192.168.1.42:8088/api/designs?token=YOUR_TOKENExample response
{ "ok": true, "designs": [{ "id": "…", "name": "Speaker, red bar", "folder": "Speakers", "kind": "lowerThird", "mode": "fillIn", "fields": [{ "key": "line1", "label": "Name", "line": 0 }], "rev": 3, "created": "ISO", "updated": "ISO" }] }Every saved design (no payload). kind = textCard | message | lowerThird | ticker; mode = asIs | fillIn; fields = what a fill-in design asks for (key, label, line); rev goes up on every edit.
/api/designs/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Design id. |
Example request
curl -s http://192.168.1.42:8088/api/designs/DESIGN_ID?token=YOUR_TOKENExample response
{ "ok": true, "design": { …design.json… } }One design: the full design.json (payload = the card and skin settings, assets = its pictures).
/api/designs/<id>/useBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Design id. |
| fields | body (JSON) | No | { "line1": "Dr Amina" } — values for the design's fields. |
| onAir | body (JSON) | No | true = put it on air. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/designs/DESIGN_ID/use?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"fields":{"line1":"Dr Amina"},"onAir":true}'Example response
{ "ok": true, "action": "designUse", "id": "…", "onAir": true }Use a design: it is added to the Studio (a text card becomes a layout, a skin joins Program) and, with onAir, put on air. A fill-in design keeps its own words for any field you leave out.
/api/designs/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Design id. |
Example request
curl -s -X DELETE http://192.168.1.42:8088/api/designs/DESIGN_ID?token=YOUR_TOKENExample response
{ "ok": true, "deleted": "…" }Delete a saved design. Shows that already use it keep their own copy.
Phone camera
The device's own built-in camera when it is on Program: flip front/back, zoom, torch. Read its state from `cam` in /api/state.
/api/commandBearer token| Param | Where | Required | Description |
|---|---|---|---|
| action | body (JSON) | Yes | "camFlip" (front ↔ back, no other fields), "camZoom" (value = zoom factor, e.g. 0.5, 1, 2) or "camTorch" (value = true / false). |
| value | body (JSON) | No | camZoom: number (factor, clamped to cam.minZoom…cam.maxZoom). camTorch: boolean. Not used by camFlip. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/command?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"action":"camFlip"}'Example response
{ "ok": true }camFlip is new in iOS 542 (Android: the next build after vc259): flips the first built-in camera on Program between front and back (zoom resets to 1×, torch turns off). Acts on the camera in the on-air layout; no-op if Program shows no built-in camera (then `cam` in /api/state is null). State: `cam` = {zoom, minZoom, maxZoom, lenses: [lens stops, e.g. 0.5, 1, 2, 5], canFlip, front, torch, hasTorch} or null. Same commands and the same `cam` JSON on Android. To flip a SATELLITE phone's camera on either platform use POST /api/satellite/camera/flip (its state is in `satCam`).
PTZ
Pan/tilt/zoom cameras — presets, direct moves, absolute zoom and storing new presets.
/api/ptz/camerasBearer tokenExample request
curl -s http://192.168.1.42:8088/api/ptz/cameras?token=YOUR_TOKENExample response
Array of PTZ-capable camera sources./api/ptz/<target>/preset/<n>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| target | path | Yes | Camera source id. |
| n | path | Yes | Preset number. |
| speed | query | No | Android only — default "1". |
Example request
curl -s http://192.168.1.42:8088/api/ptz/cam1/preset/3?token=YOUR_TOKENExample response
{ "ok": true }Android's handler also sends an optional speed parameter (default "1") that iOS's route does not declare.
/api/ptz/<target>/store/<n>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| target | path | Yes | Camera source id. |
| n | path | Yes | Preset number to store the current position as. |
Example request
curl -s http://192.168.1.42:8088/api/ptz/cam1/store/3?token=YOUR_TOKENExample response
{ "ok": true }/api/ptz/<target>/pantiltBearer token| Param | Where | Required | Description |
|---|---|---|---|
| target | path | Yes | Camera source id. |
| pan | query | Yes | Pan speed/position. |
| tilt | query | Yes | Tilt speed/position. |
Example request
curl -s 'http://192.168.1.42:8088/api/ptz/cam1/pantilt?token=YOUR_TOKEN&pan=0.2&tilt=-0.1'Example response
{ "ok": true }/api/ptz/<target>/zoomBearer token| Param | Where | Required | Description |
|---|---|---|---|
| target | path | Yes | Camera source id. |
| speed | query | Yes | Zoom speed. |
Example request
curl -s 'http://192.168.1.42:8088/api/ptz/cam1/zoom?token=YOUR_TOKEN&speed=0.5'Example response
{ "ok": true }Continuous zoom at a speed (−1 out … +1 in, 0 = stop). To go to an exact zoom position use the raw command ptzZoomAbs (next card).
/api/commandBearer token| Param | Where | Required | Description |
|---|---|---|---|
| action | body (JSON) | Yes | "ptzZoomAbs" |
| value | body (JSON) | Yes | Absolute zoom position 0 (widest) … 1 (full tele). Out-of-range values are clamped. |
| target | body (JSON) | Yes | Which PTZ camera: "program" (the on-air layout's first PTZ camera), "program:<slot>", "<layoutId>" or "<layoutId>:<slot>" — the same target strings as programPtzCams[].target in /api/state and GET /api/ptz/cameras. |
| slot | body (JSON) | No | iOS only — overrides a :<slot> suffix in target. Android reads the slot from the target string only. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/command?token=YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"action":"ptzZoomAbs","value":0.5,"target":"program:0"}'Example response
{ "ok": true }Absolute PTZ zoom (NDI recv_ptz_zoom), new in iOS 542 / Android vc259; the app's and web remote's camera zoom dial use it. It is a position, not a speed: 0.5 = halfway through the camera's zoom range. The dial maps its 1×–5× scale as value = (zoom − 1) / 4. No dedicated /api/ptz route yet — use POST /api/command (GET with the same query params also works). No-op if the target does not resolve or the camera has no PTZ.
Audio
Per-source gain, mute, solo, delay and master level.
/api/audio/<id>/delay/<ms>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
| ms | path | Yes | 0–500. |
Example request
curl -s http://192.168.1.42:8088/api/audio/cam1/delay/40?token=YOUR_TOKENExample response
{ "ok": true }/api/source/<id>/videodelay/<ms>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
| ms | path | Yes | 0–500. |
Example request
curl -s http://192.168.1.42:8088/api/source/cam1/videodelay/40?token=YOUR_TOKENExample response
{ "ok": true }/api/audio/master/<value>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| value | path | Yes | 0…1 on Android; iOS allows slightly over 1 for makeup gain. |
Example request
curl -s http://192.168.1.42:8088/api/audio/master/0.8?token=YOUR_TOKENExample response
{ "ok": true }/api/audio/mode/<mode>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | path | Yes | "follow" or "manual". |
Example request
curl -s http://192.168.1.42:8088/api/audio/mode/follow?token=YOUR_TOKENExample response
{ "ok": true }/api/audio/<id>/gain/<value>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
| value | path | Yes | Gain level. |
Example request
curl -s http://192.168.1.42:8088/api/audio/cam1/gain/0.9?token=YOUR_TOKENExample response
{ "ok": true }/api/audio/<id>/muteBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
Example request
curl -s http://192.168.1.42:8088/api/audio/cam1/mute?token=YOUR_TOKENExample response
{ "ok": true }Toggles.
/api/audio/<id>/soloBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
Example request
curl -s http://192.168.1.42:8088/api/audio/cam1/solo?token=YOUR_TOKENExample response
{ "ok": true }Toggles.
/api/audio/<id>/deleteBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
Example request
curl -s http://192.168.1.42:8088/api/audio/cam1/delete?token=YOUR_TOKENExample response
{ "ok": true }/api/audio/<id>/follow/<layoutId>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | Source id. |
| layoutId | path | Yes | Layout to follow. |
Example request
curl -s http://192.168.1.42:8088/api/audio/cam1/follow/main?token=YOUR_TOKENExample response
{ "ok": true }/api/monitor/mute/<state>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| state | path | Yes | "on" or "off". |
Example request
curl -s http://192.168.1.42:8088/api/monitor/mute/on?token=YOUR_TOKENExample response
{ "ok": true }/api/audio/uploadBearer token| Param | Where | Required | Description |
|---|---|---|---|
| name | query | No | display name |
| loop | query | No | true | false (default true) |
| (body) | body (raw) | Yes | MP3 / M4A / WAV |
Example request
curl -s -X POST --data-binary @music.mp3 'http://192.168.1.42:8088/api/audio/upload?name=Walk-in&token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…" }Adds a music player from the uploaded file. Raw request body = the file (Content-Length required). Max 500 MB; refused when the device would keep under 2 GB free. Errors: 411 no length, 413 too big, 415 file type not supported, 422 (Android) file can't be opened, 507 not enough space.
Outputs & Go Live
Starts/stops NDI, RTMP, recording and streaming outputs, and the "GO LIVE" shortcut that starts everything ticked at once.
/api/remote/pinBearer tokenExample request
curl -s http://192.168.1.42:8088/api/remote/pin?token=YOUR_TOKENExample response
{ "pin": "4821" }This is the human web-remote's PIN, unrelated to the API bearer token.
/api/remote/pinBearer token| Param | Where | Required | Description |
|---|---|---|---|
| pin | query/body | Yes | 4–8 digits, or "new" for a random one. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/remote/pin?token=YOUR_TOKEN&pin=new'Example response
{ "pin": "7310" }/api/output/nasBearer token| Param | Where | Required | Description |
|---|---|---|---|
| host | body | Yes | |
| share | body | Yes | |
| folder | body | No | |
| user | body | No | |
| password | body | No |
Example request
curl -s -X POST http://192.168.1.42:8088/api/output/nas?token=YOUR_TOKEN \
-d host=192.168.1.50 -d share=RecordingsExample response
{ "ok": true }Configures record-to-NAS.
/api/output/nas/clearBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/output/nas/clear?token=YOUR_TOKENExample response
{ "ok": true }/api/output/ndi/name/<name>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| name | path | Yes | New NDI output name. |
Example request
curl -s http://192.168.1.42:8088/api/output/ndi/name/Studio-A?token=YOUR_TOKENExample response
{ "ok": true }/api/output/quality/<quality>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| quality | path | Yes | iOS: 480p | 720p | 1080p. Android: 720p | 1080p. |
Example request
curl -s http://192.168.1.42:8088/api/output/quality/1080p?token=YOUR_TOKENExample response
{ "ok": true }iOS accepts 480p; Android does not offer it.
/api/output/portrait/<on>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| on | path | Yes | "on" or "off". |
Example request
curl -s http://192.168.1.42:8088/api/output/portrait/on?token=YOUR_TOKENExample response
{ "ok": true }/api/output/<name>/<state>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| name | path | Yes | ndi | rtmp | facebook | youtube | record | hls on both platforms; rtmpserver on iOS only. facebook / youtube = one-tap Facebook / YouTube Live (the login, the timeline / Page pick and the YouTube details happen on the device). |
| state | path | Yes | "on" or "off". |
| url | query | No | Android only, for name=rtmp — start with a specific server URL. |
Example request
curl -s http://192.168.1.42:8088/api/output/ndi/on?token=YOUR_TOKENExample response
{ "ok": true }rtmpserver exists only on iOS. facebook / youtube only do something on builds that offer that one-tap output (fbConfigured / ytConfigured in /api/outputs). Android's /api/golive/select route (below) uses a narrower vocabulary — see the note there.
/api/goliveBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/golive?token=YOUR_TOKENExample response
{ "ok": true }Starts every output currently ticked in Output settings (NDI / Stream-RTMP / Facebook Live / YouTube Live / Record / HLS / RTMP server).
/api/golive/stopBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/golive/stop?token=YOUR_TOKENExample response
{ "ok": true }Confirm before wiring this to a hotkey — it stops every live output at once. Every output the GO LIVE session started stops, nothing keeps reconnecting, and isLive / liveArmed clear.
/api/golive/select/<name>/<state>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| name | path | Yes | ndi | rtmp | facebook | youtube | record | hls | rtmpserver (fb / yt accepted too). |
| state | path | Yes | "on" or "off" — ticks/unticks it for the next GO LIVE. |
Example request
curl -s http://192.168.1.42:8088/api/golive/select/rtmp/on?token=YOUR_TOKENExample response
{ "ok": true }Ticks or unticks an output for the next GO LIVE (edits liveSelection only; starts nothing). facebook / youtube only count on builds that offer that one-tap output.
/api/studio/theme/<name>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| name | path | Yes | calm | glass | surface | islands |
Example request
curl -s http://192.168.1.42:8088/api/studio/theme/calm?token=YOUR_TOKENExample response
{ "ok": true }Studio screen theme: calm | glass | surface | islands. Read back as `theme` (effective) and `themeChoice` in /api/state.
/api/golive/statusBearer tokenExample request
curl -s http://192.168.1.42:8088/api/golive/status?token=YOUR_TOKENExample response
{ "isLive": true, "liveArmed": true, "liveSince": 1760400000,
"goLive": { "phase": "partial", "onAir": true, "label": "LIVE · 1 FAILED", "failed": [{ "key": "rtmp", "name": "Stream", "state": "failed", "reason": "…" }] } }What GO LIVE is really doing: goLive.phase = idle | connecting (nothing on air yet) | live | partial (some outputs failed — goLive.failed has name + reason) | failed (nothing went live; the button is back to GO LIVE). isLive = something really on air; liveArmed = GO LIVE pressed and not stopped. When a GO LIVE session ends — Stop, or failed with nothing on air — every output that session started stops (no reconnect loop is left running) and isLive / liveArmed go back to false.
/api/golive/retryBearer tokenExample request
curl -s -X POST http://192.168.1.42:8088/api/golive/retry?token=YOUR_TOKENExample response
{ "ok": true, "action": "goLiveRetry" }Retry every output that is selected for GO LIVE and failed (starts GO LIVE if nothing is live). Outputs that are not selected are never started.
/api/golive/retry/<output>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| output | path | Yes | ndi | rtmp | facebook | youtube | record | hls | rtmpServer (any letter case) |
Example request
curl -s -X POST http://192.168.1.42:8088/api/golive/retry/rtmp?token=YOUR_TOKENExample response
{ "ok": true, "action": "goLiveRetry" }Retry ONE GO LIVE output — only if it is selected (ticked) for GO LIVE. An output that is not selected is left alone: the call is a no-op and still answers 200. The output name is case-insensitive (rtmpserver = rtmpServer). Not live = starts GO LIVE (every ticked output).
Schedules
Recurring scheduled lives (go out at a set time on chosen days, for a set length, to chosen outputs): list, create, edit, turn on/off, skip a day, delete, and cancel the one counting down. The same commands the browser remote uses (/cmd scheduleSave, scheduleEnable, scheduleSkip, scheduleDelete, scheduleCancelToday, scheduleDismissMissed). Same routes and names on iPhone/iPad/Mac/Apple TV and Android.
/api/schedulesBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/schedules?token=YOUR_TOKEN'Example response
{ "ok": true, "schedules": [ { "id": "…", "name": "Jumuah", "showID": null, "time": "13:00", "durationMin": 60, "days": [5], "onceDate": null, "outputs": ["youtube", "ndi"], "announce": false, "enabled": true, "skips": [], "displayName": "Jumuah", "next": 1795742400 } ], "next": { "id": "…", "name": "Jumuah", "day": "2026-11-27", "start": 1795742400, "end": 1795746000, "outputs": ["youtube"], "phase": "upcoming|countdown|live" } | null, "countdown": { "id": "…", "name": "Jumuah", "day": "2026-11-27", "secondsLeft": 240, "outputs": ["youtube"], "running": false } | null, "missed": [ { "id": "…", "scheduleID": "…", "name": "Jumuah", "time": "13:00", "day": "2026-11-20", "reason": "LiveDeck wasn't open at the start time" } ], "shows": [ { "id": "…", "name": "Friday", "steps": 4 } ], "outputs": [ { "key": "youtube", "title": "YouTube Live", "short": "YouTube", "group": "online|network|save", "available": true, "note": "" } ] }days: 0 = Sunday … 6 = Saturday; empty = once, on onceDate (local yyyy-MM-dd). time is local HH:MM. outputs keys: youtube, facebook, rtmp, ndi, rec, drive, hls, rtmpsrv. countdown = the run counting down (running false) or today's live run (running true). outputs[].available false + note when this device can't use it (Apple TV: YouTube "Send YouTube through Custom RTMP", rec "Not on Apple TV"). The same keys are in the state: schedules, nextSchedule, scheduleCountdown, scheduleMissed, savedShows, scheduleOutputs.
/api/schedules/saveBearer token| Param | Where | Required | Description |
|---|---|---|---|
| (body) | body | Yes | schedule JSON |
Example request
curl -s -X POST -H 'Content-Type: application/json' -d '{"name":"Jumuah","time":"13:00","durationMin":60,"days":[5],"outputs":["youtube","ndi"]}' 'http://192.168.1.42:8088/api/schedules/save?token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…", "next": "2026-11-27T02:00:00Z" }Body = the schedule JSON (as in GET /api/schedules; facebook/youtube post details optional). No id = create with a new id; a known id = edit (keys you leave out are kept); an unknown id = create with that id (undo of a delete). Errors (400): "Pick at least one output to save.", "Pick a time (HH:MM).", an output this device can't use. No name and no showID = "Untitled". next = ISO time of the next run or null. Alias: POST /api/schedules.
/api/schedules/<id>/enableBearer token| Param | Where | Required | Description |
|---|---|---|---|
| on | query/body | Yes | 1 | 0 |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/schedules/<id>/enable?on=0&token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…", "enabled": false }Turn a schedule on (on=1) or off (on=0). 404 = no such schedule. Alias: POST /api/schedules/<id>/enabled.
/api/schedules/<id>/skipBearer token| Param | Where | Required | Description |
|---|---|---|---|
| day | query/body | Yes | YYYY-MM-DD (local) |
| on | query/body | No | 1 = skip (default), 0 = undo |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/schedules/<id>/skip?day=2026-11-27&on=1&token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…", "day": "2026-11-27", "skip": true }Skip one day (on=1) or undo the skip (on=0).
/api/schedules/<id>/deleteBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/schedules/<id>/delete?token=YOUR_TOKEN'Example response
{ "ok": true, "id": "…" }Delete a schedule. A run that is counting down or live stops being scheduled; outputs already on keep running. Alias: DELETE /api/schedules/<id>.
/api/schedules/cancel-todayBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | body (JSON) | No | With date, cancel that one run of this schedule (unknown id = 404). |
| date | body (JSON) | No | yyyy-MM-dd, used with id. |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/schedules/cancel-today?token=YOUR_TOKEN'Example response
{ "ok": true, "cancelled": true, "schedules": [ … ], "next": { … }, … }
// nothing counting down:
{ "ok": true, "cancelled": false, "schedules": [ … ], … }
// unknown id + date:
{ "ok": false, "error": "no schedule with id …" } (404)Cancel the scheduled live that is counting down, this time only (the day is added to its skips; the schedule stays). Always 200 with `cancelled`: true = a countdown was cancelled, false = nothing was counting down (not an error). With id + date: cancel that one run (unknown id = 404). Without id it never stops a run that is already live (stop its outputs instead). The reply also carries the GET /api/schedules fields. Alias: POST /api/schedules/cancel.
/api/schedules/<id>Bearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | path | Yes | schedule id |
Example request
curl -s 'http://192.168.1.42:8088/api/schedules/<id>?token=YOUR_TOKEN'Example response
{ "ok": true, "schedule": { … } }One schedule.
Facebook Live
One-tap Facebook Live, scriptable end to end: log in (an Apple TV shows a code + QR for facebook.com/device), list and pick the timeline or a Page, set who can see it and the words, sign out. Going live itself is /api/golive or /api/output/facebook/on. An Apple TV goes live with the remembered choices and no prompt, and keeps each Page's own login, so it can go live to a Page unattended after a reboot. Apple platforms only for now (iPhone/iPad and Apple TV; not the Mac). Android/Android TV: pending (TRACKER #206).
/api/facebookBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/facebook?token=YOUR_TOKEN'Example response
{ "ok": true, "configured": true, "offered": true, "signedIn": true, "account": "Sam Lee", "login": { "method": "device", "state": "signedIn" }, "targets": [ { "id": "me", "name": "Your timeline", "page": false }, { "id": "1234", "name": "QK Radio", "page": true } ], "target": { "id": "1234", "name": "QK Radio", "page": true }, "privacy": "friends", "title": "Friday khutbah", "description": "", "state": "idle|connecting|live|failed", "status": "", "permalink": "", "audienceApplied": "", "audienceWarning": "", "askFirst": true }Everything about one-tap Facebook Live on this device. audienceApplied = who Facebook says can see the current timeline live (only_me | friends | friends_of_friends | public | custom; empty = Facebook did not say, which is usual: Meta documents no readable privacy field for these logins). audienceWarning = the notice when that is narrower than the pick, e.g. "Facebook is showing this live to Only me. To change it: Facebook → Settings → Business integrations → LiveDeck → ‘Who can see that you use this business integration?’ → Public." (empty = none). Facebook caps EVERY LiveDeck post at that per-app setting, whatever privacy LiveDeck sends (#207). Same object as the state key `facebook`. login.method = device (Apple TV: code + facebook.com/device) or web (iPhone/iPad: Facebook's page on the device). The remembered target/privacy/title/description are what GO LIVE uses on an Apple TV (no sheet); on iPhone/iPad they prefill the Go live sheet. Apple platforms only for now (iPhone/iPad and Apple TV; not the Mac). Android/Android TV: pending (TRACKER #206).
/api/facebook/loginBearer token| Param | Where | Required | Description |
|---|---|---|---|
| force | query/body | No | true = start a new login even when signed in (switch account) |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/facebook/login?token=YOUR_TOKEN'Example response
{ "ok": true, "method": "device", "state": "waiting", "userCode": "A1NWZ9", "url": "https://www.facebook.com/device", "qrURL": "https://www.facebook.com/device?user_code=A1NWZ9", "expiresIn": 420, "signedIn": false, "account": "" }Apple TV: asks Facebook for a code (answers within ~10 s) and shows the same code + QR on the TV. Enter it at facebook.com/device on any phone, then poll GET /api/facebook/login until state = signedIn. The code lasts about 7 minutes. iPhone/iPad: opens Facebook's login page on that device. Already signed in = no-op unless force=true. 502 with error when Facebook refuses (e.g. the Meta app's Login from Devices is off). 409 while Facebook is on air/starting.
/api/facebook/loginBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/facebook/login?token=YOUR_TOKEN'Example response
{ "ok": true, "method": "device", "state": "signedOut|waiting|signedIn|failed", "userCode": "A1NWZ9", "url": "https://www.facebook.com/device", "qrURL": "…", "expiresIn": 300, "signedIn": false, "account": "", "error": "…" }Login status. userCode/url/qrURL/expiresIn only while waiting; error after a failed or expired code.
/api/facebook/login/cancelBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/facebook/login/cancel?token=YOUR_TOKEN'Example response
{ "ok": true, "state": "signedOut", … }Drops a waiting Apple TV code. A GO LIVE that was waiting on it fails with "login cancelled".
/api/facebook/targetsBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/facebook/targets?token=YOUR_TOKEN'Example response
{ "ok": true, "targets": [ { "id": "me", "name": "Your timeline", "page": false }, { "id": "1234", "name": "QK Radio", "page": true } ], "selected": "me" }Asks Facebook again for the timeline + every Page the login manages (pages_show_list). warning = Facebook's error when the Pages list failed (the timeline still works). 409 when not signed in.
/api/facebook/targetBearer token| Param | Where | Required | Description |
|---|---|---|---|
| id | query/body | No | me (your timeline) or a Page id from /api/facebook/targets |
| name | query/body | No | instead of id: a unique part of a Page's name |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/facebook/target?token=YOUR_TOKEN&id=me'Example response
{ "ok": true, "target": { "id": "1234", "name": "QK Radio", "page": true } }Where the next Facebook live goes, remembered on the device. 404 (with targets) for a Page this login does not manage. A Run a Show START still uses the show's own Page (/api/show/live).
/api/facebook/privacyBearer token| Param | Where | Required | Description |
|---|---|---|---|
| value | query/body | Yes | public | friends | only_me |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/facebook/privacy?token=YOUR_TOKEN&value=public'Example response
{ "ok": true, "privacy": "friends", "appliesTo": "your timeline (a Page publishes to its followers)" }Who can see a TIMELINE live (Graph privacy EVERYONE / ALL_FRIENDS / SELF; those names are accepted too). Default friends. Facebook still caps it at its per-app setting for LiveDeck: Facebook → Settings → Business integrations (or Apps and websites) → LiveDeck → ‘Who can see that you use this business integration?’ (set it to Public once). Pages are not affected.
/api/facebook/detailsBearer token| Param | Where | Required | Description |
|---|---|---|---|
| title | query/body | No | live video title |
| description | query/body | No | live video description |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/facebook/details?token=YOUR_TOKEN&title=Friday%20khutbah'Example response
{ "ok": true, "title": "Friday khutbah", "description": "" }Title (≤ 254 characters; empty = "LiveDeck live") and description of the next Facebook live, remembered on the device. A show run uses the show's own words.
/api/facebook/rememberBearer token| Param | Where | Required | Description |
|---|---|---|---|
| on | query/body | Yes | 1 = remember (don't ask), 0 = ask first |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/facebook/remember?on=1&token=YOUR_TOKEN'Example response
{ "ok": true, "remember": true, "askFirst": false }Go live straight away: on=1 = GO LIVE goes out to Facebook with the remembered target, audience and words, without the "Go live on Facebook" sheet; on=0 = ask every time (default). Same switch as the app's "Ask before going live". GET /api/facebook (and the state key facebook) carries askFirst = the inverse. Apple platforms only for now (iPhone/iPad/Mac and Apple TV). Android: pending.
/api/facebook/signoutBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/facebook/signout?token=YOUR_TOKEN'Example response
{ "ok": true, "signedIn": false }Forgets this device's Facebook login and the Page logins saved with it (Keychain). 409 while Facebook is on air or starting.
YouTube Live
One-tap YouTube Live, scriptable end to end: sign in with Google (an Apple TV shows a code + QR for google.com/device; iPhone, iPad and Mac open Google's page on the device), set who can watch and the words, sign out. Going live itself is /api/golive or /api/output/youtube/on. An Apple TV goes live with the remembered title, description and privacy and no prompt, so a schedule or Companion can start it unattended. iPhone/iPad/Mac/Apple TV; Android keeps one-tap YouTube in the app (these routes: pending).
/api/youtubeBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/youtube?token=YOUR_TOKEN'Example response
{ "ok": true, "configured": true, "offered": true, "signedIn": true, "channel": "QK Radio", "login": { "method": "device", "state": "signedIn", "signedIn": true, "channel": "QK Radio" }, "privacy": "unlisted", "title": "Friday khutbah", "description": "", "state": "idle|connecting|waiting|live|failed", "status": "", "watchURL": "", "lifeCycle": "", "streamStatus": "", "forcedPrivate": false }Everything about one-tap YouTube Live on this device. Same object as the state key `youtube`. login.method = device (Apple TV: code + google.com/device) or web (iPhone/iPad/Mac: Google's page on the device). state waiting = LiveDeck is sending and YouTube has not said live yet (usually 30–60 s). forcedPrivate = YouTube made the stream private although public/unlisted was picked (LiveDeck is still in YouTube's API review). configured false = this device doesn't offer one-tap (an Apple TV before its Google sign-in is set up, or a store build before approval): every other /api/youtube route then answers 409.
/api/youtube/loginBearer token| Param | Where | Required | Description |
|---|---|---|---|
| force | query/body | No | true = sign in again with another Google account even when signed in |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/youtube/login?token=YOUR_TOKEN'Example response
{ "ok": true, "method": "device", "state": "waiting", "userCode": "GQVQ-JKEC", "url": "https://www.google.com/device", "qrURL": "https://www.google.com/device", "expiresIn": 1800, "signedIn": false, "channel": "" }Apple TV: asks Google for a code (answers within ~10 s) and shows the same code + QR on the TV. Enter it at google.com/device on any phone or computer, then poll GET /api/youtube/login until state = signedIn. The code lasts about 30 minutes; Google's QR opens the page and the code is typed there. iPhone/iPad/Mac: opens Google's sign-in page on that device. Already signed in = no-op unless force=true. 502 with error when Google refuses. 409 while YouTube is on air/starting.
/api/youtube/loginBearer tokenExample request
curl -s 'http://192.168.1.42:8088/api/youtube/login?token=YOUR_TOKEN'Example response
{ "ok": true, "method": "device", "state": "signedOut|waiting|signedIn|failed", "userCode": "GQVQ-JKEC", "url": "https://www.google.com/device", "qrURL": "…", "expiresIn": 1500, "signedIn": false, "channel": "", "error": "…" }Sign-in status. userCode/url/qrURL/expiresIn only while waiting; error after a failed or expired code.
/api/youtube/login/cancelBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/youtube/login/cancel?token=YOUR_TOKEN'Example response
{ "ok": true, "state": "signedOut", … }Drops a waiting Apple TV code (or closes Google's sign-in page on the device). A GO LIVE that was waiting on it fails with "sign-in cancelled".
/api/youtube/privacyBearer token| Param | Where | Required | Description |
|---|---|---|---|
| value | query/body | Yes | public | unlisted | private |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/youtube/privacy?token=YOUR_TOKEN'Example response
{ "ok": true, "privacy": "unlisted" }Who can watch the next YouTube live this device creates without asking (Apple TV, API, schedules without their own privacy): public | unlisted (default) | private. Remembered on this device; a Run a Show START uses the show's own privacy.
/api/youtube/detailsBearer token| Param | Where | Required | Description |
|---|---|---|---|
| title | query/body | No | the live's title |
| description | query/body | No | optional description |
Example request
curl -s -X POST 'http://192.168.1.42:8088/api/youtube/details?token=YOUR_TOKEN'Example response
{ "ok": true, "title": "Friday khutbah", "description": "" }Title (up to 100 characters, < and > removed) and description of the next YouTube live this device creates without asking. Remembered on this device; a Run a Show START uses the show's own words.
/api/youtube/signoutBearer tokenExample request
curl -s -X POST 'http://192.168.1.42:8088/api/youtube/signout?token=YOUR_TOKEN'Example response
{ "ok": true, "signedIn": false }Forgets this device's Google sign-in (Keychain). This device only: LiveDeck does not revoke the grant at Google, so other devices signed in with the same Google account stay signed in. 409 while YouTube is on air or starting.
NDI network
Configures how this device finds NDI sources — a discovery server address and/or a list of direct IPs. Answers on every device regardless of mode.
/api/ndi/networkBearer tokenExample request
curl -s http://192.168.1.42:8088/api/ndi/network?token=YOUR_TOKENExample response
{ "discoveryServer": "", "directIPs": [] }/api/ndi/networkBearer token| Param | Where | Required | Description |
|---|---|---|---|
| discoveryServer | body | No | |
| directIPs | body | No | Comma-separated. Either/both fields; empty clears. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/ndi/network?token=YOUR_TOKEN \
-d directIPs=192.168.1.21,192.168.1.22Example response
{ "ok": true }Raw command
The generic forwarder behind the browser remote's own control panel. Covers everything that doesn't have a dedicated shortcut route above.
/api/commandBearer token| Param | Where | Required | Description |
|---|---|---|---|
| action | body or query, plus any action-specific fields | Yes | e.g. addLayout, editLayout, renameLayout, duplicateLayout, removeLayout, addSkin, updateSkin, removeSkin, playSkin, stopSkin, camZoom, camFlip, camTorch, ptzZoomAbs, testPattern, addInput, addCamera, … |
Example request
curl -s -X POST http://192.168.1.42:8088/api/command?token=YOUR_TOKEN \
-H 'Content-Type: application/json' \
-d '{"action":"testPattern","on":true}'Example response
{ "ok": true }GET is also accepted with the same params on the query string. This is the same JSON shape the browser remote's own POST /cmd uses. Score ops for rosters: {"action":"score","op":"rosterSet|playerAdd|playerRemove|scorer", team, n, name, players}. Camera: {"action":"ptzZoomAbs","value":0…1,"target":"program:0"} (absolute PTZ zoom, both platforms) and {"action":"camFlip"} (flip the phone camera, both platforms) — see the PTZ and Phone camera sections. Layouts: {"action":"addLayout","type":"fullscreen|pip|sideBySide|tripleSplit|quadSplit|doublePip|greenScreen","slots":["in:<source id>","ndi:<NDI name>","cam",…],"ptz":[0],"noAudio":[1],"options":{"corner":0-3,"size":0.32,"circular":false,"zoom":1,"key":"#00FF00","threshold":0.4,"splitShape":"…","slotShapes":[…],"slotZooms":[…],"rects":[[x,y,w,h],…],"background":…},"name":"Interview"} — ptz / noAudio are slot indexes. editLayout takes the same fields plus "id" (the layout id). Same JSON on both platforms; Android still accepts its older flat form too (type full|split|triple|quad|green, slot0…slot3, ptz "0,1").
TV routes
Only answered when the device is running in TV box mode (Apple TV / Android TV). On a phone, tablet or Mac these fall through to the generic 404.
/api/tvBearer tokenExample request
curl -s http://192.168.1.42:8088/api/tv?token=YOUR_TOKENExample response
Current TV mode + status./api/tv/modeBearer token| Param | Where | Required | Description |
|---|---|---|---|
| mode | query/body | Yes | watch | studio | choose (iOS also documents "choose" explicitly to return to the chooser screen). |
Example request
curl -s -X POST http://192.168.1.42:8088/api/tv/mode?token=YOUR_TOKEN&mode=watchExample response
{ "ok": true }/api/tv/fullscreenBearer token| Param | Where | Required | Description |
|---|---|---|---|
| on | query/body | Yes |
Example request
curl -s -X POST http://192.168.1.42:8088/api/tv/fullscreen?token=YOUR_TOKEN&on=trueExample response
{ "ok": true }/api/tv/autostartBearer token| Param | Where | Required | Description |
|---|---|---|---|
| on | query/body | Yes |
Example request
curl -s -X POST http://192.168.1.42:8088/api/tv/autostart?token=YOUR_TOKEN&on=trueExample response
{ "ok": true }/api/tv/qualityBearer token| Param | Where | Required | Description |
|---|---|---|---|
| auto | query/body | Yes |
Example request
curl -s -X POST http://192.168.1.42:8088/api/tv/quality?token=YOUR_TOKEN&auto=trueExample response
{ "ok": true }/api/tv/sourcesBearer tokenExample request
curl -s http://192.168.1.42:8088/api/tv/sources?token=YOUR_TOKENExample response
Sources the TV box can watch./api/tv/watchBearer token| Param | Where | Required | Description |
|---|---|---|---|
| source | query/body | Yes | Source id to watch. |
Example request
curl -s -X POST http://192.168.1.42:8088/api/tv/watch?token=YOUR_TOKEN&source=cam1Example response
{ "ok": true }Bonjour/mDNS: both platforms advertise the API as _livedeck-api._tcp, with the port in a TXT record — that's how Companion and the "Try it" console above find a device automatically on the same network.
Pairing without typing a token: use POST /api/pair and GET /api/pair/<id> above — the only two unauthenticated JSON routes, and only answered to a peer already on your network.