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:9420

Two paths sit outside the /api/v1 tree:

PathPurpose
/healthLiveness and readiness check. No authentication and no envelope.
/mcpMCP 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, the meta fields, and every error code. A card whose body reads “no envelope” answers the bare type instead.
  • Collections. List routes put items and total under data, plus a page block on the routes that genuinely page. See list responses.
  • Authentication. Loopback clients need no key. Remote clients send Authorization: Bearer <key>: HYPERCOLOR_API_KEY grants control and HYPERCOLOR_READ_API_KEY grants reads. See auth & security.
  • Concurrency. Structural scene writes accept the scene fence as If-Match, so a stale write returns 412 Precondition Failed instead of overwriting a concurrent edit. Control-value patches never use If-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.

StatusMeaning
400Malformed request
401Authentication required
403Insufficient permission
404Resource not found
409State conflict
412Precondition failed
422Validation failed
429Request rate exceeded
500Internal daemon error

#System

Daemon identity, health, and status.

GET/healthRun daemon health check#

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

StatusBodyMeaning
200HealthResponse, no envelopeSuccess
503HealthResponse, no envelopeService unavailable
Fields: HealthResponse
FieldTypeRequired
checksHealthChecksyes
startupDaemonStartupProgress or nullno
statusstringyes
uptime_secondsinteger (int64)yes
versionstringyes
GET/api/v1/systemGet daemon identity and authorized status#

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.

CapabilityThe daemon
multi-zone-samplingsamples each zone’s outputs from that zone’s own canvas
zone-crudserves the zone create, read, patch, and delete routes
zone-device-assignmentserves the member assignment and removal routes
zone-layout-editserves PUT /scene/zones/{zone}/layout
zone-preview-framespublishes per-zone preview frames
scene-unassigned-behavior-writeaccepts unassigned_behavior on PATCH /scene
layer-scopeaccepts scope on the layer routes, limiting a layer to some of its zone’s outputs
screen-layersrenders 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

StatusBodyMeaning
200data: SystemResourceSuccess
Fields: SystemResource
FieldTypeRequired
identityServerInfoyes
statusSystemStatus or nullno
GET/api/v1/system/audio-devicesList audio input devices#

Capture devices for reactive effects. Pick the monitor of your output, not a microphone, if you want lights to follow what’s playing.

Responses

StatusBodyMeaning
200data: AudioDevicesResponseSuccess
Fields: AudioDevicesResponse
FieldTypeRequired
currentstringyes
devicesarray of AudioDeviceInfoyes
GET/api/v1/system/auditList recent state-changing requests, newest first#

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

NameInTypeRequiredDescription
limitqueryinteger (int32) or nullnoMost entries to return, newest first. Defaults to 100, at most 1000.

Responses

StatusBodyMeaning
200data: AuditEntryListResponseSuccess
Item fields: AuditEntry
FieldTypeRequiredDescription
forwarded_forstring or nullnoWhat 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_msnumber (double)yesHandling time in milliseconds.
methodstringyesHTTP method, or tools/call for MCP.
pathstringyesRequest path without its query string, or the MCP mount path.
remotestringyesThe socket peer’s address, in-process for trusted in-process calls, or unknown when the transport has none. Never read from a header.
statusinteger (int32)yesResponse 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.
storesarray of stringnoDurable stores whose bytes this request changed, by inventory name.
timestampstringyesWhen the request finished, RFC 3339 UTC with milliseconds.
toolstring or nullnoMCP tool name.
transportAuditTransportyes
user_agentstringyesClient User-Agent, capped at 256 characters, empty when absent.
GET/api/v1/system/conflictsList running RGB software that competes for devices#

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

StatusBodyMeaning
200data: SoftwareConflictsStatusSuccess
Fields: SoftwareConflictsStatus
FieldTypeRequiredDescription
conflictsarray of SoftwareConflictyesCompeting software that is running now, in catalog order.
scan_failedbooleannoWhether the latest scan failed. conflicts then still holds the last successful scan’s result rather than claiming nothing runs.
scannedbooleanyesWhether a scan has finished since the daemon started.
supportedbooleanyesWhether this host can list running software. When false, conflicts is always empty and proves nothing.
POST/api/v1/system/conflicts/scanScan now for RGB software that competes for devices#

Returns the same body as GET /api/v1/system/conflicts.

Responses

StatusBodyMeaning
200data: SoftwareConflictsStatusSuccess
Fields: SoftwareConflictsStatus
FieldTypeRequiredDescription
conflictsarray of SoftwareConflictyesCompeting software that is running now, in catalog order.
scan_failedbooleannoWhether the latest scan failed. conflicts then still holds the last successful scan’s result rather than claiming nothing runs.
scannedbooleanyesWhether a scan has finished since the daemon started.
supportedbooleanyesWhether this host can list running software. When false, conflicts is always empty and proves nothing.
GET/api/v1/system/openrgbInspect OpenRGB installation and device coverage#

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

StatusBodyMeaning
200data: OpenRgbStatusSuccess
Fields: OpenRgbStatus
FieldTypeRequired
binary_pathstring or nullno
binary_versionstring or nullno
bridge_configDriverConfigEntryyes
compiledbooleanyes
coveragearray of DeviceCoverageRowyes
enabledbooleanyes
install_hintsarray of OpenRgbInstallHintyes
output_disabled_countintegeryes
permission_checksarray of OpenRgbPermissionStatusyes
platformstringyes
probesarray of OpenRgbEndpointStatusyes
GET/api/v1/system/sensorsList system sensors#

CPU temperature, GPU load, RAM usage, and raw component readings. These feed sensor-bound effect controls.

Responses

StatusBodyMeaning
200data: SystemSnapshotSuccess
Fields: SystemSnapshot
FieldTypeRequiredDescription
componentsarray of SensorReadingyesRaw component readings collected from the host.
cpu_load_percentnumber (float)yesAggregate CPU load across all cores (0.0–100.0).
cpu_loadsarray of number (float)yesPer-core CPU load percentages.
cpu_temp_celsiusnumber (float) or nullnoCPU package temperature, if available.
gpu_load_percentnumber (float) or nullnoGPU load percentage, if available.
gpu_temp_celsiusnumber (float) or nullnoGPU temperature, if available.
gpu_vram_used_mbnumber (float) or nullnoGPU VRAM used in megabytes, if available.
polled_at_msinteger (int64)yesUnix timestamp in milliseconds when the snapshot was polled.
ram_total_mbnumber (double)yesRAM total in megabytes.
ram_used_mbnumber (double)yesRAM used in megabytes.
ram_used_percentnumber (float)yesRAM usage percentage (0.0–100.0).

#Drivers

Driver module inventory and capabilities.

GET/api/v1/driversList driver modules#

Responses

StatusBodyMeaning
200data: DriverSummaryListResponseSuccess
Item fields: DriverSummary
FieldTypeRequired
config_keystringyes
control_surface_idstring or nullno
control_surface_pathstring or nullno
descriptorDriverModuleDescriptoryes
enabledbooleanyes
presentationDriverPresentationyes
protocolsarray of DriverProtocolDescriptorno
GET/api/v1/drivers/{id}/configGet driver module config#

Driver settings are read here rather than through GET /api/v1/config, which masks every drivers entry.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DriverConfigResponseSuccess
Fields: DriverConfigResponse
FieldTypeRequired
config_keystringyes
configurablebooleanyes
currentDriverConfigEntryyes
defaultDriverConfigEntry or nullno
driver_idstringyes

#Devices

Tracked device inventory.

The devices panel in the web UI
GET/api/v1/devicesList tracked devices#

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

NameInTypeRequiredDescription
offsetqueryinteger or nullno
limitqueryinteger or nullno
statusquerystring or nullno
backend_idquerystring or nullno
driverquerystring or nullno
qquerystring or nullnoFree-text filter over device name and model.
includequerystring or nullnoComma-separated summary expansions. The only supported value is attachments.

Responses

StatusBodyMeaning
200data: DeviceSummaryListResponseSuccess
Item fields: DeviceSummary
FieldTypeRequiredDescription
attachmentsDeviceComponentsResponse or nullno
authDeviceAuthSummary or nullno
bridgeBridgeDeviceSummary or nullno
brightnessinteger (int32)yes
connectionDeviceConnectionSummaryno
display_rotationDisplayRotation or nullno
experimentalbooleannoWhether 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_versionstring or nullno
idstringyes
layout_device_idstringyes
namestringyes
originDeviceOriginyes
presentationDriverPresentationyes
segmentsarray of SegmentSummaryno
statusstringyes
total_ledsinteger (int32)yes
GET/api/v1/devices/coverageJoin native, bridge, and unclaimed views per physical device#

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

StatusBodyMeaning
200data: DeviceCoverageRowListResponseSuccess
Item fields: DeviceCoverageRow
FieldTypeRequiredDescription
activeCoverageActiveyes
bridgeCoverageBridgeDevice or nullno
identityCoverageIdentityyes
nativeCoverageNativeDevice or nullno
unclaimedbooleanyesWhether the unclaimed USB inventory also lists this hardware.
POST/api/v1/devices/discoverStart device discovery#

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.

FieldTypeRequiredDescription
targetsarray of string or nullnoDiscovery targets to scan; omitted scans every enabled target.
timeout_msinteger (int64) or nullno
waitboolean or nullnoBlock until the scan finishes instead of returning a scan id.

Responses

StatusBodyMeaning
200data: DiscoverResponseSuccess
202data: DiscoverResponseAccepted; the work completes asynchronously
POST/api/v1/devices/forgetForget saved controller content#

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.

FieldTypeRequired
layout_device_idstringyes

Responses

StatusBodyMeaning
200data: DeleteDeviceResponseSuccess
Fields: DeleteDeviceResponse
FieldTypeRequired
idstringyes
removedbooleanyes
GET/api/v1/devices/unclaimedList USB devices no enabled native driver claims#

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

StatusBodyMeaning
200data: UnclaimedDeviceListResponseSuccess
Item fields: UnclaimedDevice
FieldTypeRequiredDescription
bus_pathstring or nullnoHost bus path (<bus>-<port chain>), when the platform reports one.
claimable_bystring or nullno
experimentalbooleannoWhether the descriptor claimable_by refers to is labeled experimental: nobody has run it on real hardware yet (Spec 89).
interface_classesarray of integer (int32)noUSB interface class codes of the active configuration, sorted and deduplicated; empty where the platform does not expose them.
manufacturerstring or nullnoWho 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.
productstring or nullno
product_idinteger (int32)yes
serialstring or nullno
vendor_idinteger (int32)yes
GET/api/v1/devices/{id}Get one device#

Segments, LED layout, firmware version, and attachment configuration.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeviceSummarySuccess
Fields: DeviceSummary
FieldTypeRequiredDescription
attachmentsDeviceComponentsResponse or nullno
authDeviceAuthSummary or nullno
bridgeBridgeDeviceSummary or nullno
brightnessinteger (int32)yes
connectionDeviceConnectionSummaryno
display_rotationDisplayRotation or nullno
experimentalbooleannoWhether 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_versionstring or nullno
idstringyes
layout_device_idstringyes
namestringyes
originDeviceOriginyes
presentationDriverPresentationyes
segmentsarray of SegmentSummaryno
statusstringyes
total_ledsinteger (int32)yes
PUT/api/v1/devices/{id}Update one device#

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.

FieldTypeRequired
brightnessinteger (int32) or nullno
display_rotationDisplayRotation or nullno
enabledboolean or nullno
namestring or nullno

Responses

StatusBodyMeaning
200data: DeviceSummarySuccess
Fields: DeviceSummary
FieldTypeRequiredDescription
attachmentsDeviceComponentsResponse or nullno
authDeviceAuthSummary or nullno
bridgeBridgeDeviceSummary or nullno
brightnessinteger (int32)yes
connectionDeviceConnectionSummaryno
display_rotationDisplayRotation or nullno
experimentalbooleannoWhether 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_versionstring or nullno
idstringyes
layout_device_idstringyes
namestringyes
originDeviceOriginyes
presentationDriverPresentationyes
segmentsarray of SegmentSummaryno
statusstringyes
total_ledsinteger (int32)yes
DELETE/api/v1/devices/{id}Delete one device#

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

StatusBodyMeaning
200data: DeleteDeviceResponseSuccess
Fields: DeleteDeviceResponse
FieldTypeRequired
idstringyes
removedbooleanyes
GET/api/v1/devices/{id}/attachmentsGet device attachments#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeviceComponentsResponseSuccess
Fields: DeviceComponentsResponse
FieldTypeRequired
bindingsarray of ComponentBindingSummaryno
device_idstringyes
device_namestringyes
slotsarray of ComponentSlotno
suggested_zonesarray of ComponentSuggestedZoneno
PUT/api/v1/devices/{id}/attachmentsUpdate device attachments#

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.

FieldTypeRequiredDescription
bindingsarray of ComponentBindingno
validate_onlybooleannoValidate and resolve the profile without applying any side effects.

Responses

StatusBodyMeaning
200data: DeviceComponentsUpdateResponseSuccess
Fields: DeviceComponentsUpdateResponse
FieldTypeRequired
bindingsarray of ComponentBindingSummaryno
device_idstringyes
device_namestringyes
needs_layout_updatebooleanyes
slotsarray of ComponentSlotno
suggested_zonesarray of ComponentSuggestedZoneno
DELETE/api/v1/devices/{id}/attachmentsDelete device attachments#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeleteAttachmentsResponseSuccess
Fields: DeleteAttachmentsResponse
FieldTypeRequired
deletedbooleanyes
device_idstringyes
POST/api/v1/devices/{id}/attachments/{slot}/identifyIdentify one attachment#

Path parameters: id, slot (strings).

Request body (application/json, optional): IdentifyAttachmentRequest.

Every field of IdentifyRequest, plus:

FieldTypeRequired
binding_indexinteger or nullno
instanceinteger (int32) or nullno

Responses

StatusBodyMeaning
200data: IdentifyAttachmentResponseSuccess
Fields: IdentifyAttachmentResponse
FieldTypeRequired
binding_indexintegeryes
colorstring or nullno
device_idstringyes
duration_msinteger (int64)yes
identifyingbooleanyes
instanceinteger (int32) or nullno
slot_idstringyes
POST/api/v1/devices/{id}/identifyIdentify one device#

Flashes the device’s LEDs so you can spot it physically.

Path parameters: id (string).

Request body (application/json, optional): IdentifyRequest.

FieldTypeRequired
colorstring or nullno
duration_msinteger (int64) or nullno

Responses

StatusBodyMeaning
200data: IdentifyDeviceResponseSuccess
Fields: IdentifyDeviceResponse
FieldTypeRequired
colorstring or nullno
device_idstringyes
duration_msinteger (int64)yes
identifyingbooleanyes
POST/api/v1/devices/{id}/pairPair one device#

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

StatusBodyMeaning
200data: PairDeviceResponseSuccess
Fields: PairDeviceResponse
FieldTypeRequiredDescription
activatedbooleannoWhether the device was connected and started rendering as part of the pairing.
deviceDeviceSummary or nullno
messagestringyes
statusstringyes
DELETE/api/v1/devices/{id}/pairDelete one device pairing#

Forgets the device’s stored pairing credentials.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeletePairingResponseSuccess
Fields: DeletePairingResponse
FieldTypeRequiredDescription
deviceDeviceSummary or nullno
disconnectedbooleannoWhether forgetting the credentials also dropped a live connection.
messagestringyes
statusstringno
POST/api/v1/devices/{id}/segments/{segment}/identifyIdentify one device segment#

Path parameters: id, segment (strings).

Request body (application/json, optional): IdentifyRequest.

FieldTypeRequired
colorstring or nullno
duration_msinteger (int64) or nullno

Responses

StatusBodyMeaning
200data: IdentifySegmentResponseSuccess
Fields: IdentifySegmentResponse
FieldTypeRequired
colorstring or nullno
device_idstringyes
duration_msinteger (int64)yes
identifyingbooleanyes
segmentstringyes
segment_namestringyes

#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.

GET/api/v1/control-surfacesList control surfaces#

Parameters

NameInTypeRequiredDescription
device_idquerystring or nullno
driver_idquerystring or nullno
include_driverqueryboolean or nullnoAlso include the device’s owning driver surface.

Responses

StatusBodyMeaning
200data: ControlSurfaceDocumentListResponseSuccess
Item fields: ControlSurfaceDocument
FieldTypeRequiredDescription
action_availabilityBTreeMapyesResolved availability keyed by action ID.
actionsarray of ControlActionDescriptoryesAction descriptors.
availabilityBTreeMapyesResolved availability keyed by field ID.
fieldsarray of ControlFieldDescriptoryesField descriptors.
groupsarray of ControlGroupDescriptoryesSemantic groups for fields and actions.
revisionu64yesCurrent descriptor/value revision.
schema_versioninteger (int32)yesControl-surface schema version.
scopeControlSurfaceScopeyesScope represented by this document.
surface_idStringyesStable surface identifier.
valuesobjectyesCurrent field values keyed by field ID.
GET/api/v1/control-surfaces/{id}Get control surface#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: ControlSurfaceDocumentSuccess
Fields: ControlSurfaceDocument
FieldTypeRequiredDescription
action_availabilityBTreeMapyesResolved availability keyed by action ID.
actionsarray of ControlActionDescriptoryesAction descriptors.
availabilityBTreeMapyesResolved availability keyed by field ID.
fieldsarray of ControlFieldDescriptoryesField descriptors.
groupsarray of ControlGroupDescriptoryesSemantic groups for fields and actions.
revisionu64yesCurrent descriptor/value revision.
schema_versioninteger (int32)yesControl-surface schema version.
scopeControlSurfaceScopeyesScope represented by this document.
surface_idStringyesStable surface identifier.
valuesobjectyesCurrent field values keyed by field ID.
POST/api/v1/control-surfaces/{id}/actions/{action}Invoke control surface action#

Actions are typed operations such as Discover, Sync, and Reset.

Path parameters: id, action (strings).

Request body (application/json, required): InvokeControlActionRequest.

FieldTypeRequired
inputBTreeMapno

Responses

StatusBodyMeaning
200data: ControlActionResultSuccess
Fields: ControlActionResult
FieldTypeRequiredDescription
action_idStringyesAction that ran.
resultobject or nullnoOptional typed result.
revisionu64yesResulting surface revision.
statusControlActionStatusyesAction status.
surface_idStringyesTarget surface.
PATCH/api/v1/control-surfaces/{id}/valuesApply control surface values#

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.

FieldTypeRequired
clear_bindingsarray of stringno
valuesmap of ControlValueno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ApplyControlChangesResponseSuccess
Fields: ApplyControlChangesResponse
FieldTypeRequiredDescription
acceptedarray of AppliedControlChangeyesAccepted changes after driver normalization.
impactsarray of ApplyImpactyesDynamic impacts produced by the transaction.
previous_revisionu64yesPrevious revision.
rejectedarray of RejectedControlChangeyesRejected changes.
revisionu64yesNew revision.
surface_idStringyesTarget surface.
valuesobjectyesCurrent values after the transaction.
GET/api/v1/devices/{id}/controlsGet device control surface#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: ControlSurfaceDocumentSuccess
Fields: ControlSurfaceDocument
FieldTypeRequiredDescription
action_availabilityBTreeMapyesResolved availability keyed by action ID.
actionsarray of ControlActionDescriptoryesAction descriptors.
availabilityBTreeMapyesResolved availability keyed by field ID.
fieldsarray of ControlFieldDescriptoryesField descriptors.
groupsarray of ControlGroupDescriptoryesSemantic groups for fields and actions.
revisionu64yesCurrent descriptor/value revision.
schema_versioninteger (int32)yesControl-surface schema version.
scopeControlSurfaceScopeyesScope represented by this document.
surface_idStringyesStable surface identifier.
valuesobjectyesCurrent field values keyed by field ID.
GET/api/v1/drivers/{id}/controlsGet driver control surface#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: ControlSurfaceDocumentSuccess
Fields: ControlSurfaceDocument
FieldTypeRequiredDescription
action_availabilityBTreeMapyesResolved availability keyed by action ID.
actionsarray of ControlActionDescriptoryesAction descriptors.
availabilityBTreeMapyesResolved availability keyed by field ID.
fieldsarray of ControlFieldDescriptoryesField descriptors.
groupsarray of ControlGroupDescriptoryesSemantic groups for fields and actions.
revisionu64yesCurrent descriptor/value revision.
schema_versioninteger (int32)yesControl-surface schema version.
scopeControlSurfaceScopeyesScope represented by this document.
surface_idStringyesStable surface identifier.
valuesobjectyesCurrent field values keyed by field ID.

#Effects

Effect catalog and runtime control.

Browsing the effect catalog in the web UI

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.

GET/api/v1/effectsList effects#

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

NameInTypeRequiredDescription
categoryqueryEffectCategory or nullnoExact effect category.
audio_reactivequeryboolean or nullnoDeclared audio reactivity.
screen_reactivequeryboolean or nullnoDeclared screen reactivity.
input_reactivequeryboolean or nullnoDeclared input reactivity.
sourcequeryEffectSourceKind or nullnoRendering implementation.
qquerystring or nullnoCase-insensitive substring over name, description, author, tags.
includequerystring or nullnoComma-separated expansions: controls, presets.

Responses

StatusBodyMeaning
200data: EffectSummaryListResponseSuccess
Item fields: EffectSummary
FieldTypeRequired
audio_reactivebooleanno
authorstringyes
capabilitiesEffectCapabilitySetno
categoryEffectCategoryyes
controlsarray of ControlDefinition or nullno
cover_image_urlstring or nullno
descriptionstringyes
idstringyes
input_reactivebooleanno
namestringyes
presetsarray of PresetTemplate or nullno
runnablebooleanyes
sourceEffectSourceKindyes
tagsarray of stringyes
versionstringyes
GET/api/v1/effects/consoleRead effect console output#

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

NameInTypeRequiredDescription
afterqueryinteger (int64)noReturn only messages recorded after this cursor (a previous response’s next_seq). Omit or pass 0 for everything retained.
limitqueryintegernoMost messages to return, 1 to 500. Defaults to 100.
effectquerystringnoEffect id or name to narrow to.
levelqueryEffectConsoleLevelnoLowest severity to include: debug (default), log, warn, or error.

Responses

StatusBodyMeaning
200data: EffectConsoleResponseSuccess
Fields: EffectConsoleResponse
FieldTypeRequiredDescription
entriesarray of EffectConsoleEntryyesMatching messages after the cursor, oldest first.
next_seqinteger (int64)yesCursor for the next read.
truncatedbooleanyesWhether output after the requested cursor was evicted before this read, so some messages were missed.
POST/api/v1/effects/installInstall effect#

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.

FieldTypeRequiredDescription
filebinaryyesThe HTML effect document, sent as a file part with a file name.

Responses

StatusBodyMeaning
201data: InstalledEffectResponseCreated
Fields: InstalledEffectResponse
FieldTypeRequiredDescription
console_afterinteger (int64)noEffect 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.
controlsintegeryes
idstringyes
namestringyes
pathstringyes
presetsintegeryes
POST/api/v1/effects/rescanRescan effects#

Picks up newly built effects without restarting the daemon. Call this after shipping an effect from the SDK.

Responses

StatusBodyMeaning
200data: RescanResponseSuccess
Fields: RescanResponse
FieldTypeRequired
addedintegeryes
removedintegeryes
updatedintegeryes
GET/api/v1/effects/{id}Get effect#

The controls array (types, ranges, defaults) is what a UI renders into sliders, color pickers, and dropdowns.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: EffectDetailResponseSuccess
Fields: EffectDetailResponse
FieldTypeRequired
audio_reactivebooleanyes
authorstringyes
categoryEffectCategoryyes
controlsarray of ControlDefinitionno
cover_image_urlstring or nullno
descriptionstringyes
idstringyes
namestringyes
presetsarray of PresetTemplateno
runnablebooleanyes
sourceEffectSourceKindyes
tagsarray of stringyes
versionstringyes
POST/api/v1/effects/{id}/applyApply effect#

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

NameInTypeRequiredDescription
idpathstringyes
If-MatchheaderstringnoScene 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.

FieldTypeRequiredDescription
controlsmap of ControlValue or nullno
preset_idPresetId or nullno
transitionTransitionType or nullno
zonestring or nullnoTarget zone; omitted means the primary zone, created if the scene has none.

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ApplyEffectResponseSuccess
Fields: ApplyEffectResponse
FieldTypeRequiredDescription
outputSideEffectOutcomeyesThe post-commit power-wake outcome.
transitionTransitionTypeyes
zoneZoneResourceyes
GET/api/v1/effects/{id}/coverGet effect cover image#

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

NameInTypeRequiredDescription
idpathstringyes
vquerystringnoThe SHA-256 the cover URL names. When it matches the cover served, the response may be cached forever.

Responses

StatusBodyMeaning
200image/webp or image/png or image/jpeg bytesSuccess
304noneNot modified: the copy the client holds is current
GET/api/v1/effects/{id}/presetsList effect presets#

Lists the bundled and saved presets available for this effect.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: EffectPresetSummaryListResponseSuccess
Item fields: EffectPresetSummary
FieldTypeRequired
controlsmap of ControlValueyes
descriptionstring or nullno
editablebooleanyes
effect_idstringyes
idstringyes
namestringyes
originEffectPresetOriginyes
tagsarray of stringno
POST/api/v1/effects/{id}/presets/{preset}/applyApply effect preset#

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

NameInTypeRequiredDescription
idpathstringyes
presetpathstringyes
If-MatchheaderstringnoScene 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.

FieldTypeRequiredDescription
controlsmap of ControlValue or nullno
preset_idPresetId or nullno
transitionTransitionType or nullno
zonestring or nullnoTarget zone; omitted means the primary zone, created if the scene has none.

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ApplyEffectResponseSuccess
Fields: ApplyEffectResponse
FieldTypeRequiredDescription
outputSideEffectOutcomeyesThe post-commit power-wake outcome.
transitionTransitionTypeyes
zoneZoneResourceyes

#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.

GET/api/v1/canvas/frameCapture the composed canvas (JPEG, or PNG with format=png)#

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.png

Parameters

NameInTypeRequiredDescription
formatqueryCanvasImageFormatnoImage encoding: jpeg (default) or png.
widthqueryinteger (int32)noOutput width in pixels. Omit or pass 0 for the canvas width; set only one side to keep the canvas aspect ratio. Never upscales.
heightqueryinteger (int32)noOutput height in pixels, with the same rules as width.

Responses

StatusBodyMeaning
200image/jpeg or image/png bytesSuccess

#Assets

Uploaded media assets.

GET/api/v1/assetsList media assets#

Responses

StatusBodyMeaning
200data: MediaAssetRecordListResponseSuccess
Item fields: MediaAssetRecord
FieldTypeRequired
byte_leninteger (int64)yes
created_atstringyes
duration_usinteger (int64) or nullno
frame_countinteger (int32) or nullno
hash_sha256stringyes
idAssetIdyes
intrinsic_heightinteger (int32) or nullno
intrinsic_widthinteger (int32) or nullno
mime_typestringyes
modified_atstringyes
namestringyes
scan_statusAssetScanStatusno
tagsarray of stringno
warningsarray of AssetWarningno
POST/api/v1/assetsUpload a media asset#

Parameters

NameInTypeRequiredDescription
rename_duplicatequerybooleannoStore a byte-identical upload under a fresh name instead of returning the existing record.
typequerystring or nullnoExplicit asset type hint, overriding sniffing.

Request body (multipart/form-data, required): AssetUploadForm.

FieldTypeRequiredDescription
filebinaryyesThe asset bytes, sent as a file part. Required.
namestringnoDisplay name; defaults to the uploaded file name. Omit the part rather than sending an empty or null value.
tagsstringnoTags, comma separated or as a JSON array of strings. Omit the part when there are none.
typestringnoAsset type hint (lottie or stream), overriding the type query parameter and content sniffing. Omit the part to let the daemon sniff.

Responses

StatusBodyMeaning
200data: AssetUploadResponseSuccess
201data: AssetUploadResponseCreated
Fields: AssetUploadResponse

Every field of MediaAssetRecord, plus:

FieldTypeRequired
duplicatebooleanyes
GET/api/v1/assets/{id}Get one media asset#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: MediaAssetRecordSuccess
Fields: MediaAssetRecord
FieldTypeRequired
byte_leninteger (int64)yes
created_atstringyes
duration_usinteger (int64) or nullno
frame_countinteger (int32) or nullno
hash_sha256stringyes
idAssetIdyes
intrinsic_heightinteger (int32) or nullno
intrinsic_widthinteger (int32) or nullno
mime_typestringyes
modified_atstringyes
namestringyes
scan_statusAssetScanStatusno
tagsarray of stringno
warningsarray of AssetWarningno
PUT/api/v1/assets/{id}Update one media asset#

Path parameters: id (string).

Request body (application/json, required): AssetUpdateRequest.

FieldTypeRequired
namestring or nullno
tagsarray of string or nullno

Responses

StatusBodyMeaning
200data: MediaAssetRecordSuccess
Fields: MediaAssetRecord
FieldTypeRequired
byte_leninteger (int64)yes
created_atstringyes
duration_usinteger (int64) or nullno
frame_countinteger (int32) or nullno
hash_sha256stringyes
idAssetIdyes
intrinsic_heightinteger (int32) or nullno
intrinsic_widthinteger (int32) or nullno
mime_typestringyes
modified_atstringyes
namestringyes
scan_statusAssetScanStatusno
tagsarray of stringno
warningsarray of AssetWarningno
DELETE/api/v1/assets/{id}Delete one media asset#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeleteAssetResponseSuccess
Fields: DeleteAssetResponse
FieldTypeRequired
removedAssetIdyes
GET/api/v1/assets/{id}/blobDownload media asset bytes#

Path parameters: id (string).

Responses

StatusBodyMeaning
200application/octet-stream bytesSuccess
GET/api/v1/assets/{id}/thumbnailGet a media asset thumbnail#

Path parameters: id (string).

Responses

StatusBodyMeaning
200image/webp bytesSuccess

#Media

Now-playing media application access.

POST/api/v1/media/authorizeRequest media Automation authorization#

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.

FieldTypeRequiredDescription
adapterMediaAuthorizationAdapteryesAlready-running media application to authorize.

Responses

StatusBodyMeaning
200data: MediaAuthorizationResponseSuccess
Fields: MediaAuthorizationResponse
FieldTypeRequiredDescription
adapterMediaAuthorizationAdapteryesApplication whose access was authorized.
authorizedbooleanyesWhether 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.

GET/api/v1/displaysList display devices#

Responses

StatusBodyMeaning
200data: DisplaySummaryListResponseSuccess
Item fields: DisplaySummary
FieldTypeRequiredDescription
circularbooleanyes
descriptorDisplayDescriptoryesFull surface description (shape, safe area, fps, pixel format) — the same descriptor injected into face pages.
familystringyes
heightinteger (int32)yes
idstringyes
namestringyes
rotationDisplayRotationnoHow the panel is mounted; everything drawn on it turns to match.
vendorstringyes
widthinteger (int32)yes
GET/api/v1/displays/{id}/faceGet display face assignment#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DisplayFaceResponseOptionalSuccess
PUT/api/v1/displays/{id}/faceSet display face assignment#

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.

FieldTypeRequired
blend_modeBlendMode or nullno
controlsmap of ControlValueno
effect_idstringyes
opacitynumber (float) or nullno
scopeDisplayFaceScopeno

Responses

StatusBodyMeaning
200data: DisplayFaceResponseSuccess
Fields: DisplayFaceResponse
FieldTypeRequiredDescription
default_assignedbooleannoWhether a persisted default face exists for this display.
device_idstringyes
effectEffectMetadatayes
live_scopeDisplayFaceScopenoWhich layer the returned assignment lives on.
renderingDisplayFaceRendering or nullno
scene_assignedbooleannoWhether the active scene has its own face assignment for this display.
scene_idstringyes
zoneobjectyes
DELETE/api/v1/displays/{id}/faceDelete display face assignment#

Parameters

NameInTypeRequiredDescription
idpathstringyes
scopequeryDisplayFaceScopeno

Responses

StatusBodyMeaning
200data: DeleteDisplayFaceResponseSuccess
Fields: DeleteDisplayFaceResponse
FieldTypeRequired
deletedbooleanyes
device_idstringyes
scene_idstring or nullno
scopeDisplayFaceScopeyes
PATCH/api/v1/displays/{id}/face/compositionPatch display face composition#

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.

FieldTypeRequired
blend_modeBlendMode or nullno
opacitynumber (float) or nullno

Responses

StatusBodyMeaning
200data: DisplayFaceResponseSuccess
Fields: DisplayFaceResponse
FieldTypeRequiredDescription
default_assignedbooleannoWhether a persisted default face exists for this display.
device_idstringyes
effectEffectMetadatayes
live_scopeDisplayFaceScopenoWhich layer the returned assignment lives on.
renderingDisplayFaceRendering or nullno
scene_assignedbooleannoWhether the active scene has its own face assignment for this display.
scene_idstringyes
zoneobjectyes
PATCH/api/v1/displays/{id}/face/controlsPatch display face controls#

Path parameters: id (string).

Request body (application/json, required): PatchControlsRequest.

FieldTypeRequired
clear_bindingsarray of stringno
valuesmap of ControlValueno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: DisplayFaceResponseSuccess
Fields: DisplayFaceResponse
FieldTypeRequiredDescription
default_assignedbooleannoWhether a persisted default face exists for this display.
device_idstringyes
effectEffectMetadatayes
live_scopeDisplayFaceScopenoWhich layer the returned assignment lives on.
renderingDisplayFaceRendering or nullno
scene_assignedbooleannoWhether the active scene has its own face assignment for this display.
scene_idstringyes
zoneobjectyes
GET/api/v1/displays/{id}/frameGet display preview image#

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

StatusBodyMeaning
200image/jpeg bytesSuccess

#Simulators

Virtual display simulators let you build and test face effects with no physical display attached.

GET/api/v1/simulators/displaysList simulated displays#

Responses

StatusBodyMeaning
200data: SimulatedDisplayListResponseSuccess
Item fields: SimulatedDisplay
FieldTypeRequired
circularbooleanno
enabledbooleanno
heightinteger (int32)yes
idDeviceIdyes
namestringyes
widthinteger (int32)yes
POST/api/v1/simulators/displaysCreate simulated display#

Request body (application/json, required): CreateSimulatedDisplayRequest.

FieldTypeRequired
circularbooleanno
enabledboolean or nullno
heightinteger (int32)yes
namestringyes
widthinteger (int32)yes

Responses

StatusBodyMeaning
201data: SimulatedDisplayCreated
Fields: SimulatedDisplay
FieldTypeRequired
circularbooleanno
enabledbooleanno
heightinteger (int32)yes
idDeviceIdyes
namestringyes
widthinteger (int32)yes
GET/api/v1/simulators/displays/{id}Get simulated display#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: SimulatedDisplaySuccess
Fields: SimulatedDisplay
FieldTypeRequired
circularbooleanno
enabledbooleanno
heightinteger (int32)yes
idDeviceIdyes
namestringyes
widthinteger (int32)yes
PATCH/api/v1/simulators/displays/{id}Patch simulated display#

Path parameters: id (string).

Request body (application/json, required): UpdateSimulatedDisplayRequest.

FieldTypeRequired
circularboolean or nullno
enabledboolean or nullno
heightinteger (int32) or nullno
namestring or nullno
widthinteger (int32) or nullno

Responses

StatusBodyMeaning
200data: SimulatedDisplaySuccess
Fields: SimulatedDisplay
FieldTypeRequired
circularbooleanno
enabledbooleanno
heightinteger (int32)yes
idDeviceIdyes
namestringyes
widthinteger (int32)yes
DELETE/api/v1/simulators/displays/{id}Delete simulated display#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeleteSimulatedDisplayResponseSuccess
Fields: DeleteSimulatedDisplayResponse
FieldTypeRequired
deletedbooleanyes
idDeviceIdyes
GET/api/v1/simulators/displays/{id}/frameGet simulated display frame#

The latest composited frame from the simulated display.

Path parameters: id (string).

Responses

StatusBodyMeaning
200image/jpeg bytesSuccess

#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.

GET/api/v1/attachments/templatesList attachment templates#

Lists built-in and user-defined templates. This route pages: limit defaults to 50 and anything above 200 is rejected with validation_error.

Parameters

NameInTypeRequiredDescription
offsetqueryinteger or nullno
limitqueryinteger or nullno
categoryquerystring or nullno
vendorquerystring or nullno
originquerystring or nullno
qquerystring or nullnoFree-text filter over template name and description.
controller_idquerystring or nullnoRestrict to templates a given controller can host.
modelquerystring or nullno
slot_idquerystring or nullno
led_minqueryinteger (int32) or nullno
led_maxqueryinteger (int32) or nullno

Responses

StatusBodyMeaning
200data: TemplateSummaryListResponseSuccess
Item fields: TemplateSummary
FieldTypeRequired
categoryComponentCategoryyes
descriptionstringyes
idstringyes
image_urlstring or nullno
led_countinteger (int32)yes
namestringyes
originComponentOriginyes
tagsarray of stringno
vendorstringyes
POST/api/v1/attachments/templatesCreate attachment template#

Request body (application/json, required): ComponentTemplate.

FieldTypeRequiredDescription
categoryComponentCategoryyesUI grouping category.
compatible_slotsarray of ComponentCompatibilitynoOptional controller/slot filters.
default_sizeComponentCanvasSizenoDefault visual size when dropped into a layout.
descriptionstringnoOptional descriptive text.
idstringyesStable template identifier.
image_urlstring or nullnoOptional product/marketing image URL.
led_mappingarray of integer (int32) or nullnoOptional spatial-index -> physical-index remapping table.
led_namesarray of string or nullnoOptional user-facing labels for each LED.
namestringyesHuman-readable display name.
originComponentOriginnoBuilt-in or user-authored template.
physical_size_mmarray of number (float) or nullnoOptional physical dimensions in millimeters. At least 2 items, at most 2 items.
tagsarray of stringnoSearch/filter tags.
topologyLedTopologyyesPhysical LED topology for this attachment.
vendorstringnoAccessory vendor or ecosystem (e.g. Lian Li, Corsair).

Responses

StatusBodyMeaning
201data: TemplateDetailCreated
Fields: TemplateDetail
FieldTypeRequiredDescription
categoryComponentCategoryyes
compatible_slotsarray of ComponentCompatibilityno
default_sizeComponentCanvasSizeyes
descriptionstringyes
idstringyes
image_urlstring or nullno
led_countinteger (int32)yes
led_mappingarray of integer (int32) or nullno
led_namesarray of string or nullno
led_positionsarray of NormalizedPositionno
namestringyes
originComponentOriginyes
physical_size_mmarray of number (float) or nullnoPhysical footprint in millimeters, as [width, height]. At least 2 items, at most 2 items.
tagsarray of stringno
topologyLedTopologyyes
vendorstringyes

#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.

GET/api/v1/outputGet global output power and brightness#
{
  "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

StatusBodyMeaning
200data: OutputResourceSuccess
Fields: OutputResource
FieldTypeRequiredDescription
brightnessnumber (float)yesGlobal brightness, 0.0..=1.0.
powerOutputPowerModeyes
PATCH/api/v1/outputSet global output power, brightness, or both#

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.

FieldTypeRequired
brightnessnumber (float) or nullno
powerOutputPowerMode or nullno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: OutputResourceSuccess
Fields: OutputResource
FieldTypeRequiredDescription
brightnessnumber (float)yesGlobal brightness, 0.0..=1.0.
powerOutputPowerModeyes

#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.

The scenes panel in the web UI

#Stored scenes

Stored scenes are edited as whole documents with PUT /scenes/{id}; the fine-grained editing routes below address the live scene only.

GET/api/v1/scenesList scenes#

Responses

StatusBodyMeaning
200data: SceneSummaryListResponseSuccess
Item fields: SceneSummary
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullnoBrightness applied on activation, when the scene sets one.
descriptionstring or nullno
enabledbooleannoWhether the scene participates in activation. Defaults true for daemons that predate the field.
idstringyes
layout_idLayoutId or nullno
mutation_modestringnoLive vs snapshot-locked. Lets scene pickers mark locked scenes without inferring lock state from the live scene kind.
namestringyes
priorityinteger (int32)no
POST/api/v1/scenesCreate scene#

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.

FieldTypeRequired
descriptionstring or nullno
enabledboolean or nullno
mutation_modestring or nullno
namestringyes

Responses

StatusBodyMeaning
201data: SceneSummaryCreated
Fields: SceneSummary
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullnoBrightness applied on activation, when the scene sets one.
descriptionstring or nullno
enabledbooleannoWhether the scene participates in activation. Defaults true for daemons that predate the field.
idstringyes
layout_idLayoutId or nullno
mutation_modestringnoLive vs snapshot-locked. Lets scene pickers mark locked scenes without inferring lock state from the live scene kind.
namestringyes
priorityinteger (int32)no
POST/api/v1/scenes/snapshotSnapshot the active scene#

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.

FieldTypeRequired
descriptionstring or nullno
namestringyes

Unknown fields are rejected.

Responses

StatusBodyMeaning
201data: SceneSummaryCreated
Fields: SceneSummary
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullnoBrightness applied on activation, when the scene sets one.
descriptionstring or nullno
enabledbooleannoWhether the scene participates in activation. Defaults true for daemons that predate the field.
idstringyes
layout_idLayoutId or nullno
mutation_modestringnoLive vs snapshot-locked. Lets scene pickers mark locked scenes without inferring lock state from the live scene kind.
namestringyes
priorityinteger (int32)no
GET/api/v1/scenes/{id}Get scene#

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

StatusBodyMeaning
200data: SceneDocumentSuccess
Fields: SceneDocument
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanno
idstringyes
is_defaultbooleanyesWhether this is the auto-managed default scene, which cannot be renamed or deleted.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)no
revisioninteger (int64)yesThe 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_epochstringnoOpaque 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.
transitionobjectno
unassigned_behaviorstringno
zonesarray of ZoneResourceyesEvery authored zone with its full stack, declaration order.
PUT/api/v1/scenes/{id}Update scene#

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

NameInTypeRequiredDescription
idpathstringyes
If-MatchheaderstringnoScene 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.

FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanyes
idstring or nullno
is_defaultboolean or nullnoEcho of the read-only default-scene flag. Must match the stored scene when present; it can never be changed.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)yes
revisioninteger (int64) or nullnoThe 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_epochstring or nullnoEcho 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.
transitionobjectyes
unassigned_behaviorstringno
zonesarray of ReplaceZoneRequestno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: SceneDocumentSuccess
Fields: SceneDocument
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanno
idstringyes
is_defaultbooleanyesWhether this is the auto-managed default scene, which cannot be renamed or deleted.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)no
revisioninteger (int64)yesThe 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_epochstringnoOpaque 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.
transitionobjectno
unassigned_behaviorstringno
zonesarray of ZoneResourceyesEvery authored zone with its full stack, declaration order.
DELETE/api/v1/scenes/{id}Delete scene#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeleteSceneResponseSuccess
Fields: DeleteSceneResponse
FieldTypeRequired
deletedbooleanyes
idstringyes
POST/api/v1/scenes/{id}/activateActivate scene#

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.

FieldTypeRequiredDescription
transition_msinteger (int64) or nullnoOverride the scene’s authored transition duration.

Responses

StatusBodyMeaning
200data: ActivateSceneResponseSuccess
Fields: ActivateSceneResponse
FieldTypeRequired
activatedbooleanyes
brightnessSideEffectOutcomeyes
layoutSceneLayoutActivationOutcomeyes
sceneActivatedSceneRefyes

#Live scene

GET/api/v1/sceneGet the 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

StatusBodyMeaning
200data: SceneDocumentSuccess
Fields: SceneDocument
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanno
idstringyes
is_defaultbooleanyesWhether this is the auto-managed default scene, which cannot be renamed or deleted.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)no
revisioninteger (int64)yesThe 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_epochstringnoOpaque 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.
transitionobjectno
unassigned_behaviorstringno
zonesarray of ZoneResourceyesEvery authored zone with its full stack, declaration order.
PATCH/api/v1/scenePatch live scene metadata#

Changes the live scene’s name or unassigned_behavior. The default scene cannot be renamed.

Parameters

NameInTypeRequiredDescription
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequiredDescription
namestring or nullnoRename; rejected for the default scene.
unassigned_behaviorstring or nullno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: SceneDocumentSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: SceneDocument
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanno
idstringyes
is_defaultbooleanyesWhether this is the auto-managed default scene, which cannot be renamed or deleted.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)no
revisioninteger (int64)yesThe 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_epochstringnoOpaque 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.
transitionobjectno
unassigned_behaviorstringno
zonesarray of ZoneResourceyesEvery authored zone with its full stack, declaration order.
POST/api/v1/scene/clearClear live scene layers#

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

NameInTypeRequiredDescription
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequiredDescription
zonestring or nullnoClear one non-display zone’s stack; omitted clears every non-display zone.

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: SceneDocumentSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: SceneDocument
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanno
idstringyes
is_defaultbooleanyesWhether this is the auto-managed default scene, which cannot be renamed or deleted.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)no
revisioninteger (int64)yesThe 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_epochstringnoOpaque 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.
transitionobjectno
unassigned_behaviorstringno
zonesarray of ZoneResourceyesEvery authored zone with its full stack, declaration order.
POST/api/v1/scene/deactivateReturn to the default scene#

Returns to the default scene and answers with the new live scene document.

Responses

StatusBodyMeaning
200data: SceneDocumentSuccess
Fields: SceneDocument
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanno
idstringyes
is_defaultbooleanyesWhether this is the auto-managed default scene, which cannot be renamed or deleted.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)no
revisioninteger (int64)yesThe 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_epochstringnoOpaque 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.
transitionobjectno
unassigned_behaviorstringno
zonesarray of ZoneResourceyesEvery 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}.

Building zones in Studio
POST/api/v1/scene/members/editAtomically edit live scene memberships#

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 changes array containing before and after states. Each state contains zone_id, the complete output, and its ordered index. A null before adds an output; a null after removes it.
  • Device assignment: an assignment object containing the target zone_id, device_id, optional segments, and optional placements. Leave changes empty. 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

NameInTypeRequiredDescription
If-MatchheaderstringyesScene 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-KeyheaderstringnoClient-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.

FieldTypeRequiredDescription
assignmentMemberAssignmentTarget or nullno
changesarray of MemberEditno
layer_movesarray of LayerMove or nullnoThe 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_idstringyes

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: EditMembersResponseSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: EditMembersResponse
FieldTypeRequiredDescription
changesarray of MemberEdityes
documentSceneDocumentyes
layer_movesarray of LayerMovenoEvery scoped layer the edit moved or narrowed, in the order a replay applies them.
POST/api/v1/scene/zonesCreate a live scene zone#
{
  "name": "Desk",
  "color": "#80ffea"
}

Parameters

NameInTypeRequiredDescription
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequired
colorstring or nullno
namestringyes
rolestring or nullno

Unknown fields are rejected.

Responses

StatusBodyMeaning
201data: ZoneResourceCreated
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
GET/api/v1/scene/zones/{zone}Get a live scene zone#

Path parameters: zone (string).

Responses

StatusBodyMeaning
200data: ZoneResourceSuccess
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
PATCH/api/v1/scene/zones/{zone}Patch a live scene zone#

Updates a zone’s name, enabled state, brightness, or color.

{
  "name": "Desk halo",
  "brightness": 0.8,
  "enabled": true
}

Parameters

NameInTypeRequiredDescription
zonepathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequiredDescription
brightnessnumber (float) or nullno
colorstring or nullnoTri-state: missing leaves the color, null clears it, a value sets it.
enabledboolean or nullno
indexinteger or nullnoMove 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.
namestring or nullno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ZoneResourceSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
DELETE/api/v1/scene/zones/{zone}Delete a live scene zone#

The default and display zones cannot be deleted through this route.

Parameters

NameInTypeRequiredDescription
zonepathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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

StatusBodyMeaning
200data: SceneDocumentSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: SceneDocument
FieldTypeRequiredDescription
activation_brightnessnumber (float) or nullno
descriptionstring or nullno
enabledbooleanno
idstringyes
is_defaultbooleanyesWhether this is the auto-managed default scene, which cannot be renamed or deleted.
kindstringyes
layout_idLayoutId or nullno
metadatamap of stringno
mutation_modestringno
namestringyes
priorityinteger (int32)no
revisioninteger (int64)yesThe 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_epochstringnoOpaque 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.
transitionobjectno
unassigned_behaviorstringno
zonesarray of ZoneResourceyesEvery authored zone with its full stack, declaration order.
PUT/api/v1/scene/zones/{zone}/layoutReplace a live zone layout#

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

NameInTypeRequiredDescription
zonepathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequired
placementsarray of MemberPlacementyes

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ZoneResourceSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
POST/api/v1/scene/zones/{zone}/membersAssign members to a live zone#

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

NameInTypeRequiredDescription
zonepathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequiredDescription
device_idstringyes
segmentsarray of stringnoSegment names to assign; empty assigns the whole device on single-segment hardware.

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ZoneResourceSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
DELETE/api/v1/scene/zones/{zone}/members/{member}Unassign a live zone member#

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_behavior applies 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

NameInTypeRequiredDescription
zonepathstringyes
memberpathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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

StatusBodyMeaning
200data: ZoneResourceSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno

#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.

GET/api/v1/scene/zones/{zone}/layersList live zone layers#

Path parameters: zone (string).

Responses

StatusBodyMeaning
200data: SceneLayerListResponseSuccess
Item fields: SceneLayer
FieldTypeRequiredDescription
adjustLayerAdjustnoColor adjustments applied after the source produces a frame.
bindingsarray of LayerBindingnoLive scalar bindings for layer parameters.
blendBlendModenoHow this layer composes with the layer beneath it.
enabledbooleannoWhether this layer is currently active.
idSceneLayerIdyesStable identifier for this layer.
namestring or nullnoDisplay name. Defaults to the source’s intrinsic name in the UI.
opacitynumber (float)noLayer opacity.
scopeLayerScope or nullno
sourceLayerSourceyesContent source that feeds this layer.
transformLayerTransformnoGeometric placement of the source within the zone’s canvas.
POST/api/v1/scene/zones/{zone}/layersCreate a live zone layer#

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

NameInTypeRequiredDescription
zonepathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequired
adjustLayerAdjust or nullno
bindingsarray of LayerBinding or nullno
blendBlendMode or nullno
enabledboolean or nullno
namestring or nullno
opacitynumber (float) or nullno
scopeLayerScope or nullno
sourceLayerSourceyes
transformLayerTransform or nullno

Unknown fields are rejected.

Responses

StatusBodyMeaning
201data: ZoneResourceCreated
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
PATCH/api/v1/scene/zones/{zone}/layers/orderReorder live zone layers#

Send every layer id exactly once, from bottom to top.

Parameters

NameInTypeRequiredDescription
zonepathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequired
orderarray of SceneLayerIdyes

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ZoneResourceSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
PUT/api/v1/scene/zones/{zone}/layers/{layer}Replace a live zone layer#

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 bodyResult
Key left outThe replacement keeps the replaced layer’s scope
nullThe 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

NameInTypeRequiredDescription
zonepathstringyes
layerpathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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.

FieldTypeRequired
adjustLayerAdjust or nullno
bindingsarray of LayerBinding or nullno
blendBlendMode or nullno
enabledboolean or nullno
namestring or nullno
opacitynumber (float) or nullno
scopeLayerScope or nullno
sourceLayerSourceyes
transformLayerTransform or nullno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ZoneResourceSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
DELETE/api/v1/scene/zones/{zone}/layers/{layer}Delete a live zone layer#

Parameters

NameInTypeRequiredDescription
zonepathstringyes
layerpathstringyes
If-MatchheaderstringnoScene 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-KeyheaderstringnoClient-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

StatusBodyMeaning
200data: ZoneResourceSuccess
503ApiErrorBody, no envelopeservice_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 headerMeaning
idempotency-replayedtrue when this answer was stored for an earlier request with the same Idempotency-Key and replayed instead of applied again; absent otherwise.
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno
PATCH/api/v1/scene/zones/{zone}/layers/{layer}/controlsPatch live layer controls#

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.

FieldTypeRequired
clear_bindingsarray of stringno
valuesmap of ControlValueno

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: ZoneResourceSuccess
Fields: ZoneResource
FieldTypeRequiredDescription
brightnessnumber (float)yes
colorstring or nullno
descriptionstring or nullno
display_targetobject or nullnoPresent on Display-role zones only.
enabledbooleanyes
idstringyes
layersarray of SceneLayeryesThe authored bottom-to-top layer stack. Layers are the real, addressable unit: clients patch the layer id they read here.
layoutZoneLayoutResource or nullno
membersarray of ZoneMemberyesDevice segments assigned to this zone, addressed by membership id (Spec 78 §1.2) — never by device-scoped segment name.
namestringyes
rolestringno
view_ofZoneViewOf or nullno

#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.

GET/api/v1/layoutsList layouts#

This route pages: limit defaults to 50 and anything above 200 is rejected with validation_error.

Parameters

NameInTypeRequiredDescription
offsetqueryinteger or nullno
limitqueryinteger or nullno
activequeryboolean or nullnoRestrict the list to the layout the daemon is rendering with.

Responses

StatusBodyMeaning
200data: LayoutSummaryListResponseSuccess
Item fields: LayoutSummary
FieldTypeRequired
idstringyes
is_activebooleanno
namestringyes
zone_countintegeryes
POST/api/v1/layoutsCreate layout#

Request body (application/json, required): CreateLayoutRequest.

FieldTypeRequired
descriptionstring or nullno
namestringyes

Responses

StatusBodyMeaning
201data: LayoutSummaryCreated
Fields: LayoutSummary
FieldTypeRequired
idstringyes
is_activebooleanno
namestringyes
zone_countintegeryes
GET/api/v1/layouts/activeGet active layout#

Responses

StatusBodyMeaning
200data: SpatialLayoutSuccess
Fields: SpatialLayout
FieldTypeRequiredDescription
canvas_heightinteger (int32)noCanvas height in pixels; see SpatialLayout::canvas_width. Read-only.
canvas_widthinteger (int32)noCanvas 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_behaviorEdgeBehaviornoDefault edge behavior for zones that don’t specify one.
default_sampling_modeSamplingModenoDefault sampling mode for zones that don’t specify one.
descriptionstring or nullnoOptional description for the layout editor UI.
idstringyesUnique layout identifier (UUID or slug).
namestringyesHuman-readable name (e.g., “Bliss’s PC Case”, “Full Room”).
versioninteger (int32)yesSchema version for forward-compatible migrations.
zonesarray of OutputyesAll device zones in this layout, ordered by rendering priority.
PUT/api/v1/layouts/active/previewPreview active layout#

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.

FieldTypeRequiredDescription
canvas_heightinteger (int32)noCanvas height in pixels; see SpatialLayout::canvas_width. Read-only.
canvas_widthinteger (int32)noCanvas 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_behaviorEdgeBehaviornoDefault edge behavior for zones that don’t specify one.
default_sampling_modeSamplingModenoDefault sampling mode for zones that don’t specify one.
descriptionstring or nullnoOptional description for the layout editor UI.
idstringyesUnique layout identifier (UUID or slug).
namestringyesHuman-readable name (e.g., “Bliss’s PC Case”, “Full Room”).
versioninteger (int32)yesSchema version for forward-compatible migrations.
zonesarray of OutputyesAll device zones in this layout, ordered by rendering priority.

Responses

StatusBodyMeaning
200data: PreviewLayoutResponseSuccess
Fields: PreviewLayoutResponse
FieldTypeRequired
previewingbooleanyes
GET/api/v1/layouts/{id}Get layout#

Device outputs, positions, and LED mappings.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: SpatialLayoutSuccess
Fields: SpatialLayout
FieldTypeRequiredDescription
canvas_heightinteger (int32)noCanvas height in pixels; see SpatialLayout::canvas_width. Read-only.
canvas_widthinteger (int32)noCanvas 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_behaviorEdgeBehaviornoDefault edge behavior for zones that don’t specify one.
default_sampling_modeSamplingModenoDefault sampling mode for zones that don’t specify one.
descriptionstring or nullnoOptional description for the layout editor UI.
idstringyesUnique layout identifier (UUID or slug).
namestringyesHuman-readable name (e.g., “Bliss’s PC Case”, “Full Room”).
versioninteger (int32)yesSchema version for forward-compatible migrations.
zonesarray of OutputyesAll device zones in this layout, ordered by rendering priority.
PUT/api/v1/layouts/{id}Update layout#

Path parameters: id (string).

Request body (application/json, required): UpdateLayoutRequest.

FieldTypeRequired
descriptionstring or nullno
namestring or nullno
zonesarray of Output or nullno

Responses

StatusBodyMeaning
200data: LayoutSummarySuccess
Fields: LayoutSummary
FieldTypeRequired
idstringyes
is_activebooleanno
namestringyes
zone_countintegeryes
DELETE/api/v1/layouts/{id}Delete layout#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeleteLayoutResponseSuccess
202data: DeleteLayoutResponseAccepted; the work completes asynchronously
Fields: DeleteLayoutResponse
FieldTypeRequired
deletedbooleanyes
idstringyes
persistence_pendingbooleanyes
POST/api/v1/layouts/{id}/applyApply layout#

Makes the layout the active spatial mapping.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: ApplyLayoutResponseSuccess
202data: ApplyLayoutResponseAccepted; the work completes asynchronously
Fields: ApplyLayoutResponse
FieldTypeRequired
appliedbooleanyes
layoutSpatialLayoutyes
persistence_pendingbooleanyes

#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.

GET/api/v1/library/favoritesList favorite effects#

Responses

StatusBodyMeaning
200data: FavoriteSummaryListResponseSuccess
Item fields: FavoriteSummary
FieldTypeRequired
added_at_msinteger (int64)no
effect_idstringyes
effect_namestringno
POST/api/v1/library/favoritesAdd favorite effect#
{
  "effect_id": "borealis"
}

Request body (application/json, required): AddFavoriteRequest.

FieldTypeRequiredDescription
effectstringyesEffect id to favorite.

Responses

StatusBodyMeaning
200data: AddFavoriteResponseSuccess
Fields: AddFavoriteResponse
FieldTypeRequired
createdbooleanyes
favoriteFavoriteSummaryyes
DELETE/api/v1/library/favorites/{effect}Remove favorite effect#

The path key is the effect ID, not a favorite ID.

Path parameters: effect (string).

Responses

StatusBodyMeaning
200data: DeleteFavoriteResponseSuccess
Fields: DeleteFavoriteResponse
FieldTypeRequired
deletedbooleanyes
effect_idstringyes

#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.

GET/api/v1/library/presetsList presets#

Responses

StatusBodyMeaning
200data: EffectPresetListResponseSuccess
Item fields: EffectPreset
FieldTypeRequired
controlsmap of ControlValueno
created_at_msinteger (int64)no
descriptionstring or nullno
effect_idEffectIdyes
idPresetIdyes
namestringyes
tagsarray of stringno
updated_at_msinteger (int64)no
POST/api/v1/library/presetsCreate preset#

Saves the current effect and controls as a named preset.

Request body (application/json, required): SavePresetRequest.

FieldTypeRequiredDescription
controlsanyno
descriptionstring or nullno
effectstringyesEffect the preset’s control values belong to.
namestringyes
tagsarray of string or nullno

Responses

StatusBodyMeaning
201data: EffectPresetCreated
Fields: EffectPreset
FieldTypeRequired
controlsmap of ControlValueno
created_at_msinteger (int64)no
descriptionstring or nullno
effect_idEffectIdyes
idPresetIdyes
namestringyes
tagsarray of stringno
updated_at_msinteger (int64)no
GET/api/v1/library/presets/{id}Get preset#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: EffectPresetSuccess
Fields: EffectPreset
FieldTypeRequired
controlsmap of ControlValueno
created_at_msinteger (int64)no
descriptionstring or nullno
effect_idEffectIdyes
idPresetIdyes
namestringyes
tagsarray of stringno
updated_at_msinteger (int64)no
PUT/api/v1/library/presets/{id}Update preset#

Path parameters: id (string).

Request body (application/json, required): SavePresetRequest.

FieldTypeRequiredDescription
controlsanyno
descriptionstring or nullno
effectstringyesEffect the preset’s control values belong to.
namestringyes
tagsarray of string or nullno

Responses

StatusBodyMeaning
200data: EffectPresetSuccess
Fields: EffectPreset
FieldTypeRequired
controlsmap of ControlValueno
created_at_msinteger (int64)no
descriptionstring or nullno
effect_idEffectIdyes
idPresetIdyes
namestringyes
tagsarray of stringno
updated_at_msinteger (int64)no
DELETE/api/v1/library/presets/{id}Delete preset#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeletePresetResponseSuccess
Fields: DeletePresetResponse
FieldTypeRequired
deletedbooleanyes
idstringyes

#Playlists

GET/api/v1/library/playlistsList playlists#

Responses

StatusBodyMeaning
200data: EffectPlaylistListResponseSuccess
Item fields: EffectPlaylist
FieldTypeRequired
created_at_msinteger (int64)yes
descriptionstring or nullno
idPlaylistIdyes
itemsarray of PlaylistItemno
loop_enabledbooleanyes
namestringyes
updated_at_msinteger (int64)yes
POST/api/v1/library/playlistsCreate playlist#

A playlist is a sequence of effects with transition timing.

Request body (application/json, required): SavePlaylistRequest.

FieldTypeRequired
descriptionstring or nullno
itemsarray of PlaylistItemRequest or nullno
loop_enabledboolean or nullno
namestringyes

Responses

StatusBodyMeaning
201data: EffectPlaylistCreated
Fields: EffectPlaylist
FieldTypeRequired
created_at_msinteger (int64)yes
descriptionstring or nullno
idPlaylistIdyes
itemsarray of PlaylistItemno
loop_enabledbooleanyes
namestringyes
updated_at_msinteger (int64)yes
GET/api/v1/library/playlists/activeGet active playlist#

Answers with the running playlist, if any.

Responses

StatusBodyMeaning
200data: ActivePlaylistStateResponseSuccess
Fields: ActivePlaylistStateResponse
FieldTypeRequired
playlistActivePlaylistResponseyes
statestringno
POST/api/v1/library/playlists/deactivateDeactivate playlist#

Responses

StatusBodyMeaning
200data: DeactivatePlaylistResponseSuccess
Fields: DeactivatePlaylistResponse
FieldTypeRequiredDescription
deactivatedbooleanyes
playlistActivePlaylistResponseyesThe playlist as it stood when playback was deactivated.
GET/api/v1/library/playlists/{id}Get playlist#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: EffectPlaylistSuccess
Fields: EffectPlaylist
FieldTypeRequired
created_at_msinteger (int64)yes
descriptionstring or nullno
idPlaylistIdyes
itemsarray of PlaylistItemno
loop_enabledbooleanyes
namestringyes
updated_at_msinteger (int64)yes
PUT/api/v1/library/playlists/{id}Update playlist#

Path parameters: id (string).

Request body (application/json, required): SavePlaylistRequest.

FieldTypeRequired
descriptionstring or nullno
itemsarray of PlaylistItemRequest or nullno
loop_enabledboolean or nullno
namestringyes

Responses

StatusBodyMeaning
200data: EffectPlaylistSuccess
Fields: EffectPlaylist
FieldTypeRequired
created_at_msinteger (int64)yes
descriptionstring or nullno
idPlaylistIdyes
itemsarray of PlaylistItemno
loop_enabledbooleanyes
namestringyes
updated_at_msinteger (int64)yes
DELETE/api/v1/library/playlists/{id}Delete playlist#

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: DeletePlaylistResponseSuccess
Fields: DeletePlaylistResponse
FieldTypeRequired
deletedbooleanyes
idstringyes
POST/api/v1/library/playlists/{id}/activateActivate playlist#

Effects cycle on the playlist’s timing.

Path parameters: id (string).

Responses

StatusBodyMeaning
200data: ActivatePlaylistResponseSuccess
Fields: ActivatePlaylistResponse
FieldTypeRequired
activebooleanyes
playlistActivePlaylistResponseyes

#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.

POST/api/v1/capture/authorizeRequest screen-capture authorization#

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

StatusBodyMeaning
200data: CaptureAuthorizationResponseSuccess
Fields: CaptureAuthorizationResponse
FieldTypeRequired
authorizedbooleanyes
grant_ownerProtectedSourceGrantOwneryes
GET/api/v1/capture/monitorsList addressable capture displays#

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

StatusBodyMeaning
200data: CaptureMonitorListResponseSuccess
Item fields: CaptureMonitor
FieldTypeRequired
heightinteger (int32)yes
idstringyes
indexintegeryes
namestringyes
primarybooleanyes
valuestringyes
widthinteger (int32)yes
PUT/api/v1/capture/sourceOpen the screen-capture source picker#

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

StatusBodyMeaning
200data: CapturePickerResponseSuccess
Fields: CapturePickerResponse
FieldTypeRequired
grant_ownerProtectedSourceGrantOwneryes
pickingbooleanyes
POST/api/v1/input/authorizeRequest Input Monitoring authorization#

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

StatusBodyMeaning
200data: CaptureAuthorizationResponseSuccess
Fields: CaptureAuthorizationResponse
FieldTypeRequired
authorizedbooleanyes
grant_ownerProtectedSourceGrantOwneryes

#Configuration

Daemon configuration inspection and mutation.

GET/api/v1/configShow daemon config#

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

StatusBodyMeaning
200data: ConfigDocumentSuccess
GET/api/v1/config/keys/{key}Read one daemon config key#

The dotted key is a single path segment.

Path parameters: key (string).

Responses

StatusBodyMeaning
200data: ConfigKeyResponseSuccess
Fields: ConfigKeyResponse
FieldTypeRequired
keystringyes
valueanyyes
PUT/api/v1/config/keys/{key}Write one daemon config key#

The request body is the value itself:

true

Add ?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

NameInTypeRequiredDescription
keypathstringyes
livequerybooleanno

Request body (application/json, required): Value.

Responses

StatusBodyMeaning
200data: ConfigMutationResponseSuccess
Fields: ConfigMutationResponse
FieldTypeRequiredDescription
keystring or nullnoThe mutated key, or null for a whole-config reset.
livebooleanyesWhether the daemon re-applied the change to a running subsystem.
pathstringyesThe config file the write targets.
pending_restartarray of stringyesRestart-classified roots whose persisted value now differs from the one the daemon booted with.
persistedbooleannoWhether 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_errorstring or nullnoWhy path lags the live config, present only when persisted is false.
requires_restartbooleanyesWhether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start.
valueanynoThe effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key.
PATCH/api/v1/config/keys/{key}Merge an object into a daemon config 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

NameInTypeRequiredDescription
keypathstringyes
livequerybooleanno

Request body (application/json, required): Value.

Responses

StatusBodyMeaning
200data: ConfigMutationResponseSuccess
Fields: ConfigMutationResponse
FieldTypeRequiredDescription
keystring or nullnoThe mutated key, or null for a whole-config reset.
livebooleanyesWhether the daemon re-applied the change to a running subsystem.
pathstringyesThe config file the write targets.
pending_restartarray of stringyesRestart-classified roots whose persisted value now differs from the one the daemon booted with.
persistedbooleannoWhether 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_errorstring or nullnoWhy path lags the live config, present only when persisted is false.
requires_restartbooleanyesWhether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start.
valueanynoThe effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key.
DELETE/api/v1/config/keys/{key}Restore one daemon config key to its default#

Takes the same ?live= query parameter as the write.

Parameters

NameInTypeRequiredDescription
keypathstringyes
livequerybooleanno

Responses

StatusBodyMeaning
200data: ConfigMutationResponseSuccess
Fields: ConfigMutationResponse
FieldTypeRequiredDescription
keystring or nullnoThe mutated key, or null for a whole-config reset.
livebooleanyesWhether the daemon re-applied the change to a running subsystem.
pathstringyesThe config file the write targets.
pending_restartarray of stringyesRestart-classified roots whose persisted value now differs from the one the daemon booted with.
persistedbooleannoWhether 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_errorstring or nullnoWhy path lags the live config, present only when persisted is false.
requires_restartbooleanyesWhether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start.
valueanynoThe effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key.
POST/api/v1/config/resetRestore the whole daemon config to defaults#

The drivers map, unmodeled extension sections, and the include list survive the reset.

Parameters

NameInTypeRequiredDescription
livequerybooleanno

Responses

StatusBodyMeaning
200data: ConfigMutationResponseSuccess
Fields: ConfigMutationResponse
FieldTypeRequiredDescription
keystring or nullnoThe mutated key, or null for a whole-config reset.
livebooleanyesWhether the daemon re-applied the change to a running subsystem.
pathstringyesThe config file the write targets.
pending_restartarray of stringyesRestart-classified roots whose persisted value now differs from the one the daemon booted with.
persistedbooleannoWhether 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_errorstring or nullnoWhy path lags the live config, present only when persisted is false.
requires_restartbooleanyesWhether the registry classifies this key as boot-frozen, so the persisted value only takes effect at the next daemon start.
valueanynoThe effective value after the write, rendered like any read. Null for a whole-config reset, whose payload spans every key.
GET/api/v1/config/schemaDescribe every config 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

StatusBodyMeaning
200data: ConfigKeySchemaEntryListResponseSuccess
Item fields: ConfigKeySchemaEntry
FieldTypeRequiredDescription
applyApplyPolicyyesHow changes take effect.
has_validatorbooleanyesWhether the daemon runs extra validation beyond type checking.
patternstringyesThe pattern text: an exact key, a section root, a namespace root suffixed .*, or * for the extensions catch-all.
protectionProtectionnoWhich writes need a protected-control credential.
redactionRedactionyesRead-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.

POST/api/v1/backups/applyRestore a staged backup#

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.

FieldTypeRequired
operation_idstring (uuid)yes

Unknown fields are rejected.

Responses

StatusBodyMeaning
200data: BackupApplyResponseSuccess
Fields: BackupApplyResponse
FieldTypeRequired
missing_resourcesMissingSetupResourcesno
operation_idstring (uuid)yes
unresolved_devicesarray of stringyes
GET/api/v1/backups/exportDownload a portable lighting backup#

The archive downloads with attachment filename hypercolor.hypercolor-backup. Newly exported archives contain no effect or media blobs.

Responses

StatusBodyMeaning
200application/x-tar bytesSuccess
POST/api/v1/backups/importStage and preview an uploaded backup#

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

StatusBodyMeaning
200data: BackupPreviewSuccess
Fields: BackupPreview
FieldTypeRequired
effectsinteger (int64)yes
favoritesinteger (int64)yes
includes_preferencesbooleanyes
layoutsinteger (int64)yes
mediainteger (int64)yes
missing_resourcesMissingSetupResourcesno
namestringyes
operation_idstring (uuid)yes
scenesinteger (int64)yes
unresolved_devicesarray of stringyes

#Diagnostics

Daemon diagnostics.

POST/api/v1/diagnoseRun 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.

FieldTypeRequired
checksarray of string or nullno
systemboolean or nullno

Responses

StatusBodyMeaning
200data: DiagnoseResponseSuccess
Fields: DiagnoseResponse
FieldTypeRequired
checksarray of DiagnoseCheckyes
snapshotDiagnoseSnapshotyes
summaryDiagnoseSummaryyes

#WebSocket

Realtime WebSocket endpoint.

GET/api/v1/wsOpen realtime WebSocket stream#

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

StatusBodyMeaning
101noneSwitching 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.