Docs API reference
External sensors
A named thing an outside system tells about: a door bell relay, a building system, a button box. It posts READINGS to its own address; a rule on a stage or a block says “when Front door fired in the last 2 minutes” or “when Queue reads at least 10”. Readings are records in the sensor’s own collection (sensors/<key>/), newest first. The ingest takes the sensor’s own key (Authorization: Bearer wfv.<id>.<secret>, shown once), a workspace API key with the sensors scope, or — when signing is on — Wf-Signature: t=<unix s>,v1=<hex HMAC-SHA256(key, t + "." + body)> within 300 s with ?id=<sensor id>, where the key is the sensor’s webhook signing key (shown once when signing is turned on, and on rotate; used as text). reach narrows which stages, stage groups or single screens a sensor’s rules see. With local.enabled, a system on the venue network may post readings straight to a screen (/endpoints lists them and, for the sensor’s own key or an API key, each screen’s local key; needs the new Android TV, desktop and Raspberry Pi players).
Every call needs an API key in the Authorization header. New to the API? Start with
the API overview.
- GET List external sensors /sensors
- POST Create an external sensor /sensors
- GET Read an external sensor /sensors/{key}
- PATCH Change an external sensor /sensors/{key}
- DELETE Delete an external sensor /sensors/{key}
- POST Rotate a sensor’s key /sensors/{key}/rotate
- POST Reset a sensor’s local keys /sensors/{key}/reset-local
- GET List the screens that take this sensor on the local network /sensors/{key}/endpoints
- POST Send an input device’s frames through the cloud /sensors/{key}/frames
- GET Realtime tokens for an input device’s cloud channels /sensors/{key}/input-token
- PUT Set an input device’s active area for one target /sensors/{key}/calibration
- POST Ask the sensing device for its picture, encrypted to this browser tab /sensors/{key}/calibration-preview
- POST Stop the picture of a calibration view /sensors/{key}/calibration-preview/stop
- POST Calibrate by pointing, or test pointing, on the target’s screens /sensors/{key}/pointing-check
- POST Post a reading /sensors/{key}/readings
List external sensors
/sensors sensorsThe workspace’s sensor list, key ascending. ?with=state adds each sensor’s newest reading as state: { at, values } | null.
Parameters
withstring querystate: add each sensor’s newest reading.
Responses
- 200 The sensors.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
Response fields (200)
itemsobject[] required15 fields in
items_idstringkeystringlabelstringkindstringOne of
event,state,inputinputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.4 fields in
sourcetypestringOne of
local,networkcamerastringurlstringsecret_idstring read-only
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
collection_idstringfieldsobject[]fresh_minintegerkeepintegertoken_hintstringThe key’s last 4 characters.
signingbooleanreachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
last_atinteger or nullServer time of the newest reading.
last_viastring or nullHow the newest reading arrived.
One of
cloud,local,null
next_cursorstring or null requiredPass as
cursorfor the next page;nullon the last page.
curl "https://www.wunderframe.com/api/v1/sensors" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"items": [
{
"_id": "3f9a1c0b7d2e4a51",
"key": "front-door",
"label": "Front door",
"kind": "event",
"collection_id": "col_1",
"fields": [],
"fresh_min": 2,
"keep": 20,
"token_hint": "x9Qa",
"signing": false,
"reach": {
"all": true
},
"local": {
"enabled": false,
"relay": true
},
"last_at": 1793450000000,
"last_via": "cloud"
}
],
"next_cursor": null
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Create an external sensor
/sensors sensorsMakes the sensor and its collection. The answer carries token ONCE (and signing_key once when signing is on): store them in the relay.
Request body required
labelstring requiredWhat people call it: “Front door”.
Up to 60 characters
keystringMade from the label when left out. Fixed after creation.
Pattern
^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$kindstringevent: it happened.state: it reads something now (one row, at least one field).input: an input device (spec 55) — a camera on another device that senses for stages or zones; its fields are fixed (near, state, count, sign, target), its reach comes from its targets.One of
event,state,inputfieldsobject[]Up to 8 items
3 fields in
fieldsnamestring requiredlabelstringtypestringOne of
text,number
fresh_minintegerHow long a firing counts when a rule names no minutes. Default 2.
1–1440
keepintegerReadings kept (event). Default 20; a state sensor keeps 1.
1–200
signingbooleanAlso accept HMAC-signed webhooks (
Wf-Signature). Turning it on answerssigning_keyonce.reachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
inputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.3 fields in
sourcetypestringOne of
local,networkcamerastringurlstring
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
camera_loginobject or nullKind
input, a network camera: its login, sealed on save and never answered;nullforgets it, missing keeps it.2 fields in
camera_loginuserstringpasswordstring
Responses
- 201 The sensor, its key (once) and its ingest address.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 409 Conflicts with the current state.
Response fields (201)
_idstringkeystringlabelstringkindstringOne of
event,state,inputinputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.4 fields in
sourcetypestringOne of
local,networkcamerastringurlstringsecret_idstring read-only
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
collection_idstringfieldsobject[]fresh_minintegerkeepintegertoken_hintstringThe key’s last 4 characters.
signingbooleanreachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
last_atinteger or nullServer time of the newest reading.
last_viastring or nullHow the newest reading arrived.
One of
cloud,local,null
curl -X POST "https://www.wunderframe.com/api/v1/sensors" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"label": "Front door",
"kind": "event",
"fresh_min": 2
}'{
"_id": "3f9a1c0b7d2e4a51",
"key": "front-door",
"label": "Front door",
"kind": "event",
"collection_id": "col_1",
"fields": [],
"fresh_min": 2,
"keep": 20,
"token_hint": "x9Qa",
"signing": false,
"reach": {
"all": true
},
"local": {
"enabled": false,
"relay": true
},
"last_at": 1793450000000,
"last_via": "cloud"
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Read an external sensor
/sensors/{key} sensorsParameters
keystring required pathThe sensor’s key, e.g.
front-door.
Responses
- 200 The sensor.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
_idstringkeystringlabelstringkindstringOne of
event,state,inputinputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.4 fields in
sourcetypestringOne of
local,networkcamerastringurlstringsecret_idstring read-only
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
collection_idstringfieldsobject[]fresh_minintegerkeepintegertoken_hintstringThe key’s last 4 characters.
signingbooleanreachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
last_atinteger or nullServer time of the newest reading.
last_viastring or nullHow the newest reading arrived.
One of
cloud,local,null
curl "https://www.wunderframe.com/api/v1/sensors/front-door" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"_id": "3f9a1c0b7d2e4a51",
"key": "front-door",
"label": "Front door",
"kind": "event",
"collection_id": "col_1",
"fields": [],
"fresh_min": 2,
"keep": 20,
"token_hint": "x9Qa",
"signing": false,
"reach": {
"all": true
},
"local": {
"enabled": false,
"relay": true
},
"last_at": 1793450000000,
"last_via": "cloud"
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Change an external sensor
/sensors/{key} sensorsLabel and settings, reach and local too; the key stays. Turning signing on answers signing_key ONCE.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Request body required
labelstringWhat people call it: “Front door”.
Up to 60 characters
keystringMade from the label when left out. Fixed after creation.
Pattern
^[a-z0-9][a-z0-9-]{0,38}[a-z0-9]$kindstringevent: it happened.state: it reads something now (one row, at least one field).input: an input device (spec 55) — a camera on another device that senses for stages or zones; its fields are fixed (near, state, count, sign, target), its reach comes from its targets.One of
event,state,inputfieldsobject[]Up to 8 items
3 fields in
fieldsnamestring requiredlabelstringtypestringOne of
text,number
fresh_minintegerHow long a firing counts when a rule names no minutes. Default 2.
1–1440
keepintegerReadings kept (event). Default 20; a state sensor keeps 1.
1–200
signingbooleanAlso accept HMAC-signed webhooks (
Wf-Signature). Turning it on answerssigning_keyonce.reachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
inputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.3 fields in
sourcetypestringOne of
local,networkcamerastringurlstring
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
camera_loginobject or nullKind
input, a network camera: its login, sealed on save and never answered;nullforgets it, missing keeps it.2 fields in
camera_loginuserstringpasswordstring
Responses
- 200 The sensor.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
_idstringkeystringlabelstringkindstringOne of
event,state,inputinputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.4 fields in
sourcetypestringOne of
local,networkcamerastringurlstringsecret_idstring read-only
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
collection_idstringfieldsobject[]fresh_minintegerkeepintegertoken_hintstringThe key’s last 4 characters.
signingbooleanreachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
last_atinteger or nullServer time of the newest reading.
last_viastring or nullHow the newest reading arrived.
One of
cloud,local,null
curl -X PATCH "https://www.wunderframe.com/api/v1/sensors/front-door" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"label": "Main door",
"fresh_min": 5
}'{
"_id": "3f9a1c0b7d2e4a51",
"key": "front-door",
"label": "Front door",
"kind": "event",
"collection_id": "col_1",
"fields": [],
"fresh_min": 2,
"keep": 20,
"token_hint": "x9Qa",
"signing": false,
"reach": {
"all": true
},
"local": {
"enabled": false,
"relay": true
},
"last_at": 1793450000000,
"last_via": "cloud"
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Delete an external sensor
/sensors/{key} sensorsThe sensor, its collection and its readings. Rules naming it then never hold.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Responses
- 200 How many readings went with it.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
okbooleanrecordsinteger
curl -X DELETE "https://www.wunderframe.com/api/v1/sensors/front-door" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"ok": false,
"records": 0
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Rotate a sensor’s key
/sensors/{key}/rotate sensorsA new key (and a new signing_key when signing is on), in the answer ONCE, and new local keys for the screens. The old ones stop working at once.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Responses
- 200 The sensor and its new key.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
_idstringkeystringlabelstringkindstringOne of
event,state,inputinputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.4 fields in
sourcetypestringOne of
local,networkcamerastringurlstringsecret_idstring read-only
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
collection_idstringfieldsobject[]fresh_minintegerkeepintegertoken_hintstringThe key’s last 4 characters.
signingbooleanreachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
last_atinteger or nullServer time of the newest reading.
last_viastring or nullHow the newest reading arrived.
One of
cloud,local,null
curl -X POST "https://www.wunderframe.com/api/v1/sensors/front-door/rotate" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"_id": "3f9a1c0b7d2e4a51",
"key": "front-door",
"label": "Front door",
"kind": "event",
"collection_id": "col_1",
"fields": [],
"fresh_min": 2,
"keep": 20,
"token_hint": "x9Qa",
"signing": false,
"reach": {
"all": true
},
"local": {
"enabled": false,
"relay": true
},
"last_at": 1793450000000,
"last_via": "cloud"
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Reset a sensor’s local keys
/sensors/{key}/reset-local sensorsNew local keys for every screen; the sensor’s key and signing key stay. LAN systems read the new keys from /endpoints.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Responses
- 200 The sensor and its new local key generation.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
_idstringkeystringlabelstringkindstringOne of
event,state,inputinputobjectKind
input(spec 55 §3): who senses, through what, and for which stages or zones.3 fields in
inputdevice_idstring or nullThe paired screen player that senses; null = another system with the sensor’s key.
sourceobject or nullA player’s camera:
{ type: "local", camera? }or{ type: "network", url }— an rtsp:// URL without a login (camera_login).secret_idis set by the server when a login is sealed.4 fields in
sourcetypestringOne of
local,networkcamerastringurlstringsecret_idstring read-only
targetsobject[]Up to 8 items
4 fields in
targetsstage_idstring requiredA stage or a zone.
sensesstring[] requiredareaobjectThe active part of the picture:
{ corners: [{x,y}×4] }, fractions clockwise from top-left. Set by calibrating on the device.calibrationobjectThe hand calibration (spec 18 §5b), measured on the device.
collection_idstringfieldsobject[]fresh_minintegerkeepintegertoken_hintstringThe key’s last 4 characters.
signingbooleanreachobjectWhere a sensor reaches. Missing or
{ all: true }= every stage. Ids that no longer exist are dropped on save.4 fields in
reachallbooleanstage_idsstring[]Up to 50 items
group_idsstring[]Stage groups and walls.
Up to 20 items
device_idsstring[]Single screens.
Up to 50 items
localobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
last_atinteger or nullServer time of the newest reading.
last_viastring or nullHow the newest reading arrived.
One of
cloud,local,null
curl -X POST "https://www.wunderframe.com/api/v1/sensors/front-door/reset-local" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"_id": "3f9a1c0b7d2e4a51",
"key": "front-door",
"label": "Front door",
"kind": "event",
"collection_id": "col_1",
"fields": [],
"fresh_min": 2,
"keep": 20,
"token_hint": "x9Qa",
"signing": false,
"reach": {
"all": true
},
"local": {
"enabled": false,
"relay": true
},
"last_at": 1793450000000,
"last_via": "cloud"
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}List the screens that take this sensor on the local network
/sensors/{key}/endpoints sensorsEvery screen the sensor reaches that reported a local listener in the last 24 hours, group leaders first. With the sensor’s own key (Bearer wfv.…) or an API key, each entry carries that screen’s kid and local key secret for signing (X-WF-Kid, X-WF-Timestamp, X-WF-Signature: v1=<hex HMAC-SHA256(base64url-decode(secret), "wf-local:v1\nPOST\n/wf/v1/sensors/readings\n" + timestamp + "\n" + id + "\n" + hex(sha256(body)))>). A signed-in member gets the addresses only.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.stage_idstring queryOnly this stage.
group_idstring queryOnly this stage group or wall.
device_idstring queryOnly this screen.
Responses
- 200 The screens.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 429 Too many requests for this key: wait
details.retry_after_sseconds (also inRetry-After). - 503 A service this call needs is not available right now.
Response fields (200)
sensorobject3 fields in
sensoridstringkeystringlocalobjectThe local network path: screens accept this sensor’s readings straight from the venue LAN.
2 fields in
localenabledbooleanDefault false.
relaybooleanA screen in a group passes a local reading on to its group. Default true.
endpointsobject[]9 fields in
endpointsdevice_idstringstage_idstringgroup_idstring or nullleaderbooleanIt leads its sync group now: post once, to the leader.
urlsstring[]last_seen_atintegerkidstringOnly for the sensor’s own key or an API key:
X-WF-Kid.secretstringOnly for the sensor’s own key or an API key: this screen’s local key (base64url, 32 bytes).
inputobjectKind
input: the screen’s input WebSocket (ws://<ip>:<port>/wf/v1/input) and the targets it accepts (X-WF-Target). Stream to a wall’s leader only.2 fields in
inputws_urlsstring[]targetsstring[]
server_nowintegercloudobjectKind
input, with the sensor’s own key: the fallback when no LAN path works — POST the frames toframes_urlfor one oftargets. Only the server publishes on the target channels; no publish token is handed out.2 fields in
cloudtargetsstring[]frames_urlstring
curl "https://www.wunderframe.com/api/v1/sensors/front-door/endpoints" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"sensor": {
"id": "a1b2c3d4e5f60718",
"key": "front-door",
"local": {
"enabled": true,
"relay": true
}
},
"endpoints": [
{
"device_id": "dev_lobby_1",
"stage_id": "stg_lobby",
"group_id": "grp_hall_b",
"leader": true,
"urls": [
"http://10.0.4.21:47772/wf/v1/sensors/readings"
],
"last_seen_at": 1793450000000
}
],
"server_now": 1793450000000
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Send an input device’s frames through the cloud
/sensors/{key}/frames sensorsKind input (spec 55 §5.3): up to 30 frames for one target, read as the screens read them and published on the target’s channel private-wf-input-{target}; a facts frame is also written as the sensor’s reading. For a system without a path on the venue network, and the console’s *Send a pointer to this stage*. A pointer over the cloud is slow (~100–300 ms); the LAN WebSocket ws://<screen>/wf/v1/input is the fast path. At most 1200 frames a minute.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Request body required
targetstring requiredframesstring or object[] requiredUp to 30 items
Responses
- 200 Published.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 413 Too large.
- 429 Too many requests for this key: wait
details.retry_after_sseconds (also inRetry-After).
Response fields (200)
publishedintegerrefusedobject[]2 fields in
refusedindexintegercodestring
factsinteger
curl -X POST "https://www.wunderframe.com/api/v1/sensors/front-door/frames" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target": "stg_side",
"frames": [
{
"t": "in",
"seq": 1,
"at": 1793450000123,
"ev": {
"kind": "pointer",
"phase": "move",
"x": 0.41,
"y": 0.66,
"source": "hand"
}
}
]
}'{
"published": 0,
"refused": [
{
"index": 0,
"code": "string"
}
],
"facts": 0
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Realtime tokens for an input device’s cloud channels
/sensors/{key}/input-token sensorsKind input (spec 55 §5.3). A signed-in member gets SUBSCRIBE tokens per target channel private-wf-input-{target}, to watch what a screen receives. The sensor’s own key or an API key is answered 403: only the server publishes on an input channel — POST the frames to /sensors/{key}/frames.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.targetstring queryOnly this stage or zone.
Responses
- 200 The grants.
- 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 429 Too many requests for this key: wait
details.retry_after_sseconds (also inRetry-After).
Response fields (200)
grantsobject[]6 fields in
grantssensor_idstringsensor_keystringtargetstringchannelstringprivate-wf-input-{target}.tokenstringexpires_ininteger
rt_ws_urlstring
curl "https://www.wunderframe.com/api/v1/sensors/front-door/input-token" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY"{
"grants": [
{
"sensor_id": "a1b2c3d4e5f60718",
"sensor_key": "side-camera",
"target": "stg_side",
"channel": "private-wf-input-stg_side",
"token": "…",
"expires_in": 3600
}
],
"rt_ws_url": "string"
}Error example
{
"error": {
"code": "unauthorized",
"message": "Missing or invalid API key."
}
}Set an input device’s active area for one target
/sensors/{key}/calibration sensorsKind input (spec 55 §2.1a, F.1). The part of the camera picture that maps onto the target: four corners {x, y} in 0..1 of the unmirrored source frame, clockwise from the top left, a convex quad covering at least 0.1 % of the picture; null = the whole picture. The sensing device follows through its keys at once. Corners only — never a picture.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Request body required
targetstring requiredA stage or zone the device senses for.
areaobject or null required1 fields in
areacornersobject[]Up to 4 items
2 fields in
cornersxnumberynumber
Responses
- 200 The target as stored.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
Response fields (200)
targetobject or null
curl -X PUT "https://www.wunderframe.com/api/v1/sensors/front-door/calibration" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target": "stg_side",
"area": {
"corners": [
{
"x": 0.1,
"y": 0.1
},
{
"x": 0.9,
"y": 0.1
},
{
"x": 0.9,
"y": 0.9
},
{
"x": 0.1,
"y": 0.9
}
]
}
}'{
"target": {}
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Ask the sensing device for its picture, encrypted to this browser tab
/sensors/{key}/calibration-preview sensorsKind input (spec 55 §2.1a, F.5). For the console’s calibration view: a signed-in editor or owner only (an API key gets 403 session_only). epk is the tab’s ECDH P-256 public key (base64url of the 65-byte point); the device seals small JPEGs to it (HKDF-SHA256 → AES-256-GCM) and publishes them on the returned channel, which only this member may subscribe to. With session it is a keepalive (every 30 s); the device stops 2 minutes after the last one. The server never holds a key that opens a picture.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Request body required
targetstring requiredepkstring requiredsessionstringPattern
^[0-9a-f]{32}$
Responses
- 200 The subscribe grant and the limits.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
- 429 Too many requests for this key: wait
details.retry_after_sseconds (also inRetry-After). - 503 A service this call needs is not available right now.
Response fields (200)
sessionstringchannelstringtokenstringexpires_inintegeruntilintegerserver_nowintegerrt_ws_urlstringdeviceobjectlimitsobject
curl -X POST "https://www.wunderframe.com/api/v1/sensors/front-door/calibration-preview" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"target": "stg_side",
"epk": "BKJQ3vk9TArunJjIp8ZJ-rvksdIAzanIfwvVNYIgK48VHsr00KvnjQW3TbD8hRObcTk8Jxs1zUqSCFxviE3mKf0"
}'{
"session": "string",
"channel": "string",
"token": "string",
"expires_in": 0,
"until": 0,
"server_now": 0,
"rt_ws_url": "string",
"device": {},
"limits": {}
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Stop the picture of a calibration view
/sensors/{key}/calibration-preview/stop sensorsSpec 55 F.5. Idempotent; only the member’s own session. Accepts a text/plain JSON body (navigator.sendBeacon).
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Request body required
sessionstring required
Responses
- 200 Stopped (or nothing ran).
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
Response fields (200)
okbooleanstoppedboolean
curl -X POST "https://www.wunderframe.com/api/v1/sensors/front-door/calibration-preview/stop" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"session": "0f1e2d3c4b5a69788796a5b4c3d2e1f0"
}'{
"ok": false,
"stopped": false
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Calibrate by pointing, or test pointing, on the target’s screens
/sensors/{key}/pointing-check sensorsKind input (spec 55 §2.1b, Appendix G). The console’s *Calibrate by pointing* and *Test pointing*: a signed-in editor or owner only (an API key gets 403 session_only). start (target, mode calibrate | test) makes the sensing device decide through the cloud for that target (and, calibrating, with the whole picture and absolute pointing) and answers the subscribe grant for the target’s input channel and the stage’s hand mapping. show puts a ring (step { n, of, x, y }), a hit marker (hit { x, y, ok }) and a note on the target’s screens (0–1 of the target). keepalive every 15 s; everything ends by itself 60 s after the last word. stop ends it at once. cancel (target optional) is the console’s Stop: it ends whatever runs for this input device — a screen’s calibration wizard (closed at once) or any member’s check. A start blocked by a running one answers 409 check_running with details.running { mode, target, stage, by, until }. Accepts a text/plain JSON body (navigator.sendBeacon).
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.
Request body required
actionstring requiredOne of
start,show,keepalive,stop,canceltargetstringmodestringOne of
calibrate,testsessionstringPattern
^[0-9a-f]{32}$stepobjecthitobjectnotestring
Responses
- 200 The check (start), or
{ ok, until }/{ ok, stopped }. - 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 409 Conflicts with the current state.
- 429 Too many requests for this key: wait
details.retry_after_sseconds (also inRetry-After). - 503 A service this call needs is not available right now.
curl -X POST "https://www.wunderframe.com/api/v1/sensors/front-door/pointing-check" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "start",
"target": "stg_side",
"mode": "calibrate"
}'{}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}Post a reading
/sensors/{key}/readings sensorsAn empty body is a firing. id (8 to 64 of A-Z a-z 0-9 _ -) makes the reading idempotent for 48 h: the same id twice is one record (duplicate: true). values are only the sensor’s own fields, stored as text; source_at is kept but never trusted for rules — the server stamps at. At most 8 KB and 60 readings a minute per sensor.
Parameters
keystring required pathThe sensor’s key, e.g.
front-door.idstring queryThe sensor id, for a signed webhook (
Wf-Signature) without Authorization.
Request body
idstringPattern
^[A-Za-z0-9_-]{8,64}$valuesmap of string or numbersource_atstring (date-time)
Responses
- 202 Taken.
- 400 The request is invalid —
details.fieldnames the field when there is one. - 401 Missing or invalid API key.
- 403 The key lacks the scope, or the role is read-only.
- 404 Not found in this workspace.
- 413 Too large.
- 429 Too many requests for this key: wait
details.retry_after_sseconds (also inRetry-After). - 503 A service this call needs is not available right now.
Response fields (202)
okbooleanatstring (date-time)
curl -X POST "https://www.wunderframe.com/api/v1/sensors/front-door/readings" \
-H "Authorization: Bearer $WUNDERFRAME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"values": {
"length": 12
}
}'{
"ok": false,
"at": "2026-09-14T09:00:00Z"
}Error example
{
"error": {
"code": "invalid",
"message": "The request is invalid — `details.field` names the field when there is one."
}
}