REST API reference
Every operation the Hypercolor daemon serves over HTTP, generated from its OpenAPI document: parameters, bodies, statuses, and schemas.
The Hypercolor daemon serves a REST API over /api/v1 on port 9420 by default. The same daemon also speaks WebSocket, the CLI, and an MCP server; this page covers HTTP only.
#Base URL and surfaces 🎯
http://localhost:9420Two paths sit outside the /api/v1 tree:
| Path | Purpose |
|---|---|
/health | Liveness and readiness check. No authentication and no envelope. |
/mcp | MCP server (Streamable HTTP), mounted only when mcp.enabled is true. |
Everything else lives under /api/v1. Path parameters use brace syntax, so a device route is /api/v1/devices/{id}, not :id.
#Conventions
- Envelope. A JSON success wraps its payload as
{ data, meta }and an error as{ error, meta }. Envelope & errors documents both shapes, themetafields, and every error code. A card whose body reads “no envelope” answers the bare type instead. - Collections. List routes put
itemsandtotalunderdata, plus apageblock on the routes that genuinely page. See list responses. - Authentication. Loopback clients need no key. Remote clients send
Authorization: Bearer <key>:HYPERCOLOR_API_KEYgrants control andHYPERCOLOR_READ_API_KEYgrants reads. See auth & security. - Concurrency. Structural scene writes accept the scene fence as
If-Match, so a stale write returns412 Precondition Failedinstead of overwriting a concurrent edit. Control-value patches never useIf-Match. See Zone API and concurrency.
This reference covers 132 operations on 96 paths. It is generated from the daemon’s OpenAPI document, so it lists exactly what the router serves. Request and response types link to their definitions in REST schemas.
#Shared error responses
The document declares these statuses on every operation, each answering with the error envelope (ApiErrorBody). The cards below list only the statuses an operation adds.
| Status | Meaning |
|---|---|
400 | Malformed request |
401 | Authentication required |
403 | Insufficient permission |
404 | Resource not found |
409 | State conflict |
412 | Precondition failed |
422 | Validation failed |
429 | Request rate exceeded |
500 | Internal daemon error |
#System
Daemon identity, health, and status.
Use this in your reconnect loop and readiness probes.
The daemon answers as soon as its port is bound, before startup finishes. While it is still starting, /health returns 503 with "status": "starting" and a startup block naming the current phase, a sequence counter that advances each time startup completes a unit of work (a phase, or a step inside one such as loading one effect file or compiling one compositor pipeline), and, while a step is running, a detail naming it. Every other route returns 503 service_unavailable. Only 200 means the daemon is ready.
{
"status": "starting",
"version": "0.6.2",
"uptime_seconds": 4,
"checks": { "render_loop": "starting", "device_backends": "starting", "event_bus": "starting" },
"startup": {
"phase": "starting_render_thread",
"sequence": 17,
"detail": "SparkleFlinger GPU area horizontal tile scan"
}
}Responses
| Status | Body | Meaning |
|---|---|---|
200 | HealthResponse, no envelope | Success |
503 | HealthResponse, no envelope | Service unavailable |
Fields: HealthResponse
| Field | Type | Required |
|---|---|---|
checks | HealthChecks | yes |
startup | DaemonStartupProgress or null | no |
status | string | yes |
uptime_seconds | integer (int64) | yes |
version | string | yes |
identity is always present so discovery probes can verify the daemon. status is present for loopback clients and requests with a valid read or control key. Anonymous remote requests to a keyed daemon receive the public identity without the status block.
{
"data": {
"identity": {
"instance_id": "studio-daemon",
"instance_name": "Studio",
"version": "0.3.2",
"device_count": 3,
"auth_required": true
},
"status": {
"running": true,
"version": "0.3.2",
"device_count": 3,
"effect_count": 59,
"active_effect": "borealis",
"global_brightness": 85,
"audio_available": true,
"screen_capture_capacity": {
"admission_enforced": true,
"physical_transition_byte_capacity": 268435456,
"physical_transition_backend_capacity": 4,
"physical_reserved_bytes": 33177600,
"physical_available_bytes": 235257856,
"steady_total_byte_budget": 134217728,
"steady_total_backend_capacity": 2,
"steady_publication_byte_budget": 134217728,
"transition_publication_backend_capacity": 2
},
"input": {
"enabled": true,
"host_capture_registered": true,
"host_capturing": true,
"devices_opened": 3,
"devices_denied": 1,
"degraded": "access_denied",
"backends": ["evdev"],
"source_graph_generation": 2,
"sources": []
},
"render_loop": {
"state": "running",
"target_fps": 60,
"capacity_fps": 60.0,
"delivered_fps": 59.8,
"actual_fps": 60.0,
"output_demand": {
"parked": false,
"output_devices": 3,
"stream_receivers": 2,
"input_event_streams": 0,
"demand_holds": 0,
"parks_total": 1,
"last_wake_reason": "output_consumer"
}
}
}
},
"meta": {
"api_version": "1.0",
"request_id": "req_019b1f9a-3f4b-7c8d-a2e1-91b4c0d86a25",
"timestamp": "2026-06-25T18:03:11.482Z"
}
}render_loop.output_demand says what consumes rendered frames. With no device, stream, preview, or capture attached the loop parks: parked turns true, idle_reason reads no_output_consumers, parked_ms counts up, and delivered_fps and actual_fps read zero until a consumer appears and the loop resumes at its current tier.
status.effect_count reflects whatever the registry holds at request time (native built-ins plus discovered HTML effects); treat it as live, not a fixed product number.
status.screen_capture_capacity reports the byte fences that gate screen-capture publication admission. The fences are installed on Linux and Windows, where admission_enforced is true and the capacity fields are populated; on other platforms the object collapses to { "admission_enforced": false } with every fence field omitted. When an analysis plan is active, additional analysis_* fields describe its resolution, byte budgets, and compute capacity.
status.input is the host keyboard and mouse capture health snapshot. enabled is the consent gate from config, host_capturing reports whether a host backend is actively reading input, and devices_opened versus devices_denied separates “input is off” from “input is on but blocked”. The denied counter counts device nodes that are present but unreadable, a Linux-specific failure (udev rules missing); Windows has no per-node denial, so its session-level failure arrives through degraded instead, as one of no_interactive_session, access_denied, or unavailable. Each entry in sources carries per-source lifecycle, freshness, and issue detail.
status.capabilities names what this daemon’s scene surface can do. A client that may be talking to an older daemon reads it and hides the control a missing entry gates, instead of sending a request that daemon would misread.
| Capability | The daemon |
|---|---|
multi-zone-sampling | samples each zone’s outputs from that zone’s own canvas |
zone-crud | serves the zone create, read, patch, and delete routes |
zone-device-assignment | serves the member assignment and removal routes |
zone-layout-edit | serves PUT /scene/zones/{zone}/layout |
zone-preview-frames | publishes per-zone preview frames |
scene-unassigned-behavior-write | accepts unassigned_behavior on PATCH /scene |
layer-scope | accepts scope on the layer routes, limiting a layer to some of its zone’s outputs |
screen-layers | renders a layer scoped only to screens at each panel’s own size, as that screen’s face |
A build with release notifications adds oss-release-notifications. The list grows over time, so ignore entries you do not recognize.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SystemResource | Success |
Fields: SystemResource
| Field | Type | Required |
|---|---|---|
identity | ServerInfo | yes |
status | SystemStatus or null | no |
Capture devices for reactive effects. Pick the monitor of your output, not a microphone, if you want lights to follow what’s playing.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: AudioDevicesResponse | Success |
Fields: AudioDevicesResponse
| Field | Type | Required |
|---|---|---|
current | string | yes |
devices | array of AudioDeviceInfo | yes |
Entries come from the daemon’s audit trail. Each has the time, transport (http, websocket, or mcp), method, path without its query string, MCP tool name, status, the socket peer’s address, any X-Forwarded-For or X-Real-IP claim (as forwarded_for, never trusted for remote), user agent, and the durable stores the request changed. A request whose client disconnects before the response is recorded with status 499. Request bodies, query strings, credentials, and tool arguments are never recorded. The same entries live on disk in ${XDG_STATE_HOME:-~/.local/state}/hypercolor/logs/api-audit.jsonl; see Undoing an unwanted change.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | integer (int32) or null | no | Most entries to return, newest first. Defaults to 100, at most 1000. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: AuditEntryListResponse | Success |
Item fields: AuditEntry
| Field | Type | Required | Description |
|---|---|---|---|
forwarded_for | string or null | no | What the client claimed through X-Forwarded-For or X-Real-IP, verbatim and capped at 256 characters. Only as trustworthy as the process that sent it. |
latency_ms | number (double) | yes | Handling time in milliseconds. |
method | string | yes | HTTP method, or tools/call for MCP. |
path | string | yes | Request path without its query string, or the MCP mount path. |
remote | string | yes | The socket peer’s address, in-process for trusted in-process calls, or unknown when the transport has none. Never read from a header. |
status | integer (int32) | yes | Response status. MCP tool calls report 200 for success and the closest HTTP status for a tool error (400, 404, 409, or 500). A request dropped before its response, as when the client disconnects, reports 499. |
stores | array of string | no | Durable stores whose bytes this request changed, by inventory name. |
timestamp | string | yes | When the request finished, RFC 3339 UTC with milliseconds. |
tool | string or null | no | MCP tool name. |
transport | AuditTransport | yes | |
user_agent | string | yes | Client User-Agent, capped at 256 characters, empty when absent. |
Competing software includes SignalRGB, L-Connect, and Razer Synapse. The response carries supported (false where the host can’t list running software, macOS today), scanned, scan_failed (the latest scan failed, so conflicts holds the last successful result), and conflicts: each entry has an id, a display name, the process and service names it matched, the driver_ids it competes with (or all_drivers), whether it drives SMBus lighting, and a remedy for the user. The daemon rescans every 30 seconds, after discovery, and when a device fails, and publishes software_conflicts_changed whenever that status changes. See Conflicting software.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SoftwareConflictsStatus | Success |
Fields: SoftwareConflictsStatus
| Field | Type | Required | Description |
|---|---|---|---|
conflicts | array of SoftwareConflict | yes | Competing software that is running now, in catalog order. |
scan_failed | boolean | no | Whether the latest scan failed. conflicts then still holds the last successful scan’s result rather than claiming nothing runs. |
scanned | boolean | yes | Whether a scan has finished since the daemon started. |
supported | boolean | yes | Whether this host can list running software. When false, conflicts is always empty and proves nothing. |
Returns the same body as GET /api/v1/system/conflicts.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SoftwareConflictsStatus | Success |
Fields: SoftwareConflictsStatus
| Field | Type | Required | Description |
|---|---|---|---|
conflicts | array of SoftwareConflict | yes | Competing software that is running now, in catalog order. |
scan_failed | boolean | no | Whether the latest scan failed. conflicts then still holds the last successful scan’s result rather than claiming nothing runs. |
scanned | boolean | yes | Whether a scan has finished since the daemon started. |
supported | boolean | yes | Whether this host can list running software. When false, conflicts is always empty and proves nothing. |
Reports installation path and version, configured SDK endpoints, negotiated protocol versions, controller counts, permission checks, and installation hints, plus native and bridge coverage and the output-disabled route count. Endpoints are probed even when the bridge is disabled, so setup can check readiness before enabling output.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: OpenRgbStatus | Success |
Fields: OpenRgbStatus
| Field | Type | Required |
|---|---|---|
binary_path | string or null | no |
binary_version | string or null | no |
bridge_config | DriverConfigEntry | yes |
compiled | boolean | yes |
coverage | array of DeviceCoverageRow | yes |
enabled | boolean | yes |
install_hints | array of OpenRgbInstallHint | yes |
output_disabled_count | integer | yes |
permission_checks | array of OpenRgbPermissionStatus | yes |
platform | string | yes |
probes | array of OpenRgbEndpointStatus | yes |
CPU temperature, GPU load, RAM usage, and raw component readings. These feed sensor-bound effect controls.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SystemSnapshot | Success |
Fields: SystemSnapshot
| Field | Type | Required | Description |
|---|---|---|---|
components | array of SensorReading | yes | Raw component readings collected from the host. |
cpu_load_percent | number (float) | yes | Aggregate CPU load across all cores (0.0–100.0). |
cpu_loads | array of number (float) | yes | Per-core CPU load percentages. |
cpu_temp_celsius | number (float) or null | no | CPU package temperature, if available. |
gpu_load_percent | number (float) or null | no | GPU load percentage, if available. |
gpu_temp_celsius | number (float) or null | no | GPU temperature, if available. |
gpu_vram_used_mb | number (float) or null | no | GPU VRAM used in megabytes, if available. |
polled_at_ms | integer (int64) | yes | Unix timestamp in milliseconds when the snapshot was polled. |
ram_total_mb | number (double) | yes | RAM total in megabytes. |
ram_used_mb | number (double) | yes | RAM used in megabytes. |
ram_used_percent | number (float) | yes | RAM usage percentage (0.0–100.0). |
#Drivers
Driver module inventory and capabilities.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DriverSummaryListResponse | Success |
Item fields: DriverSummary
| Field | Type | Required |
|---|---|---|
config_key | string | yes |
control_surface_id | string or null | no |
control_surface_path | string or null | no |
descriptor | DriverModuleDescriptor | yes |
enabled | boolean | yes |
presentation | DriverPresentation | yes |
protocols | array of DriverProtocolDescriptor | no |
Driver settings are read here rather than through GET /api/v1/config, which masks every drivers entry.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DriverConfigResponse | Success |
Fields: DriverConfigResponse
| Field | Type | Required |
|---|---|---|
config_key | string | yes |
configurable | boolean | yes |
current | DriverConfigEntry | yes |
default | DriverConfigEntry or null | no |
driver_id | string | yes |
#Devices
Tracked device inventory.

This route genuinely pages: limit defaults to 50 and anything above 200 is rejected with validation_error. Follow page.has_more, advancing offset by the number of items you received, until it reads false. Add ?include=attachments to embed each device’s attachment profile in the same response.
{
"data": {
"items": [
{
"id": "razer-blackwidow-v4-001",
"layout_device_id": "razer-blackwidow-v4-001",
"name": "Razer BlackWidow V4",
"status": "connected",
"brightness": 100,
"total_leds": 126,
"segments": []
}
],
"total": 1,
"page": {
"offset": 0,
"limit": 50,
"has_more": false
}
},
"meta": {
"api_version": "1.0",
"request_id": "req_019b1f9a-3f4b-7c8d-a2e1-91b4c0d86a25",
"timestamp": "2026-06-25T18:03:11.482Z"
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
offset | query | integer or null | no | |
limit | query | integer or null | no | |
status | query | string or null | no | |
backend_id | query | string or null | no | |
driver | query | string or null | no | |
q | query | string or null | no | Free-text filter over device name and model. |
include | query | string or null | no | Comma-separated summary expansions. The only supported value is attachments. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeviceSummaryListResponse | Success |
Item fields: DeviceSummary
| Field | Type | Required | Description |
|---|---|---|---|
attachments | DeviceComponentsResponse or null | no | |
auth | DeviceAuthSummary or null | no | |
bridge | BridgeDeviceSummary or null | no | |
brightness | integer (int32) | yes | |
connection | DeviceConnectionSummary | no | |
display_rotation | DisplayRotation or null | no | |
experimental | boolean | no | Whether the driver module or protocol driving this device is labeled experimental: nobody has run it on real hardware yet (Spec 89). Omitted when false. |
firmware_version | string or null | no | |
id | string | yes | |
layout_device_id | string | yes | |
name | string | yes | |
origin | DeviceOrigin | yes | |
presentation | DriverPresentation | yes | |
segments | array of SegmentSummary | no | |
status | string | yes | |
total_leds | integer (int32) | yes |
Joins native devices, OpenRGB routes, and unclaimed hardware by physical identity. Each row reports its native and bridge matches and active owner: native, bridge, none, or conflict. A bridge match includes its effective output state and disabled reason.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeviceCoverageRowListResponse | Success |
Item fields: DeviceCoverageRow
| Field | Type | Required | Description |
|---|---|---|---|
active | CoverageActive | yes | |
bridge | CoverageBridgeDevice or null | no | |
identity | CoverageIdentity | yes | |
native | CoverageNativeDevice or null | no | |
unclaimed | boolean | yes | Whether the unclaimed USB inventory also lists this hardware. |
Runs a discovery scan across every backend and returns the newly found devices.
Each entry in scanners has a status of ok, partial, or error. A partial scanner may have missed devices and lists why in gaps. What it did see still applies. A gap that names one device holds only that device, and any other gap keeps all of that scanner’s devices from being reported vanished.
Request body (application/json, optional): DiscoverRequest.
| Field | Type | Required | Description |
|---|---|---|---|
targets | array of string or null | no | Discovery targets to scan; omitted scans every enabled target. |
timeout_ms | integer (int64) or null | no | |
wait | boolean or null | no | Block until the scan finishes instead of returning a scan id. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DiscoverResponse | Success |
202 | data: DiscoverResponse | Accepted; the work completes asynchronously |
Deletes a saved controller by its layout identity, even when the hardware is absent from device tracking. Removal clears its outputs from all layouts and scenes, including the default scene. When retained ownership identifies the physical controller, removal also clears its attachments and logical segments. An empty identity returns 422; repeating a completed removal succeeds. Temporary disconnection preserves saved content.
Request body (application/json, required): ForgetDeviceRequest.
| Field | Type | Required |
|---|---|---|
layout_device_id | string | yes |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteDeviceResponse | Success |
Fields: DeleteDeviceResponse
| Field | Type | Required |
|---|---|---|
id | string | yes |
removed | boolean | yes |
Each item includes vendor and product IDs, identifying strings, bus path, interface classes, and a claimable_by driver when native support exists but is disabled. Subscribe to unclaimed_devices_changed to refresh after arrivals and removals.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: UnclaimedDeviceListResponse | Success |
Item fields: UnclaimedDevice
| Field | Type | Required | Description |
|---|---|---|---|
bus_path | string or null | no | Host bus path (<bus>-<port chain>), when the platform reports one. |
claimable_by | string or null | no | |
experimental | boolean | no | Whether the descriptor claimable_by refers to is labeled experimental: nobody has run it on real hardware yet (Spec 89). |
interface_classes | array of integer (int32) | no | USB interface class codes of the active configuration, sorted and deduplicated; empty where the platform does not expose them. |
manufacturer | string or null | no | Who made the device: its manufacturer string when the host reports a non-blank one, otherwise the company that owns vendor_id in the curated vendor table. Absent when neither is known, which is the usual case on Windows for vendors outside that table. |
product | string or null | no | |
product_id | integer (int32) | yes | |
serial | string or null | no | |
vendor_id | integer (int32) | yes |
Segments, LED layout, firmware version, and attachment configuration.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeviceSummary | Success |
Fields: DeviceSummary
| Field | Type | Required | Description |
|---|---|---|---|
attachments | DeviceComponentsResponse or null | no | |
auth | DeviceAuthSummary or null | no | |
bridge | BridgeDeviceSummary or null | no | |
brightness | integer (int32) | yes | |
connection | DeviceConnectionSummary | no | |
display_rotation | DisplayRotation or null | no | |
experimental | boolean | no | Whether the driver module or protocol driving this device is labeled experimental: nobody has run it on real hardware yet (Spec 89). Omitted when false. |
firmware_version | string or null | no | |
id | string | yes | |
layout_device_id | string | yes | |
name | string | yes | |
origin | DeviceOrigin | yes | |
presentation | DriverPresentation | yes | |
segments | array of SegmentSummary | no | |
status | string | yes | |
total_leds | integer (int32) | yes |
Updates name, enabled, brightness (0 to 100), and, for display-capable devices, display_rotation (deg0, deg90, deg180, deg270), which is how the panel is mounted so everything drawn on it turns to read upright. Sending display_rotation for hardware without a panel answers 422.
Path parameters: id (string).
Request body (application/json, required): UpdateDeviceRequest.
| Field | Type | Required |
|---|---|---|
brightness | integer (int32) or null | no |
display_rotation | DisplayRotation or null | no |
enabled | boolean or null | no |
name | string or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeviceSummary | Success |
Fields: DeviceSummary
| Field | Type | Required | Description |
|---|---|---|---|
attachments | DeviceComponentsResponse or null | no | |
auth | DeviceAuthSummary or null | no | |
bridge | BridgeDeviceSummary or null | no | |
brightness | integer (int32) | yes | |
connection | DeviceConnectionSummary | no | |
display_rotation | DisplayRotation or null | no | |
experimental | boolean | no | Whether the driver module or protocol driving this device is labeled experimental: nobody has run it on real hardware yet (Spec 89). Omitted when false. |
firmware_version | string or null | no | |
id | string | yes | |
layout_device_id | string | yes | |
name | string | yes | |
origin | DeviceOrigin | yes | |
presentation | DriverPresentation | yes | |
segments | array of SegmentSummary | no | |
status | string | yes | |
total_leds | integer (int32) | yes |
Removes a device from tracking and deletes its saved outputs, attachments, and logical segments from all layouts and scenes, including the default scene.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteDeviceResponse | Success |
Fields: DeleteDeviceResponse
| Field | Type | Required |
|---|---|---|
id | string | yes |
removed | boolean | yes |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeviceComponentsResponse | Success |
Fields: DeviceComponentsResponse
| Field | Type | Required |
|---|---|---|
bindings | array of ComponentBindingSummary | no |
device_id | string | yes |
device_name | string | yes |
slots | array of ComponentSlot | no |
suggested_zones | array of ComponentSuggestedZone | no |
Send "validate_only": true to return the computed profile without persisting it, publishing events, or changing the live device.
Path parameters: id (string).
Request body (application/json, required): UpdateAttachmentsRequest.
| Field | Type | Required | Description |
|---|---|---|---|
bindings | array of ComponentBinding | no | |
validate_only | boolean | no | Validate and resolve the profile without applying any side effects. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeviceComponentsUpdateResponse | Success |
Fields: DeviceComponentsUpdateResponse
| Field | Type | Required |
|---|---|---|
bindings | array of ComponentBindingSummary | no |
device_id | string | yes |
device_name | string | yes |
needs_layout_update | boolean | yes |
slots | array of ComponentSlot | no |
suggested_zones | array of ComponentSuggestedZone | no |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteAttachmentsResponse | Success |
Fields: DeleteAttachmentsResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
device_id | string | yes |
Path parameters: id, slot (strings).
Request body (application/json, optional): IdentifyAttachmentRequest.
Every field of IdentifyRequest, plus:
| Field | Type | Required |
|---|---|---|
binding_index | integer or null | no |
instance | integer (int32) or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: IdentifyAttachmentResponse | Success |
Fields: IdentifyAttachmentResponse
| Field | Type | Required |
|---|---|---|
binding_index | integer | yes |
color | string or null | no |
device_id | string | yes |
duration_ms | integer (int64) | yes |
identifying | boolean | yes |
instance | integer (int32) or null | no |
slot_id | string | yes |
Flashes the device’s LEDs so you can spot it physically.
Path parameters: id (string).
Request body (application/json, optional): IdentifyRequest.
| Field | Type | Required |
|---|---|---|
color | string or null | no |
duration_ms | integer (int64) or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: IdentifyDeviceResponse | Success |
Fields: IdentifyDeviceResponse
| Field | Type | Required |
|---|---|---|
color | string or null | no |
device_id | string | yes |
duration_ms | integer (int64) | yes |
identifying | boolean | yes |
Starts pairing for a device that requires authentication (Hue link button, Nanoleaf hold-to-pair token). This is the credential path for network devices; see the per-vendor hardware guides for the timed pairing windows.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: PairDeviceResponse | Success |
Fields: PairDeviceResponse
| Field | Type | Required | Description |
|---|---|---|---|
activated | boolean | no | Whether the device was connected and started rendering as part of the pairing. |
device | DeviceSummary or null | no | |
message | string | yes | |
status | string | yes |
Forgets the device’s stored pairing credentials.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeletePairingResponse | Success |
Fields: DeletePairingResponse
| Field | Type | Required | Description |
|---|---|---|---|
device | DeviceSummary or null | no | |
disconnected | boolean | no | Whether forgetting the credentials also dropped a live connection. |
message | string | yes | |
status | string | no |
Path parameters: id, segment (strings).
Request body (application/json, optional): IdentifyRequest.
| Field | Type | Required |
|---|---|---|
color | string or null | no |
duration_ms | integer (int64) or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: IdentifySegmentResponse | Success |
Fields: IdentifySegmentResponse
| Field | Type | Required |
|---|---|---|
color | string or null | no |
device_id | string | yes |
duration_ms | integer (int64) | yes |
identifying | boolean | yes |
segment | string | yes |
segment_name | string | yes |
#Control surfaces
Generic control surfaces and typed value mutation.
Control surfaces expose typed fields and actions for dynamic device or driver configuration (WLED protocol selection, Hue bridge IP, and the like). The web UI reads these to render device-specific settings panels.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
device_id | query | string or null | no | |
driver_id | query | string or null | no | |
include_driver | query | boolean or null | no | Also include the device’s owning driver surface. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ControlSurfaceDocumentListResponse | Success |
Item fields: ControlSurfaceDocument
| Field | Type | Required | Description |
|---|---|---|---|
action_availability | BTreeMap | yes | Resolved availability keyed by action ID. |
actions | array of ControlActionDescriptor | yes | Action descriptors. |
availability | BTreeMap | yes | Resolved availability keyed by field ID. |
fields | array of ControlFieldDescriptor | yes | Field descriptors. |
groups | array of ControlGroupDescriptor | yes | Semantic groups for fields and actions. |
revision | u64 | yes | Current descriptor/value revision. |
schema_version | integer (int32) | yes | Control-surface schema version. |
scope | ControlSurfaceScope | yes | Scope represented by this document. |
surface_id | String | yes | Stable surface identifier. |
values | object | yes | Current field values keyed by field ID. |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ControlSurfaceDocument | Success |
Fields: ControlSurfaceDocument
| Field | Type | Required | Description |
|---|---|---|---|
action_availability | BTreeMap | yes | Resolved availability keyed by action ID. |
actions | array of ControlActionDescriptor | yes | Action descriptors. |
availability | BTreeMap | yes | Resolved availability keyed by field ID. |
fields | array of ControlFieldDescriptor | yes | Field descriptors. |
groups | array of ControlGroupDescriptor | yes | Semantic groups for fields and actions. |
revision | u64 | yes | Current descriptor/value revision. |
schema_version | integer (int32) | yes | Control-surface schema version. |
scope | ControlSurfaceScope | yes | Scope represented by this document. |
surface_id | String | yes | Stable surface identifier. |
values | object | yes | Current field values keyed by field ID. |
Actions are typed operations such as Discover, Sync, and Reset.
Path parameters: id, action (strings).
Request body (application/json, required): InvokeControlActionRequest.
| Field | Type | Required |
|---|---|---|
input | BTreeMap | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ControlActionResult | Success |
Fields: ControlActionResult
| Field | Type | Required | Description |
|---|---|---|---|
action_id | String | yes | Action that ran. |
result | object or null | no | Optional typed result. |
revision | u64 | yes | Resulting surface revision. |
status | ControlActionStatus | yes | Action status. |
surface_id | String | yes | Target surface. |
The body is the same control-patch shape the layer-control route takes, keyed by field id. Control surfaces have no input bindings, so a non-empty clear_bindings is rejected here.
{
"values": {
"protocol": { "kind": "enum", "value": "ddp" },
"ip": { "kind": "ip", "value": "10.0.0.50" }
}
}Path parameters: id (string).
Request body (application/json, required): PatchControlsRequest.
| Field | Type | Required |
|---|---|---|
clear_bindings | array of string | no |
values | map of ControlValue | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ApplyControlChangesResponse | Success |
Fields: ApplyControlChangesResponse
| Field | Type | Required | Description |
|---|---|---|---|
accepted | array of AppliedControlChange | yes | Accepted changes after driver normalization. |
impacts | array of ApplyImpact | yes | Dynamic impacts produced by the transaction. |
previous_revision | u64 | yes | Previous revision. |
rejected | array of RejectedControlChange | yes | Rejected changes. |
revision | u64 | yes | New revision. |
surface_id | String | yes | Target surface. |
values | object | yes | Current values after the transaction. |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ControlSurfaceDocument | Success |
Fields: ControlSurfaceDocument
| Field | Type | Required | Description |
|---|---|---|---|
action_availability | BTreeMap | yes | Resolved availability keyed by action ID. |
actions | array of ControlActionDescriptor | yes | Action descriptors. |
availability | BTreeMap | yes | Resolved availability keyed by field ID. |
fields | array of ControlFieldDescriptor | yes | Field descriptors. |
groups | array of ControlGroupDescriptor | yes | Semantic groups for fields and actions. |
revision | u64 | yes | Current descriptor/value revision. |
schema_version | integer (int32) | yes | Control-surface schema version. |
scope | ControlSurfaceScope | yes | Scope represented by this document. |
surface_id | String | yes | Stable surface identifier. |
values | object | yes | Current field values keyed by field ID. |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ControlSurfaceDocument | Success |
Fields: ControlSurfaceDocument
| Field | Type | Required | Description |
|---|---|---|---|
action_availability | BTreeMap | yes | Resolved availability keyed by action ID. |
actions | array of ControlActionDescriptor | yes | Action descriptors. |
availability | BTreeMap | yes | Resolved availability keyed by field ID. |
fields | array of ControlFieldDescriptor | yes | Field descriptors. |
groups | array of ControlGroupDescriptor | yes | Semantic groups for fields and actions. |
revision | u64 | yes | Current descriptor/value revision. |
schema_version | integer (int32) | yes | Control-surface schema version. |
scope | ControlSurfaceScope | yes | Scope represented by this document. |
surface_id | String | yes | Stable surface identifier. |
values | object | yes | Current field values keyed by field ID. |
#Effects
Effect catalog and runtime control.

Live effect state belongs to GET /scene. Patch controls through the real layer id embedded in that document, and clear the show through POST /scene/clear. Spatial layout selection belongs to scene.layout_id; effects do not carry layout associations.
The catalog combines around a dozen native Rust built-ins with the HTML and GLSL effects discovered on disk. Don’t hardcode the count; read data.total. The catalog answers complete, so it carries no data.page block.
{
"data": {
"items": [
{
"id": "borealis",
"name": "Borealis",
"description": "Aurora borealis with domain-warped fBm noise",
"author": "Hypercolor",
"category": "ambient",
"source": "html",
"runnable": true,
"tags": ["ambient", "shader"],
"version": "1.0.0",
"audio_reactive": false
}
],
"total": 59
},
"meta": {
"api_version": "1.0",
"request_id": "req_019b1f9a-3f4b-7c8d-a2e1-91b4c0d86a25",
"timestamp": "2026-06-25T18:03:11.482Z"
}
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
category | query | EffectCategory or null | no | Exact effect category. |
audio_reactive | query | boolean or null | no | Declared audio reactivity. |
screen_reactive | query | boolean or null | no | Declared screen reactivity. |
input_reactive | query | boolean or null | no | Declared input reactivity. |
source | query | EffectSourceKind or null | no | Rendering implementation. |
q | query | string or null | no | Case-insensitive substring over name, description, author, tags. |
include | query | string or null | no | Comma-separated expansions: controls, presets. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectSummaryListResponse | Success |
Item fields: EffectSummary
| Field | Type | Required |
|---|---|---|
audio_reactive | boolean | no |
author | string | yes |
capabilities | EffectCapabilitySet | no |
category | EffectCategory | yes |
controls | array of ControlDefinition or null | no |
cover_image_url | string or null | no |
description | string | yes |
id | string | yes |
input_reactive | boolean | no |
name | string | yes |
presets | array of PresetTemplate or null | no |
runnable | boolean | yes |
source | EffectSourceKind | yes |
tags | array of string | yes |
version | string | yes |
Holds what HTML effect pages printed: console.* output and uncaught script errors, oldest first. Locations in an effect’s own page point at the author’s source file and line, not the engine’s runtime copy with its injected preamble. The daemon keeps the most recent 512 messages.
{
"entries": [
{
"seq": 42,
"timestamp_ms": 1760300000000,
"level": "error",
"message": "TypeError: ctx is null at file:///home/me/fx/ember.html:57:9",
"effect_name": "Ember",
"effect_id": "0199c1f2-3a4b-7c5d-8e6f-0a1b2c3d4e5f",
"source_file": "ember.html",
"line": 57
}
],
"next_seq": 42,
"truncated": false
}This is a cursor window, not a paged list. Pass next_seq back as after to read only newer output. truncated: true means messages after your cursor were evicted before the read.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
after | query | integer (int64) | no | Return only messages recorded after this cursor (a previous response’s next_seq). Omit or pass 0 for everything retained. |
limit | query | integer | no | Most messages to return, 1 to 500. Defaults to 100. |
effect | query | string | no | Effect id or name to narrow to. |
level | query | EffectConsoleLevel | no | Lowest severity to include: debug (default), log, warn, or error. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectConsoleResponse | Success |
Fields: EffectConsoleResponse
| Field | Type | Required | Description |
|---|---|---|---|
entries | array of EffectConsoleEntry | yes | Matching messages after the cursor, oldest first. |
next_seq | integer (int64) | yes | Cursor for the next read. |
truncated | boolean | yes | Whether output after the requested cursor was evicted before this read, so some messages were missed. |
Gets a freshly built HTML bundle into the library without a manual file copy. Uploading a file name that is already installed replaces that effect in place and keeps its id, so a scene already running it reloads the new page on its next frame.
Request body (multipart/form-data, required): EffectInstallForm.
| Field | Type | Required | Description |
|---|---|---|---|
file | binary | yes | The HTML effect document, sent as a file part with a file name. |
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: InstalledEffectResponse | Created |
Fields: InstalledEffectResponse
| Field | Type | Required | Description |
|---|---|---|---|
console_after | integer (int64) | no | Effect console cursor taken just before the install. Pass it as after to GET /api/v1/effects/console to read only what the new page prints. |
controls | integer | yes | |
id | string | yes | |
name | string | yes | |
path | string | yes | |
presets | integer | yes |
Picks up newly built effects without restarting the daemon. Call this after shipping an effect from the SDK.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: RescanResponse | Success |
Fields: RescanResponse
| Field | Type | Required |
|---|---|---|
added | integer | yes |
removed | integer | yes |
updated | integer | yes |
The controls array (types, ranges, defaults) is what a UI renders into sliders, color pickers, and dropdowns.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectDetailResponse | Success |
Fields: EffectDetailResponse
| Field | Type | Required |
|---|---|---|
audio_reactive | boolean | yes |
author | string | yes |
category | EffectCategory | yes |
controls | array of ControlDefinition | no |
cover_image_url | string or null | no |
description | string | yes |
id | string | yes |
name | string | yes |
presets | array of PresetTemplate | no |
runnable | boolean | yes |
source | EffectSourceKind | yes |
tags | array of string | yes |
version | string | yes |
Replaces the target zone’s whole-zone layers with one new layer running this effect. Layers limited to some of the zone’s outputs by a scope stay above it, in their existing order, so changing the base effect keeps a keyboard’s own layer. A zone with no scoped layer ends up with exactly one layer. The server validates the effect, zone, and controls before committing, mints a fresh layer id, then wakes paused output.
{
"zone": "84b20af9-0700-4b82-8488-88314b87fb5c",
"controls": {
"speed": { "kind": "float", "value": 7.0 },
"palette": { "kind": "enum", "value": "SilkCircuit" }
},
"transition": { "type": "cut" }
}Omit zone to target the primary zone, which the daemon creates if needed. The response contains the updated zone resource, including the new layer id, the applied transition, and the output-wake outcome. A post-commit wake failure is reported inside a 200 response. Repair output through PATCH /output instead of retrying apply, because every apply creates another layer id.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Request body (application/json, optional): ApplyEffectRequest.
| Field | Type | Required | Description |
|---|---|---|---|
controls | map of ControlValue or null | no | |
preset_id | PresetId or null | no | |
transition | TransitionType or null | no | |
zone | string or null | no | Target zone; omitted means the primary zone, created if the scene has none. |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ApplyEffectResponse | Success |
Fields: ApplyEffectResponse
| Field | Type | Required | Description |
|---|---|---|---|
output | SideEffectOutcome | yes | The post-commit power-wake outcome. |
transition | TransitionType | yes | |
zone | ZoneResource | yes |
Serves curated art when present, else the image the effect ships in <meta cover>, else a frame the daemon captured once the effect had the canvas to itself for a few seconds. Effects with none of these advertise no cover_image_url.
Covers are named by the SHA-256 of their bytes. cover_image_url carries it as ?v=<sha256>, and the ETag is "sha256-<sha256>". A request whose v names the cover served gets Cache-Control: public, max-age=31536000, immutable; any other request gets no-cache. If-None-Match with the current ETag answers 304 Not Modified. A cache can check what it holds by hashing it.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
v | query | string | no | The SHA-256 the cover URL names. When it matches the cover served, the response may be cached forever. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | image/webp or image/png or image/jpeg bytes | Success |
304 | none | Not modified: the copy the client holds is current |
Lists the bundled and saved presets available for this effect.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectPresetSummaryListResponse | Success |
Item fields: EffectPresetSummary
| Field | Type | Required |
|---|---|---|
controls | map of ControlValue | yes |
description | string or null | no |
editable | boolean | yes |
effect_id | string | yes |
id | string | yes |
name | string | yes |
origin | EffectPresetOrigin | yes |
tags | array of string | no |
Applies the preset through the same stack-replacement contract as POST /effects/{id}/apply. Preset CRUD remains under /library/presets, but the library does not expose a second apply route.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
preset | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Request body (application/json, optional): ApplyEffectRequest.
| Field | Type | Required | Description |
|---|---|---|---|
controls | map of ControlValue or null | no | |
preset_id | PresetId or null | no | |
transition | TransitionType or null | no | |
zone | string or null | no | Target zone; omitted means the primary zone, created if the scene has none. |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ApplyEffectResponse | Success |
Fields: ApplyEffectResponse
| Field | Type | Required | Description |
|---|---|---|---|
output | SideEffectOutcome | yes | The post-commit power-wake outcome. |
transition | TransitionType | yes | |
zone | ZoneResource | yes |
#Canvas
Stills of the composed effect canvas.
The canvas is the composed image every effect layer draws into before the spatial sampler maps it onto LEDs. It is rendered at full brightness, so it shows what an effect looks like rather than how bright the hardware is set.
The request waits up to 1.5 seconds for a frame rendered after it arrives, so the image reflects the scene as it is now, then returns the raw image bytes rather than a JSON envelope. Use png for exact pixel values.
Captures never upscale past the canvas size. The response carries X-Canvas-Frame-Number, X-Canvas-Timestamp-Ms, X-Canvas-Width, X-Canvas-Height, X-Canvas-Source-Width, and X-Canvas-Source-Height. X-Canvas-Fresh: 0 means nothing rendered during the wait and the image is the last frame published before rendering went quiet. When the newest published canvas is empty, as before anything has rendered, the route answers 503.
curl -s 'http://127.0.0.1:9420/api/v1/canvas/frame?format=png&width=320' -o canvas.pngParameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
format | query | CanvasImageFormat | no | Image encoding: jpeg (default) or png. |
width | query | integer (int32) | no | Output width in pixels. Omit or pass 0 for the canvas width; set only one side to keep the canvas aspect ratio. Never upscales. |
height | query | integer (int32) | no | Output height in pixels, with the same rules as width. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | image/jpeg or image/png bytes | Success |
#Assets
Uploaded media assets.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: MediaAssetRecordListResponse | Success |
Item fields: MediaAssetRecord
| Field | Type | Required |
|---|---|---|
byte_len | integer (int64) | yes |
created_at | string | yes |
duration_us | integer (int64) or null | no |
frame_count | integer (int32) or null | no |
hash_sha256 | string | yes |
id | AssetId | yes |
intrinsic_height | integer (int32) or null | no |
intrinsic_width | integer (int32) or null | no |
mime_type | string | yes |
modified_at | string | yes |
name | string | yes |
scan_status | AssetScanStatus | no |
tags | array of string | no |
warnings | array of AssetWarning | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
rename_duplicate | query | boolean | no | Store a byte-identical upload under a fresh name instead of returning the existing record. |
type | query | string or null | no | Explicit asset type hint, overriding sniffing. |
Request body (multipart/form-data, required): AssetUploadForm.
| Field | Type | Required | Description |
|---|---|---|---|
file | binary | yes | The asset bytes, sent as a file part. Required. |
name | string | no | Display name; defaults to the uploaded file name. Omit the part rather than sending an empty or null value. |
tags | string | no | Tags, comma separated or as a JSON array of strings. Omit the part when there are none. |
type | string | no | Asset type hint (lottie or stream), overriding the type query parameter and content sniffing. Omit the part to let the daemon sniff. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: AssetUploadResponse | Success |
201 | data: AssetUploadResponse | Created |
Fields: AssetUploadResponse
Every field of MediaAssetRecord, plus:
| Field | Type | Required |
|---|---|---|
duplicate | boolean | yes |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: MediaAssetRecord | Success |
Fields: MediaAssetRecord
| Field | Type | Required |
|---|---|---|
byte_len | integer (int64) | yes |
created_at | string | yes |
duration_us | integer (int64) or null | no |
frame_count | integer (int32) or null | no |
hash_sha256 | string | yes |
id | AssetId | yes |
intrinsic_height | integer (int32) or null | no |
intrinsic_width | integer (int32) or null | no |
mime_type | string | yes |
modified_at | string | yes |
name | string | yes |
scan_status | AssetScanStatus | no |
tags | array of string | no |
warnings | array of AssetWarning | no |
Path parameters: id (string).
Request body (application/json, required): AssetUpdateRequest.
| Field | Type | Required |
|---|---|---|
name | string or null | no |
tags | array of string or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: MediaAssetRecord | Success |
Fields: MediaAssetRecord
| Field | Type | Required |
|---|---|---|
byte_len | integer (int64) | yes |
created_at | string | yes |
duration_us | integer (int64) or null | no |
frame_count | integer (int32) or null | no |
hash_sha256 | string | yes |
id | AssetId | yes |
intrinsic_height | integer (int32) or null | no |
intrinsic_width | integer (int32) or null | no |
mime_type | string | yes |
modified_at | string | yes |
name | string | yes |
scan_status | AssetScanStatus | no |
tags | array of string | no |
warnings | array of AssetWarning | no |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteAssetResponse | Success |
Fields: DeleteAssetResponse
| Field | Type | Required |
|---|---|---|
removed | AssetId | yes |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | application/octet-stream bytes | Success |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | image/webp bytes | Success |
#Media
Now-playing media application access.
Requests macOS Automation access for an already-running media application. The endpoint requires a control credential and accepts either Apple Music or Spotify:
{
"adapter": "music"
}The response reports the selected adapter and whether access was authorized. The daemon returns 422 when the application is not running and 409 when Automation access is unavailable or denied.
Request body (application/json, required): MediaAuthorizationRequest.
| Field | Type | Required | Description |
|---|---|---|---|
adapter | MediaAuthorizationAdapter | yes | Already-running media application to authorize. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: MediaAuthorizationResponse | Success |
Fields: MediaAuthorizationResponse
| Field | Type | Required | Description |
|---|---|---|---|
adapter | MediaAuthorizationAdapter | yes | Application whose access was authorized. |
authorized | boolean | yes | Whether Automation access is authorized. |
#Displays and faces
Display devices, faces, and simulators.
Display devices are physical screens (AIO LCD modules, Ableton Push 2) that show full-screen HTML faces. See display faces for the authoring contract.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DisplaySummaryListResponse | Success |
Item fields: DisplaySummary
| Field | Type | Required | Description |
|---|---|---|---|
circular | boolean | yes | |
descriptor | DisplayDescriptor | yes | Full surface description (shape, safe area, fps, pixel format) — the same descriptor injected into face pages. |
family | string | yes | |
height | integer (int32) | yes | |
id | string | yes | |
name | string | yes | |
rotation | DisplayRotation | no | How the panel is mounted; everything drawn on it turns to match. |
vendor | string | yes | |
width | integer (int32) | yes |
With scope: scene, makes this effect the screen’s whole stack in the active scene: one enabled layer scoped to the screen, with the request’s blend and opacity. The screen’s own layers are removed and it leaves the scope of layers it shares. A screen no zone places has no output to scope a layer to, so its face is stored as a display zone of the scene, under the id its view had, and becomes a screen layer when the screen is placed.
Path parameters: id (string).
Request body (application/json, required): SetDisplayFaceRequest.
| Field | Type | Required |
|---|---|---|
blend_mode | BlendMode or null | no |
controls | map of ControlValue | no |
effect_id | string | yes |
opacity | number (float) or null | no |
scope | DisplayFaceScope | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DisplayFaceResponse | Success |
Fields: DisplayFaceResponse
| Field | Type | Required | Description |
|---|---|---|---|
default_assigned | boolean | no | Whether a persisted default face exists for this display. |
device_id | string | yes | |
effect | EffectMetadata | yes | |
live_scope | DisplayFaceScope | no | Which layer the returned assignment lives on. |
rendering | DisplayFaceRendering or null | no | |
scene_assigned | boolean | no | Whether the active scene has its own face assignment for this display. |
scene_id | string | yes | |
zone | object | yes |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
scope | query | DisplayFaceScope | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteDisplayFaceResponse | Success |
Fields: DeleteDisplayFaceResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
device_id | string | yes |
scene_id | string or null | no |
scope | DisplayFaceScope | yes |
Sets the blend mode and opacity the screen’s stack meets its backdrop with: the bottom enabled layer’s, or the kept face’s when the scene assigns none.
Path parameters: id (string).
Request body (application/json, required): UpdateDisplayFaceCompositionRequest.
| Field | Type | Required |
|---|---|---|
blend_mode | BlendMode or null | no |
opacity | number (float) or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DisplayFaceResponse | Success |
Fields: DisplayFaceResponse
| Field | Type | Required | Description |
|---|---|---|---|
default_assigned | boolean | no | Whether a persisted default face exists for this display. |
device_id | string | yes | |
effect | EffectMetadata | yes | |
live_scope | DisplayFaceScope | no | Which layer the returned assignment lives on. |
rendering | DisplayFaceRendering or null | no | |
scene_assigned | boolean | no | Whether the active scene has its own face assignment for this display. |
scene_id | string | yes | |
zone | object | yes |
Path parameters: id (string).
Request body (application/json, required): PatchControlsRequest.
| Field | Type | Required |
|---|---|---|
clear_bindings | array of string | no |
values | map of ControlValue | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DisplayFaceResponse | Success |
Fields: DisplayFaceResponse
| Field | Type | Required | Description |
|---|---|---|---|
default_assigned | boolean | no | Whether a persisted default face exists for this display. |
device_id | string | yes | |
effect | EffectMetadata | yes | |
live_scope | DisplayFaceScope | no | Which layer the returned assignment lives on. |
rendering | DisplayFaceRendering or null | no | |
scene_assigned | boolean | no | Whether the active scene has its own face assignment for this display. |
scene_id | string | yes | |
zone | object | yes |
A JPEG preview frame from the display. Live frame streaming runs over the display_preview WebSocket channel.
A screen is an output of the zone that places it, and its face is a layer of that zone whose scope names the screen. Any layer source can be scoped to a screen: a face, media, a web page, a color. Layers scoped only to screens compose above the zone’s lighting on those screens, in stack order, and the bottom enabled one carries the blend and opacity the whole stack meets the backdrop with. One layer scoped to several screens renders once per panel, at each panel’s size, from one set of controls. Pausing a zone pauses the faces of the screens it places.
GET /scene also lists every connected screen as a zone with role: display, the screen’s view. Its layers are the screen’s layers as authored with scope omitted, and view_of names the zone and member that place the screen. The layer routes accept a view’s id and apply the write to that one screen: a new layer is scoped to it, a replaced layer stays on it whatever scope the request carries, and a layer other screens share is split first so they keep theirs. A scope on a create addressed to a view is a validation error. A client that reads screens from their owning zone skips zones with the display role.
The face routes below are the same writes by device id. scope: scene addresses the screen’s layers in the active scene. scope: default, the default, is deprecated in favor of screen layers and keeps working through 1.x: it addresses the kept face, one stored assignment per display that shows whenever the active scene has no face layer for the screen and no enabled layer on it.
Every face answer carries rendering, which says what is on the panel: scene for the scene’s layers, default for the kept face, none for neither. live_scope says where the returned assignment lives, which is not always what is showing: a screen with only a color layer in the scene answers with its kept face and rendering: scene, and a disabled face answers rendering: none.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | image/jpeg bytes | Success |
#Simulators
Virtual display simulators let you build and test face effects with no physical display attached.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SimulatedDisplayListResponse | Success |
Item fields: SimulatedDisplay
| Field | Type | Required |
|---|---|---|
circular | boolean | no |
enabled | boolean | no |
height | integer (int32) | yes |
id | DeviceId | yes |
name | string | yes |
width | integer (int32) | yes |
Request body (application/json, required): CreateSimulatedDisplayRequest.
| Field | Type | Required |
|---|---|---|
circular | boolean | no |
enabled | boolean or null | no |
height | integer (int32) | yes |
name | string | yes |
width | integer (int32) | yes |
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: SimulatedDisplay | Created |
Fields: SimulatedDisplay
| Field | Type | Required |
|---|---|---|
circular | boolean | no |
enabled | boolean | no |
height | integer (int32) | yes |
id | DeviceId | yes |
name | string | yes |
width | integer (int32) | yes |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SimulatedDisplay | Success |
Fields: SimulatedDisplay
| Field | Type | Required |
|---|---|---|
circular | boolean | no |
enabled | boolean | no |
height | integer (int32) | yes |
id | DeviceId | yes |
name | string | yes |
width | integer (int32) | yes |
Path parameters: id (string).
Request body (application/json, required): UpdateSimulatedDisplayRequest.
| Field | Type | Required |
|---|---|---|
circular | boolean or null | no |
enabled | boolean or null | no |
height | integer (int32) or null | no |
name | string or null | no |
width | integer (int32) or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SimulatedDisplay | Success |
Fields: SimulatedDisplay
| Field | Type | Required |
|---|---|---|
circular | boolean | no |
enabled | boolean | no |
height | integer (int32) | yes |
id | DeviceId | yes |
name | string | yes |
width | integer (int32) | yes |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteSimulatedDisplayResponse | Success |
Fields: DeleteSimulatedDisplayResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
id | DeviceId | yes |
The latest composited frame from the simulated display.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | image/jpeg bytes | Success |
#Attachments
Physical attachment templates and bindings.
Attachment templates describe physical accessories (keycaps, case panels, stands) that clip onto device slots and carry their own LED zones.
Lists built-in and user-defined templates. This route pages: limit defaults to 50 and anything above 200 is rejected with validation_error.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
offset | query | integer or null | no | |
limit | query | integer or null | no | |
category | query | string or null | no | |
vendor | query | string or null | no | |
origin | query | string or null | no | |
q | query | string or null | no | Free-text filter over template name and description. |
controller_id | query | string or null | no | Restrict to templates a given controller can host. |
model | query | string or null | no | |
slot_id | query | string or null | no | |
led_min | query | integer (int32) or null | no | |
led_max | query | integer (int32) or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: TemplateSummaryListResponse | Success |
Item fields: TemplateSummary
| Field | Type | Required |
|---|---|---|
category | ComponentCategory | yes |
description | string | yes |
id | string | yes |
image_url | string or null | no |
led_count | integer (int32) | yes |
name | string | yes |
origin | ComponentOrigin | yes |
tags | array of string | no |
vendor | string | yes |
Request body (application/json, required): ComponentTemplate.
| Field | Type | Required | Description |
|---|---|---|---|
category | ComponentCategory | yes | UI grouping category. |
compatible_slots | array of ComponentCompatibility | no | Optional controller/slot filters. |
default_size | ComponentCanvasSize | no | Default visual size when dropped into a layout. |
description | string | no | Optional descriptive text. |
id | string | yes | Stable template identifier. |
image_url | string or null | no | Optional product/marketing image URL. |
led_mapping | array of integer (int32) or null | no | Optional spatial-index -> physical-index remapping table. |
led_names | array of string or null | no | Optional user-facing labels for each LED. |
name | string | yes | Human-readable display name. |
origin | ComponentOrigin | no | Built-in or user-authored template. |
physical_size_mm | array of number (float) or null | no | Optional physical dimensions in millimeters. At least 2 items, at most 2 items. |
tags | array of string | no | Search/filter tags. |
topology | LedTopology | yes | Physical LED topology for this attachment. |
vendor | string | no | Accessory vendor or ecosystem (e.g. Lian Li, Corsair). |
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: TemplateDetail | Created |
Fields: TemplateDetail
| Field | Type | Required | Description |
|---|---|---|---|
category | ComponentCategory | yes | |
compatible_slots | array of ComponentCompatibility | no | |
default_size | ComponentCanvasSize | yes | |
description | string | yes | |
id | string | yes | |
image_url | string or null | no | |
led_count | integer (int32) | yes | |
led_mapping | array of integer (int32) or null | no | |
led_names | array of string or null | no | |
led_positions | array of NormalizedPosition | no | |
name | string | yes | |
origin | ComponentOrigin | yes | |
physical_size_mm | array of number (float) or null | no | Physical footprint in millimeters, as [width, height]. At least 2 items, at most 2 items. |
tags | array of string | no | |
topology | LedTopology | yes | |
vendor | string | yes |
#Output
Global output power and brightness.
Global output has one resource and two knobs. Pausing preserves the live scene, its effects, and their controls: devices hold the configured static off color until you set power back to running.
{
"power": "running",
"brightness": 0.8
}power is running or paused. A destructive stop leaves outputs dark, so it reads as paused here; the stop’s other consequences are visible on the effect surface. brightness is a float on 0.0 to 1.0.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: OutputResource | Success |
Fields: OutputResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | Global brightness, 0.0..=1.0. |
power | OutputPowerMode | yes |
Every field is optional, but a document that sets neither returns 422 rather than quietly succeeding, so a client that drops its payload hears about it.
{
"power": "paused",
"brightness": 0.35
}A brightness outside 0.0 to 1.0 returns 422 naming the offending field, and it is refused before power moves, so a rejected patch changes nothing.
Request body (application/json, required): OutputPatchRequest.
| Field | Type | Required |
|---|---|---|
brightness | number (float) or null | no |
power | OutputPowerMode or null | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: OutputResource | Success |
Fields: OutputResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | Global brightness, 0.0..=1.0. |
power | OutputPowerMode | yes |
#Scenes
Scene CRUD and activation.
Scenes are whole-rig configurations: the effects, zones, and assignments that define how your entire setup lights up. Switching scenes swaps the whole rig.

#Stored scenes
Stored scenes are edited as whole documents with PUT /scenes/{id}; the fine-grained editing routes below address the live scene only.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneSummaryListResponse | Success |
Item fields: SceneSummary
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | Brightness applied on activation, when the scene sets one. |
description | string or null | no | |
enabled | boolean | no | Whether the scene participates in activation. Defaults true for daemons that predate the field. |
id | string | yes | |
layout_id | LayoutId or null | no | |
mutation_mode | string | no | Live vs snapshot-locked. Lets scene pickers mark locked scenes without inferring lock state from the live scene kind. |
name | string | yes | |
priority | integer (int32) | no |
New scenes are born with a default Primary zone, live mutation mode, and the engine’s default scene transition.
{
"name": "Late Night",
"description": "Dim amber for late sessions",
"enabled": true,
"mutation_mode": "live"
}Request body (application/json, required): CreateSceneRequest.
| Field | Type | Required |
|---|---|---|
description | string or null | no |
enabled | boolean or null | no |
mutation_mode | string or null | no |
name | string | yes |
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: SceneSummary | Created |
Fields: SceneSummary
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | Brightness applied on activation, when the scene sets one. |
description | string or null | no | |
enabled | boolean | no | Whether the scene participates in activation. Defaults true for daemons that predate the field. |
id | string | yes | |
layout_id | LayoutId or null | no | |
mutation_mode | string | no | Live vs snapshot-locked. Lets scene pickers mark locked scenes without inferring lock state from the live scene kind. |
name | string | yes | |
priority | integer (int32) | no |
Captures the complete live scene as a new snapshot-mode scene. The snapshot keeps the active scene’s zones, members, layers, controls, display faces, and current named layout reference. Global output brightness is not captured.
{
"name": "Current Rig",
"description": "Captured after tuning the desk"
}Request body (application/json, required): SnapshotSceneRequest.
| Field | Type | Required |
|---|---|---|
description | string or null | no |
name | string | yes |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: SceneSummary | Created |
Fields: SceneSummary
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | Brightness applied on activation, when the scene sets one. |
description | string or null | no | |
enabled | boolean | no | Whether the scene participates in activation. Defaults true for daemons that predate the field. |
id | string | yes | |
layout_id | LayoutId or null | no | |
mutation_mode | string | no | Live vs snapshot-locked. Lets scene pickers mark locked scenes without inferring lock state from the live scene kind. |
name | string | yes | |
priority | integer (int32) | no |
Returns the stored scene as a complete document, including its zones, members, layouts, and layer stacks. The response carries the document’s revision and run_epoch, and their fence, "<run_epoch>:<revision>", as the ETag header.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneDocument | Success |
Fields: SceneDocument
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | no | |
id | string | yes | |
is_default | boolean | yes | Whether this is the auto-managed default scene, which cannot be renamed or deleted. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | no | |
revision | integer (int64) | yes | The commit generation, strictly increasing within a daemon run (Spec 78 §1.6). Served with run_epoch as the epoch-qualified ETag, "<run_epoch>:<revision>"; see SceneFence. |
run_epoch | string | no | Opaque identity of the daemon run revision belongs to, also served on every response as the hypercolor-run-epoch header. Compare by equality only: a change means the daemon restarted. A fence that names another run is always stale. Empty from daemons that predate it. |
transition | object | no | |
unassigned_behavior | string | no | |
zones | array of ZoneResource | yes | Every authored zone with its full stack, declaration order. |
Replaces the stored scene in full. Read the current document first, apply the intended edits, and send the whole document back. The read-only fields the read carried are checked, not written: the body’s revision and run_epoch together act exactly like If-Match, so a document read before someone else’s write, or in an earlier daemon run, is refused with 412 Precondition Failed. If-Match remains accepted, and when both are sent each must be current.
The route id is authoritative. If the body includes id, it must match the route or the daemon returns 422 Unprocessable Entity; kind and is_default likewise must match the stored scene. Existing zone and layer ids must already belong to this scene. Omit either id only when creating that resource, and the daemon mints it. Omitted optional fields are cleared, so partial update bodies are not accepted. A stale If-Match returns 412 Precondition Failed with the current revision.
A layer’s scope is the one field with three states, as it is on a single-layer replace. A value sets the scope, null clears it to the whole zone, and leaving the key out keeps the scope of the stored layer that the entry names by id. A read-back document carries each scoped layer’s scope, so sending it back unchanged changes nothing, and a client that drops the field cannot widen a layer. Because a whole-zone layer reads back with no scope key, deleting the key does not clear a scope; send null. Ids the stored layer’s scope already held are accepted as they are, and any other id must be one of the zone’s members in the same body, or the daemon returns 422 with details.unknown_member.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Request body (application/json, required): ReplaceSceneRequest.
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | yes | |
id | string or null | no | |
is_default | boolean or null | no | Echo of the read-only default-scene flag. Must match the stored scene when present; it can never be changed. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | yes | |
revision | integer (int64) or null | no | The scene revision this replacement was built from. When present, a stale value is refused with 412 precondition_failed, exactly as a stale If-Match is. |
run_epoch | string or null | no | Echo of the daemon run the read came from. Together with revision it is the body’s fence: a document read in another daemon run is refused with 412 precondition_failed whatever its revision. Without revision it is not checked. |
transition | object | yes | |
unassigned_behavior | string | no | |
zones | array of ReplaceZoneRequest | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneDocument | Success |
Fields: SceneDocument
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | no | |
id | string | yes | |
is_default | boolean | yes | Whether this is the auto-managed default scene, which cannot be renamed or deleted. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | no | |
revision | integer (int64) | yes | The commit generation, strictly increasing within a daemon run (Spec 78 §1.6). Served with run_epoch as the epoch-qualified ETag, "<run_epoch>:<revision>"; see SceneFence. |
run_epoch | string | no | Opaque identity of the daemon run revision belongs to, also served on every response as the hypercolor-run-epoch header. Compare by equality only: a change means the daemon restarted. A fence that names another run is always stale. Empty from daemons that predate it. |
transition | object | no | |
unassigned_behavior | string | no | |
zones | array of ZoneResource | yes | Every authored zone with its full stack, declaration order. |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteSceneResponse | Success |
Fields: DeleteSceneResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
id | string | yes |
Applies the scene’s effects and controls with the configured transition. The response reports the post-commit layout and brightness outcomes separately, because either side effect may fail after the scene switch has committed. Send {} to use the scene’s authored transition, or pass { "transition_ms": 250 } to override its duration for this activation.
Path parameters: id (string).
Request body (application/json, optional): ActivateSceneRequest.
| Field | Type | Required | Description |
|---|---|---|---|
transition_ms | integer (int64) or null | no | Override the scene’s authored transition duration. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ActivateSceneResponse | Success |
Fields: ActivateSceneResponse
| Field | Type | Required |
|---|---|---|
activated | boolean | yes |
brightness | SideEffectOutcome | yes |
layout | SceneLayoutActivationOutcome | yes |
scene | ActivatedSceneRef | yes |
#Live scene
The response always exists and embeds every authored zone, each zone’s member device segments, and every layer with its real id. The response’s ETag is the document’s fence, "<run_epoch>:<revision>", ready to send back as If-Match.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneDocument | Success |
Fields: SceneDocument
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | no | |
id | string | yes | |
is_default | boolean | yes | Whether this is the auto-managed default scene, which cannot be renamed or deleted. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | no | |
revision | integer (int64) | yes | The commit generation, strictly increasing within a daemon run (Spec 78 §1.6). Served with run_epoch as the epoch-qualified ETag, "<run_epoch>:<revision>"; see SceneFence. |
run_epoch | string | no | Opaque identity of the daemon run revision belongs to, also served on every response as the hypercolor-run-epoch header. Compare by equality only: a change means the daemon restarted. A fence that names another run is always stale. Empty from daemons that predate it. |
transition | object | no | |
unassigned_behavior | string | no | |
zones | array of ZoneResource | yes | Every authored zone with its full stack, declaration order. |
Changes the live scene’s name or unassigned_behavior. The default scene cannot be renamed.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): ScenePatchRequest.
| Field | Type | Required | Description |
|---|---|---|---|
name | string or null | no | Rename; rejected for the default scene. |
unassigned_behavior | string or null | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneDocument | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: SceneDocument
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | no | |
id | string | yes | |
is_default | boolean | yes | Whether this is the auto-managed default scene, which cannot be renamed or deleted. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | no | |
revision | integer (int64) | yes | The commit generation, strictly increasing within a daemon run (Spec 78 §1.6). Served with run_epoch as the epoch-qualified ETag, "<run_epoch>:<revision>"; see SceneFence. |
run_epoch | string | no | Opaque identity of the daemon run revision belongs to, also served on every response as the hypercolor-run-epoch header. Compare by equality only: a change means the daemon restarted. A fence that names another run is always stale. Empty from daemons that predate it. |
transition | object | no | |
unassigned_behavior | string | no | |
zones | array of ZoneResource | yes | Every authored zone with its full stack, declaration order. |
Clears every lighting layer stack, or pass { "zone": "<zone_uuid>" } to clear one zone. A screen’s view remains owned by the display API, and a targeted clear of one is rejected. This is the canonical stop gesture. It removes whole-zone and scoped layers alike, with one exception: a layer whose scope reaches only screens is a face, not lighting, and stays.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, optional): ClearSceneRequest.
| Field | Type | Required | Description |
|---|---|---|---|
zone | string or null | no | Clear one non-display zone’s stack; omitted clears every non-display zone. |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneDocument | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: SceneDocument
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | no | |
id | string | yes | |
is_default | boolean | yes | Whether this is the auto-managed default scene, which cannot be renamed or deleted. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | no | |
revision | integer (int64) | yes | The commit generation, strictly increasing within a daemon run (Spec 78 §1.6). Served with run_epoch as the epoch-qualified ETag, "<run_epoch>:<revision>"; see SceneFence. |
run_epoch | string | no | Opaque identity of the daemon run revision belongs to, also served on every response as the hypercolor-run-epoch header. Compare by equality only: a change means the daemon restarted. A fence that names another run is always stale. Empty from daemons that predate it. |
transition | object | no | |
unassigned_behavior | string | no | |
zones | array of ZoneResource | yes | Every authored zone with its full stack, declaration order. |
Returns to the default scene and answers with the new live scene document.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneDocument | Success |
Fields: SceneDocument
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | no | |
id | string | yes | |
is_default | boolean | yes | Whether this is the auto-managed default scene, which cannot be renamed or deleted. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | no | |
revision | integer (int64) | yes | The commit generation, strictly increasing within a daemon run (Spec 78 §1.6). Served with run_epoch as the epoch-qualified ETag, "<run_epoch>:<revision>"; see SceneFence. |
run_epoch | string | no | Opaque identity of the daemon run revision belongs to, also served on every response as the hypercolor-run-epoch header. Compare by equality only: a change means the daemon restarted. A fence that names another run is always stale. Empty from daemons that predate it. |
transition | object | no | |
unassigned_behavior | string | no | |
zones | array of ZoneResource | yes | Every authored zone with its full stack, declaration order. |
#Scene zones
Zones are flexible partitions of the live scene’s canvas. Each zone owns member device segments and a layer stack. Fine-grained editing is live-tree-only under /scene; stored scenes use whole-document PUT /scenes/{id}.

Adds, moves, or removes outputs in one atomic transaction. Supply the active scene_id and the scene fence in If-Match, then choose one request form:
- Explicit changes: a
changesarray containingbeforeandafterstates. Each state containszone_id, the completeoutput, and its orderedindex. A nullbeforeadds an output; a nullafterremoves it. - Device assignment: an
assignmentobject containing the targetzone_id,device_id, optionalsegments, and optionalplacements. Leavechangesempty. The daemon creates canonical outputs for the device; placement hints preserve prepared geometry without choosing device bindings.
All changes validate before committing. A failed request leaves membership unchanged. The response contains the committed document and canonical changes receipts with complete output snapshots for undo and redo. The committed revision is available in document.revision and the response ETag.
The primary zone of a scene with no other LED zone follows the active layout: activations, layout applies, effect applies, and a restart rebuild it from that layout. An output that arrives in such a zone, or moves within it, is written to the layout in the same commit, as published and as stored: a new output is placed at its index, and one the layout already holds takes the new placement and keeps the rest of its stored copy. A screen that leaves the zone leaves the layout too.
A light that leaves the zone stays in the layout, so its device stays in the rig, connected, under the scene’s unassigned_behavior. The next rebuild of the zone brings the light back. That holds for a replay as well: undoing an assignment is the same request as an unassignment, so the undo empties the zone and leaves the light in the layout. Keeping a light out of one single-zone scene for good is not supported yet.
A scene with a second LED zone keeps its members itself, and its edits leave the layout alone. The two per-zone member routes above write through the same way.
Scoped layers follow their outputs. When an edit moves every live output of a layer’s scope to one other zone, the layer moves to the top of that zone’s stack with its id and scope intact. When it moves only some of them, the layer stays and loses those ids. The response lists each such layer in layer_moves, with its zone and stack position before and after and its scope before and after. To undo an edit exactly, send the reversed changes together with the reversed layer_moves: the daemon then applies those moves and carries nothing else. layer_moves is only valid beside explicit changes.
Omitting If-Match or sending * is rejected. A stale revision returns 412. Explicit edits also validate their before states, so rebasing requires fresh member states from the current document.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
If-Match | header | string | yes | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. Required; the wildcard * is not accepted. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): EditMembersRequest.
| Field | Type | Required | Description |
|---|---|---|---|
assignment | MemberAssignmentTarget or null | no | |
changes | array of MemberEdit | no | |
layer_moves | array of LayerMove or null | no | The scoped layers to move with the outputs, replayed from a receipt’s layer_moves beside its changes. Omitted, the daemon decides which scoped layers follow the moved outputs. Present, exactly these moves are applied and nothing else is carried, so replaying a receipt’s reversed moves restores each layer’s zone, stack position, and scope. Only valid with explicit changes. |
scene_id | string | yes |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EditMembersResponse | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: EditMembersResponse
| Field | Type | Required | Description |
|---|---|---|---|
changes | array of MemberEdit | yes | |
document | SceneDocument | yes | |
layer_moves | array of LayerMove | no | Every scoped layer the edit moved or narrowed, in the order a replay applies them. |
{
"name": "Desk",
"color": "#80ffea"
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): CreateZoneRequest.
| Field | Type | Required |
|---|---|---|
color | string or null | no |
name | string | yes |
role | string or null | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: ZoneResource | Created |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Path parameters: zone (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Updates a zone’s name, enabled state, brightness, or color.
{
"name": "Desk halo",
"brightness": 0.8,
"enabled": true
}Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): PatchZoneRequest.
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) or null | no | |
color | string or null | no | Tri-state: missing leaves the color, null clears it, a value sets it. |
enabled | boolean or null | no | |
index | integer or null | no | Move the zone to this position in the scene’s zone order, clamped to the last slot. Zone order is Studio’s tab order and the paint order of the scene preview projection. |
name | string or null | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
The default and display zones cannot be deleted through this route.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneDocument | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: SceneDocument
| Field | Type | Required | Description |
|---|---|---|---|
activation_brightness | number (float) or null | no | |
description | string or null | no | |
enabled | boolean | no | |
id | string | yes | |
is_default | boolean | yes | Whether this is the auto-managed default scene, which cannot be renamed or deleted. |
kind | string | yes | |
layout_id | LayoutId or null | no | |
metadata | map of string | no | |
mutation_mode | string | no | |
name | string | yes | |
priority | integer (int32) | no | |
revision | integer (int64) | yes | The commit generation, strictly increasing within a daemon run (Spec 78 §1.6). Served with run_epoch as the epoch-qualified ETag, "<run_epoch>:<revision>"; see SceneFence. |
run_epoch | string | no | Opaque identity of the daemon run revision belongs to, also served on every response as the hypercolor-run-epoch header. Compare by equality only: a change means the daemon restarted. A fence that names another run is always stale. Empty from daemons that predate it. |
transition | object | no | |
unassigned_behavior | string | no | |
zones | array of ZoneResource | yes | Every authored zone with its full stack, declaration order. |
Replaces the zone-scoped spatial placement override. The compact body contains placements, keyed by member id. Add or remove members through the member routes.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): ZoneLayoutRequest.
| Field | Type | Required |
|---|---|---|
placements | array of MemberPlacement | yes |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Assigns one device’s segments to the zone. The response carries the minted member ids, which are the resource identities for later removal.
{
"device_id": "razer:huntsman-v3",
"segments": ["left", "right"]
}When the zone is the primary zone of a scene with no other LED zone, the assigned outputs are also written to the active layout that zone follows, in the same commit, so they are still there after the next activation, layout apply, or restart. A device that layout already holds outputs for is assigned as those outputs, under the ids the layout gave them. See POST /scene/members/edit.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): AssignMembersRequest.
| Field | Type | Required | Description |
|---|---|---|---|
device_id | string | yes | |
segments | array of string | no | Segment names to assign; empty assigns the whole device on single-segment hardware. |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Removes one membership by the member id returned in the live zone document. A layer whose scope names the member keeps the id and stops rendering on it; assigning the same output again revives the layer.
When the zone is the primary zone of a scene with no other LED zone, what happens to the active layout that zone follows depends on the output:
- A screen’s output leaves the layout in the same commit, so no later rebuild of the zone brings it back.
- A light’s output stays in the layout. The layout is the rig: the device stays connected, and the scene’s
unassigned_behaviorapplies to it. The next rebuild of the zone from the layout (an activation, a layout apply, an effect apply, a restart) puts the light back in the zone. Keeping a light out of one single-zone scene for good is not supported yet.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
member | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
#Scene layers
Each zone stacks layers bottom to top. Clients use the layer ids returned by GET /scene; they never derive an id from the zone.
A layer applies to its whole zone unless it carries a scope: a list of the zone’s member ids the layer is limited to. Outputs outside the scope render the stack as if the layer were not there. A whole-zone layer reads back with no scope key. A scope id whose output has left the zone is kept and renders nothing, and a layer with no live output left is dormant: compare the scope’s ids with the zone’s members to detect it. Check for the layer-scope capability in GET /system before sending the field to a daemon that may be older.
Path parameters: zone (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SceneLayerListResponse | Success |
Item fields: SceneLayer
| Field | Type | Required | Description |
|---|---|---|---|
adjust | LayerAdjust | no | Color adjustments applied after the source produces a frame. |
bindings | array of LayerBinding | no | Live scalar bindings for layer parameters. |
blend | BlendMode | no | How this layer composes with the layer beneath it. |
enabled | boolean | no | Whether this layer is currently active. |
id | SceneLayerId | yes | Stable identifier for this layer. |
name | string or null | no | Display name. Defaults to the source’s intrinsic name in the UI. |
opacity | number (float) | no | Layer opacity. |
scope | LayerScope or null | no | |
source | LayerSource | yes | Content source that feeds this layer. |
transform | LayerTransform | no | Geometric placement of the source within the zone’s canvas. |
Appends a layer to the zone. The server mints its id.
{
"source": {
"type": "effect",
"effect_id": "0198c5b6-1111-7000-8000-000000000004",
"controls": {}
},
"blend": "screen",
"scope": { "outputs": ["keyboard-left"] }
}Omit scope to apply the layer to the whole zone. Every id in scope.outputs must be a current member of the zone, or the daemon returns 422 validation_error with the missing id in details.unknown_member. An empty list is also a 422. The stored list is sorted and deduplicated.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): CreateLayerRequest.
| Field | Type | Required |
|---|---|---|
adjust | LayerAdjust or null | no |
bindings | array of LayerBinding or null | no |
blend | BlendMode or null | no |
enabled | boolean or null | no |
name | string or null | no |
opacity | number (float) or null | no |
scope | LayerScope or null | no |
source | LayerSource | yes |
transform | LayerTransform or null | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: ZoneResource | Created |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Send every layer id exactly once, from bottom to top.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): ReorderLayersRequest.
| Field | Type | Required |
|---|---|---|
order | array of SceneLayerId | yes |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Every successful replacement mints a fresh layer id, even when the effect is unchanged. The body is the creation shape with one difference, in scope:
scope in the body | Result |
|---|---|
| Key left out | The replacement keeps the replaced layer’s scope |
null | The replacement applies to the whole zone |
{ "outputs": [...] } | The replacement is limited to those outputs |
Leaving the key out keeps the scope so that a client written before the field existed, which replaces a layer by sending back the fields it knows, cannot widen a keyboard’s layer to the whole zone by changing its blend mode. Changing a layer’s scope is this route with a new value.
Ids the replaced layer’s scope already held are accepted even when their output has left the zone, so a dormant layer can still be edited. Any other id must be a current member, or the daemon returns 422 validation_error with details.unknown_member.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
layer | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Request body (application/json, required): ReplaceLayerRequest.
| Field | Type | Required |
|---|---|---|
adjust | LayerAdjust or null | no |
bindings | array of LayerBinding or null | no |
blend | BlendMode or null | no |
enabled | boolean or null | no |
name | string or null | no |
opacity | number (float) or null | no |
scope | LayerScope or null | no |
source | LayerSource | yes |
transform | LayerTransform or null | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
zone | path | string | yes | |
layer | path | string | yes | |
If-Match | header | string | no | Scene fence guarding the write: the ETag a read or a write served, “<run_epoch>:<revision>”. It passes only while both the daemon run and the scene revision are current, so a fence from an earlier daemon run is always stale. A bare revision (“42” or 42) is still accepted and checks the revision alone; only the epoch-qualified form is safe across daemon restarts. * or no header applies without a precondition. |
Idempotency-Key | header | string | no | Client-generated opaque key (a UUID) naming one logical write. A repeat with the same key and the same request is not applied again: it answers with the stored status and body plus Idempotency-Replayed: true, waiting for the original when it is still running. The same key on a different request answers 422 idempotency_key_mismatch. Keys are kept in memory for one daemon run, which the hypercolor-run-epoch response header names. At most 255 characters. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
503 | ApiErrorBody, no envelope | service_unavailable: the daemon took nothing on for this request, because too many keyed writes are already in flight or it is still starting. Nothing was applied or recorded for this Idempotency-Key, so send the same request again with the same key. |
| Response header | Meaning |
|---|---|
idempotency-replayed | true when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise. |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
Send { "values": {...}, "clear_bindings": [...] }. Control patches never use If-Match. A vanished layer returns 404 layer_not_found.
Path parameters: zone, layer (strings).
Request body (application/json, required): PatchControlsRequest.
| Field | Type | Required |
|---|---|---|
clear_bindings | array of string | no |
values | map of ControlValue | no |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ZoneResource | Success |
Fields: ZoneResource
| Field | Type | Required | Description |
|---|---|---|---|
brightness | number (float) | yes | |
color | string or null | no | |
description | string or null | no | |
display_target | object or null | no | Present on Display-role zones only. |
enabled | boolean | yes | |
id | string | yes | |
layers | array of SceneLayer | yes | The authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here. |
layout | ZoneLayoutResource or null | no | |
members | array of ZoneMember | yes | Device segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name. |
name | string | yes | |
role | string | no | |
view_of | ZoneViewOf or null | no |
#Layouts
Spatial layout CRUD and preview.
Layouts define how the effect canvas maps onto physical LED positions, in normalized [0.0, 1.0] coordinates so effects stay resolution-independent.
This route pages: limit defaults to 50 and anything above 200 is rejected with validation_error.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
offset | query | integer or null | no | |
limit | query | integer or null | no | |
active | query | boolean or null | no | Restrict the list to the layout the daemon is rendering with. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: LayoutSummaryListResponse | Success |
Item fields: LayoutSummary
| Field | Type | Required |
|---|---|---|
id | string | yes |
is_active | boolean | no |
name | string | yes |
zone_count | integer | yes |
Request body (application/json, required): CreateLayoutRequest.
| Field | Type | Required |
|---|---|---|
description | string or null | no |
name | string | yes |
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: LayoutSummary | Created |
Fields: LayoutSummary
| Field | Type | Required |
|---|---|---|
id | string | yes |
is_active | boolean | no |
name | string | yes |
zone_count | integer | yes |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SpatialLayout | Success |
Fields: SpatialLayout
| Field | Type | Required | Description |
|---|---|---|---|
canvas_height | integer (int32) | no | Canvas height in pixels; see SpatialLayout::canvas_width. Read-only. |
canvas_width | integer (int32) | no | Canvas width in pixels this layout is sampled against. The engine owns it: an LED layout always carries the configured render resolution (daemon.canvas_width), and a display zone carries its face’s size. Nothing a client sends sets it. Read-only. |
default_edge_behavior | EdgeBehavior | no | Default edge behavior for zones that don’t specify one. |
default_sampling_mode | SamplingMode | no | Default sampling mode for zones that don’t specify one. |
description | string or null | no | Optional description for the layout editor UI. |
id | string | yes | Unique layout identifier (UUID or slug). |
name | string | yes | Human-readable name (e.g., “Bliss’s PC Case”, “Full Room”). |
version | integer (int32) | yes | Schema version for forward-compatible migrations. |
zones | array of Output | yes | All device zones in this layout, ordered by rendering priority. |
Returns the zone-to-LED mapping the layout would produce without applying it, so a UI can render it visually.
Request body (application/json, required): SpatialLayout.
| Field | Type | Required | Description |
|---|---|---|---|
canvas_height | integer (int32) | no | Canvas height in pixels; see SpatialLayout::canvas_width. Read-only. |
canvas_width | integer (int32) | no | Canvas width in pixels this layout is sampled against. The engine owns it: an LED layout always carries the configured render resolution (daemon.canvas_width), and a display zone carries its face’s size. Nothing a client sends sets it. Read-only. |
default_edge_behavior | EdgeBehavior | no | Default edge behavior for zones that don’t specify one. |
default_sampling_mode | SamplingMode | no | Default sampling mode for zones that don’t specify one. |
description | string or null | no | Optional description for the layout editor UI. |
id | string | yes | Unique layout identifier (UUID or slug). |
name | string | yes | Human-readable name (e.g., “Bliss’s PC Case”, “Full Room”). |
version | integer (int32) | yes | Schema version for forward-compatible migrations. |
zones | array of Output | yes | All device zones in this layout, ordered by rendering priority. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: PreviewLayoutResponse | Success |
Fields: PreviewLayoutResponse
| Field | Type | Required |
|---|---|---|
previewing | boolean | yes |
Device outputs, positions, and LED mappings.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: SpatialLayout | Success |
Fields: SpatialLayout
| Field | Type | Required | Description |
|---|---|---|---|
canvas_height | integer (int32) | no | Canvas height in pixels; see SpatialLayout::canvas_width. Read-only. |
canvas_width | integer (int32) | no | Canvas width in pixels this layout is sampled against. The engine owns it: an LED layout always carries the configured render resolution (daemon.canvas_width), and a display zone carries its face’s size. Nothing a client sends sets it. Read-only. |
default_edge_behavior | EdgeBehavior | no | Default edge behavior for zones that don’t specify one. |
default_sampling_mode | SamplingMode | no | Default sampling mode for zones that don’t specify one. |
description | string or null | no | Optional description for the layout editor UI. |
id | string | yes | Unique layout identifier (UUID or slug). |
name | string | yes | Human-readable name (e.g., “Bliss’s PC Case”, “Full Room”). |
version | integer (int32) | yes | Schema version for forward-compatible migrations. |
zones | array of Output | yes | All device zones in this layout, ordered by rendering priority. |
Path parameters: id (string).
Request body (application/json, required): UpdateLayoutRequest.
| Field | Type | Required |
|---|---|---|
description | string or null | no |
name | string or null | no |
zones | array of Output or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: LayoutSummary | Success |
Fields: LayoutSummary
| Field | Type | Required |
|---|---|---|
id | string | yes |
is_active | boolean | no |
name | string | yes |
zone_count | integer | yes |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteLayoutResponse | Success |
202 | data: DeleteLayoutResponse | Accepted; the work completes asynchronously |
Fields: DeleteLayoutResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
id | string | yes |
persistence_pending | boolean | yes |
Makes the layout the active spatial mapping.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ApplyLayoutResponse | Success |
202 | data: ApplyLayoutResponse | Accepted; the work completes asynchronously |
Fields: ApplyLayoutResponse
| Field | Type | Required |
|---|---|---|
applied | boolean | yes |
layout | SpatialLayout | yes |
persistence_pending | boolean | yes |
#Library
Favorites, presets, and playlists.
#Favorites
A fresh install starts with a few curated favorites, which the daemon seeds once on its very first run. An existing install never gets them, even one whose favorites list is empty.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: FavoriteSummaryListResponse | Success |
Item fields: FavoriteSummary
| Field | Type | Required |
|---|---|---|
added_at_ms | integer (int64) | no |
effect_id | string | yes |
effect_name | string | no |
{
"effect_id": "borealis"
}Request body (application/json, required): AddFavoriteRequest.
| Field | Type | Required | Description |
|---|---|---|---|
effect | string | yes | Effect id to favorite. |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: AddFavoriteResponse | Success |
Fields: AddFavoriteResponse
| Field | Type | Required |
|---|---|---|
created | boolean | yes |
favorite | FavoriteSummary | yes |
The path key is the effect ID, not a favorite ID.
Path parameters: effect (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeleteFavoriteResponse | Success |
Fields: DeleteFavoriteResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
effect_id | string | yes |
#Presets
A preset is an effect plus a set of control values. Apply one through POST /api/v1/effects/{effect}/presets/{preset}/apply: the effect-scoped route is the only apply contract, and the library owns storage and CRUD.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectPresetListResponse | Success |
Item fields: EffectPreset
| Field | Type | Required |
|---|---|---|
controls | map of ControlValue | no |
created_at_ms | integer (int64) | no |
description | string or null | no |
effect_id | EffectId | yes |
id | PresetId | yes |
name | string | yes |
tags | array of string | no |
updated_at_ms | integer (int64) | no |
Saves the current effect and controls as a named preset.
Request body (application/json, required): SavePresetRequest.
| Field | Type | Required | Description |
|---|---|---|---|
controls | any | no | |
description | string or null | no | |
effect | string | yes | Effect the preset’s control values belong to. |
name | string | yes | |
tags | array of string or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: EffectPreset | Created |
Fields: EffectPreset
| Field | Type | Required |
|---|---|---|
controls | map of ControlValue | no |
created_at_ms | integer (int64) | no |
description | string or null | no |
effect_id | EffectId | yes |
id | PresetId | yes |
name | string | yes |
tags | array of string | no |
updated_at_ms | integer (int64) | no |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectPreset | Success |
Fields: EffectPreset
| Field | Type | Required |
|---|---|---|
controls | map of ControlValue | no |
created_at_ms | integer (int64) | no |
description | string or null | no |
effect_id | EffectId | yes |
id | PresetId | yes |
name | string | yes |
tags | array of string | no |
updated_at_ms | integer (int64) | no |
Path parameters: id (string).
Request body (application/json, required): SavePresetRequest.
| Field | Type | Required | Description |
|---|---|---|---|
controls | any | no | |
description | string or null | no | |
effect | string | yes | Effect the preset’s control values belong to. |
name | string | yes | |
tags | array of string or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectPreset | Success |
Fields: EffectPreset
| Field | Type | Required |
|---|---|---|
controls | map of ControlValue | no |
created_at_ms | integer (int64) | no |
description | string or null | no |
effect_id | EffectId | yes |
id | PresetId | yes |
name | string | yes |
tags | array of string | no |
updated_at_ms | integer (int64) | no |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeletePresetResponse | Success |
Fields: DeletePresetResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
id | string | yes |
#Playlists
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectPlaylistListResponse | Success |
Item fields: EffectPlaylist
| Field | Type | Required |
|---|---|---|
created_at_ms | integer (int64) | yes |
description | string or null | no |
id | PlaylistId | yes |
items | array of PlaylistItem | no |
loop_enabled | boolean | yes |
name | string | yes |
updated_at_ms | integer (int64) | yes |
A playlist is a sequence of effects with transition timing.
Request body (application/json, required): SavePlaylistRequest.
| Field | Type | Required |
|---|---|---|
description | string or null | no |
items | array of PlaylistItemRequest or null | no |
loop_enabled | boolean or null | no |
name | string | yes |
Responses
| Status | Body | Meaning |
|---|---|---|
201 | data: EffectPlaylist | Created |
Fields: EffectPlaylist
| Field | Type | Required |
|---|---|---|
created_at_ms | integer (int64) | yes |
description | string or null | no |
id | PlaylistId | yes |
items | array of PlaylistItem | no |
loop_enabled | boolean | yes |
name | string | yes |
updated_at_ms | integer (int64) | yes |
Answers with the running playlist, if any.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ActivePlaylistStateResponse | Success |
Fields: ActivePlaylistStateResponse
| Field | Type | Required |
|---|---|---|
playlist | ActivePlaylistResponse | yes |
state | string | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeactivatePlaylistResponse | Success |
Fields: DeactivatePlaylistResponse
| Field | Type | Required | Description |
|---|---|---|---|
deactivated | boolean | yes | |
playlist | ActivePlaylistResponse | yes | The playlist as it stood when playback was deactivated. |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectPlaylist | Success |
Fields: EffectPlaylist
| Field | Type | Required |
|---|---|---|
created_at_ms | integer (int64) | yes |
description | string or null | no |
id | PlaylistId | yes |
items | array of PlaylistItem | no |
loop_enabled | boolean | yes |
name | string | yes |
updated_at_ms | integer (int64) | yes |
Path parameters: id (string).
Request body (application/json, required): SavePlaylistRequest.
| Field | Type | Required |
|---|---|---|
description | string or null | no |
items | array of PlaylistItemRequest or null | no |
loop_enabled | boolean or null | no |
name | string | yes |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: EffectPlaylist | Success |
Fields: EffectPlaylist
| Field | Type | Required |
|---|---|---|
created_at_ms | integer (int64) | yes |
description | string or null | no |
id | PlaylistId | yes |
items | array of PlaylistItem | no |
loop_enabled | boolean | yes |
name | string | yes |
updated_at_ms | integer (int64) | yes |
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DeletePlaylistResponse | Success |
Fields: DeletePlaylistResponse
| Field | Type | Required |
|---|---|---|
deleted | boolean | yes |
id | string | yes |
Effects cycle on the playlist’s timing.
Path parameters: id (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ActivatePlaylistResponse | Success |
Fields: ActivatePlaylistResponse
| Field | Type | Required |
|---|---|---|
active | boolean | yes |
playlist | ActivePlaylistResponse | yes |
#Capture and input
Protected host input and screen-capture actions.
The four protected capture operations below require protected control: the control-tier HYPERCOLOR_API_KEY, the desktop app’s session credential, or a trusted in-process connection. Every other caller receives 403 Forbidden, including a keyless loopback client, a read key, and a credential from a downstream credential authority. Where the request comes from plays no part.
The system status response keeps the selected session source identifier only for a caller with protected control. Every other response replaces application and window selection identifiers with session_scoped; stable display UUIDs remain available for diagnostics.
Asks the process that owns screen capture to request Screen Recording access. The response reports whether access is currently authorized and names the process topology that owns the grant.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: CaptureAuthorizationResponse | Success |
Fields: CaptureAuthorizationResponse
| Field | Type | Required |
|---|---|---|
authorized | boolean | yes |
grant_owner | ProtectedSourceGrantOwner | yes |
Builds a monitor picker. Each entry carries a ready-to-store value for the capture.source config key.
{
"items": [
{
"index": 0,
"id": "DP-1",
"name": "\\\\.\\DISPLAY1",
"width": 2560,
"height": 1440,
"primary": true,
"value": "monitor:DP-1"
}
],
"total": 1
}The list is empty on platforms where the backend picks its own source (the XDG portal on Linux); a UI uses that emptiness to decide between a monitor dropdown and the portal picker button.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: CaptureMonitorListResponse | Success |
Item fields: CaptureMonitor
| Field | Type | Required |
|---|---|---|
height | integer (int32) | yes |
id | string | yes |
index | integer | yes |
name | string | yes |
primary | boolean | yes |
value | string | yes |
width | integer (int32) | yes |
Lets the user choose a display, window, or application for screen-reactive effects. An accepted display persists by its stable display UUID. Window and application choices persist as session_scoped, so Hypercolor remembers the privacy boundary without writing the selected window ID or bundle ID to configuration. Cancelling the picker leaves the current source unchanged.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: CapturePickerResponse | Success |
Fields: CapturePickerResponse
| Field | Type | Required |
|---|---|---|
grant_owner | ProtectedSourceGrantOwner | yes |
picking | boolean | yes |
Asks the process that owns host keyboard capture to request Input Monitoring access. The response reports whether access is currently authorized and names the process topology that owns the grant.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: CaptureAuthorizationResponse | Success |
Fields: CaptureAuthorizationResponse
| Field | Type | Required |
|---|---|---|
authorized | boolean | yes |
grant_owner | ProtectedSourceGrantOwner | yes |
#Configuration
Daemon configuration inspection and mutation.
Secret-classified sections render masked as {"redacted": true}: every drivers entry, plus any top-level section this build does not model. Driver settings are read through GET /api/v1/drivers/{id}/config.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ConfigDocument | Success |
The dotted key is a single path segment.
Path parameters: key (string).
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ConfigKeyResponse | Success |
Fields: ConfigKeyResponse
| Field | Type | Required |
|---|---|---|
key | string | yes |
value | any | yes |
The request body is the value itself:
trueAdd ?live=false to persist without re-applying the change to the running daemon; the default re-applies every live-classified key.
The response carries the effective value, whether the daemon applied it live, whether the key is boot-frozen (requires_restart), and which sections are currently waiting on a restart (pending_restart).
The response also says whether the config file holds the change. When the file write fails (a read-only config directory, a full disk), the change still takes effect in the running daemon, which keeps retrying the file, and the response reports "persisted": false with the failure in persistence_error. A restart before a retry lands loads the older file. The config diagnose check reports the same lag until it clears. The reset routes report it the same way.
Writes that rebuild the live screen-capture source are the exception: a key in the capture section, or a whole-config reset, with live apply on. They stage the new file before touching the running source, so a config directory that refuses the staged file fails the request with 500 and leaves the live value unchanged.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
key | path | string | yes | |
live | query | boolean | no |
Request body (application/json, required): Value.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ConfigMutationResponse | Success |
Fields: ConfigMutationResponse
| Field | Type | Required | Description |
|---|---|---|---|
key | string or null | no | The mutated key, or null for a whole-config reset. |
live | boolean | yes | Whether the daemon re-applied the change to a running subsystem. |
path | string | yes | The config file the write targets. |
pending_restart | array of string | yes | Restart-classified roots whose persisted value now differs from the one the daemon booted with. |
persisted | boolean | no | Whether path holds the live config after this request. False means the change is live in the running daemon but the file write failed: the daemon keeps retrying it, and a restart before a retry lands loads the older file. A response without the field reads as persisted, so treat only an explicit false as unsaved. Default true. |
persistence_error | string or null | no | Why path lags the live config, present only when persisted is false. |
requires_restart | boolean | yes | Whether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start. |
value | any | no | The effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key. |
Unmentioned entries survive; null removes an entry. The daemon merges and validates against the current config under its write lock, so concurrent patches to different OpenRGB controllers or zones preserve each other’s sizes. The response and ?live= option match PUT.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
key | path | string | yes | |
live | query | boolean | no |
Request body (application/json, required): Value.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ConfigMutationResponse | Success |
Fields: ConfigMutationResponse
| Field | Type | Required | Description |
|---|---|---|---|
key | string or null | no | The mutated key, or null for a whole-config reset. |
live | boolean | yes | Whether the daemon re-applied the change to a running subsystem. |
path | string | yes | The config file the write targets. |
pending_restart | array of string | yes | Restart-classified roots whose persisted value now differs from the one the daemon booted with. |
persisted | boolean | no | Whether path holds the live config after this request. False means the change is live in the running daemon but the file write failed: the daemon keeps retrying it, and a restart before a retry lands loads the older file. A response without the field reads as persisted, so treat only an explicit false as unsaved. Default true. |
persistence_error | string or null | no | Why path lags the live config, present only when persisted is false. |
requires_restart | boolean | yes | Whether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start. |
value | any | no | The effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key. |
Takes the same ?live= query parameter as the write.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
key | path | string | yes | |
live | query | boolean | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ConfigMutationResponse | Success |
Fields: ConfigMutationResponse
| Field | Type | Required | Description |
|---|---|---|---|
key | string or null | no | The mutated key, or null for a whole-config reset. |
live | boolean | yes | Whether the daemon re-applied the change to a running subsystem. |
path | string | yes | The config file the write targets. |
pending_restart | array of string | yes | Restart-classified roots whose persisted value now differs from the one the daemon booted with. |
persisted | boolean | no | Whether path holds the live config after this request. False means the change is live in the running daemon but the file write failed: the daemon keeps retrying it, and a restart before a retry lands loads the older file. A response without the field reads as persisted, so treat only an explicit false as unsaved. Default true. |
persistence_error | string or null | no | Why path lags the live config, present only when persisted is false. |
requires_restart | boolean | yes | Whether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start. |
value | any | no | The effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key. |
The drivers map, unmodeled extension sections, and the include list survive the reset.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
live | query | boolean | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ConfigMutationResponse | Success |
Fields: ConfigMutationResponse
| Field | Type | Required | Description |
|---|---|---|---|
key | string or null | no | The mutated key, or null for a whole-config reset. |
live | boolean | yes | Whether the daemon re-applied the change to a running subsystem. |
path | string | yes | The config file the write targets. |
pending_restart | array of string | yes | Restart-classified roots whose persisted value now differs from the one the daemon booted with. |
persisted | boolean | no | Whether path holds the live config after this request. False means the change is live in the running daemon but the file write failed: the daemon keeps retrying it, and a restart before a retry lands loads the older file. A response without the field reads as persisted, so treat only an explicit false as unsaved. Default true. |
persistence_error | string or null | no | Why path lags the live config, present only when persisted is false. |
requires_restart | boolean | yes | Whether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start. |
value | any | no | The effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key. |
Describes every configuration key: how a change applies (live with a section, live_on_read, next_scan, restart, or inert), how it renders on read surfaces, whether the daemon validates it beyond type checking, and which writes need a protected-control credential (protection: open, section_root, or tree). Clients derive their live and restart affordances from this table.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: ConfigKeySchemaEntryListResponse | Success |
Item fields: ConfigKeySchemaEntry
| Field | Type | Required | Description |
|---|---|---|---|
apply | ApplyPolicy | yes | How changes take effect. |
has_validator | boolean | yes | Whether the daemon runs extra validation beyond type checking. |
pattern | string | yes | The pattern text: an exact key, a section root, a namespace root suffixed .*, or * for the extensions catch-all. |
protection | Protection | no | Which writes need a protected-control credential. |
redaction | Redaction | yes | Read-surface rendering. |
#Backups
Portable lighting configuration backups and restores.
Backups transfer authored lighting configuration, including scenes, layouts, presets, favorites, and portable preferences. Self-installed effect files and local media stay on their respective machines. Importing an older archive verifies and discards its file payloads; it does not install them or remove existing local resources.
Send the staged preview’s operation ID:
{"operation_id": "019b1f9a-3f4b-7c8d-a2e1-91b4c0d86a25"}The restore merges configuration and favorites and applies the saved selection. Reusing the same staged operation ID replays its durable result after a lost response. If the destination changed after preview, the apply returns 409 Conflict; import the archive again to obtain a fresh preview.
Both preview and apply responses include unresolved_devices (device names) and missing_resources (effect, media, and preset ID arrays under effects, media, and presets). Missing resources keep their authored references; unavailable render sources remain inactive while other configuration restores. Install effects or reconnect media separately where needed.
Request body (application/json, required): BackupApplyRequest.
| Field | Type | Required |
|---|---|---|
operation_id | string (uuid) | yes |
Unknown fields are rejected.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: BackupApplyResponse | Success |
Fields: BackupApplyResponse
| Field | Type | Required |
|---|---|---|
missing_resources | MissingSetupResources | no |
operation_id | string (uuid) | yes |
unresolved_devices | array of string | yes |
The archive downloads with attachment filename hypercolor.hypercolor-backup. Newly exported archives contain no effect or media blobs.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | application/x-tar bytes | Success |
Send the raw archive bytes to validate them and stage a restore preview. The response includes an operation_id, configuration counts, and resource warnings. The preview does not apply the uploaded settings. It captures the destination revision and relevant preferences for the subsequent apply.
Request body (application/octet-stream, required): the raw bytes.
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: BackupPreview | Success |
Fields: BackupPreview
| Field | Type | Required |
|---|---|---|
effects | integer (int64) | yes |
favorites | integer (int64) | yes |
includes_preferences | boolean | yes |
layouts | integer (int64) | yes |
media | integer (int64) | yes |
missing_resources | MissingSetupResources | no |
name | string | yes |
operation_id | string (uuid) | yes |
scenes | integer (int64) | yes |
unresolved_devices | array of string | yes |
#Diagnostics
Daemon diagnostics.
Checks device connectivity, audio capture, effect-engine health, memory, and configuration validity. Memory failures are reported as the named memory check in the same response. The conflicts check scans for competing RGB software before it reports, as devices.competing_software. On Windows the devices checks include devices.smbus_broker, which fails when the HypercolorSmBus broker is installed but not running. The diagnose CLI command and MCP tool use this exact check vocabulary.
Request body (application/json, required): DiagnoseRequest.
| Field | Type | Required |
|---|---|---|
checks | array of string or null | no |
system | boolean or null | no |
Responses
| Status | Body | Meaning |
|---|---|---|
200 | data: DiagnoseResponse | Success |
Fields: DiagnoseResponse
| Field | Type | Required |
|---|---|---|
checks | array of DiagnoseCheck | yes |
snapshot | DiagnoseSnapshot | yes |
summary | DiagnoseSummary | yes |
#WebSocket
Realtime WebSocket endpoint.
Upgrades to the hypercolor-v1 WebSocket subprotocol. Its channels, JSON messages, and binary frames are outside what OpenAPI can describe; the WebSocket protocol and binary frame format pages document them.
Responses
| Status | Body | Meaning |
|---|---|---|
101 | none | Switching protocols |
#Where to go next
For the streaming side of the daemon (live frames, spectrum, preview canvases, and REST-over-WebSocket), see the WebSocket protocol. To drive the same surface from a shell or an agent, see the CLI reference and the Agents and MCP guide. The request and response types are defined once in hypercolor-types::api and shared by the daemon, both UIs, the CLI, and the generated Python client.