Actions API Reference
ON THIS PAGE
actions.proto, service ActionsService. This is the recommended default surface for
integrations — see Overview & Setup if you haven't read that yet
(connection details, auth, and the h2c cleartext requirement all apply here).
ActionsService mirrors Aura Mixer's internal Action Registry — the same catalog Hotkeys and
Automation rules bind to. Every action is addressed by a stable, namespaced string ID (e.g.
mixer.setMuted), never by a raw index, so your integration doesn't need to know anything about
how channels/buses are laid out internally.
Target IDs
Actions that operate on a specific entity (a channel, bus, group, or the main bus) take a
project-local ID — an opaque string like ch_53f465c2, stable for the lifetime of that entity
but not predictable or guessable. Get real IDs from StreamState (which pairs
every ID with its current display name) — don't hardcode them.
If an ID isn't in the current scene, InvokeAction acts on the only entity of the kind the action
needs with the name that ID has in a saved scene. With two of that name, or none, it returns
ok: false rather than throwing, and never picks one of several.
Targets by position
A surface laid out like a mixing desk means "the third strip", whichever channel that is in the
current scene. For that, send a TargetSlot instead of an ID (capability targets.bySlot):
message TargetSlot {
string kind = 1; // "channel" | "group" | "bus"
int32 index = 2; // from 0, in the app's order
}
MixerEntityState.slotinStreamStatesays where each entity stands, so a key can show the name of what it controls right now.- Channels and groups each count from 0. Buses count together: the main bus is always 0, the
others follow from 1. The same numbers work in scripts:
aura.channels[0],aura.buses[0]. - The app resolves the position when the call arrives, so a call during a scene change can't land on a channel you remembered.
- Nothing at that position returns
ok: false, and so does sending bothtarget_idandtarget_slot.
Use an ID for "this channel" and a position for "this strip": moving channels changes what stands at a position, so a key meant for one microphone shouldn't use it.
RPCs
ListActions
rpc ListActions(google.protobuf.Empty) returns (ActionList);
message ActionDefinition {
string id = 1; // e.g. "mixer.setMuted"
string display_name = 2; // e.g. "Mute / Unmute"
string category = 3; // e.g. "Mixer", "Routing", "Scenes", "Engine"
bool requires_target = 4; // needs target_id to do anything
string target_kind = 5; // "mixable" | "bus" | "channel" — see below
bool requires_secondary_target = 6; // needs secondary_target_id too (two-entity actions)
bool uses_value = 7; // reads an absolute numeric value
bool uses_delta = 8; // reads a relative step
bool supports_momentary = 9; // has a natural on/off (fire true on press, false on release)
}
message ActionList { repeated ActionDefinition actions = 1; }
Call this once at startup to build your own picker — don't hardcode the action catalog, it can
grow. target_kind tells you what a target_id for that action must reference: "mixable" (any
channel, group, output bus, or the main bus — anything with mute/solo/fader), "bus" (output
buses and the main bus only), or "channel" (input channels only) — plus four narrower kinds for
type-specific transport, each restricted to exactly that channel/bus type so a picker can't offer,
say, a microphone channel for a Player action: "playerChannel", "generatorChannel",
"soundboardChannel", and "recorderBus" (which, unlike plain "bus", never includes the main
bus — it can never be a Recorder).
InvokeAction
rpc InvokeAction(InvokeActionRequest) returns (InvokeActionResponse);
message InvokeActionRequest {
string action_id = 1;
string target_id = 2; // required if the action's requires_target is true
string secondary_target_id = 3; // required if requires_secondary_target is true
optional float value = 4; // for actions with uses_value
optional float delta = 5; // for actions with uses_delta
optional bool flag = 6; // explicit on/off; omit to toggle (for actions that support it)
TargetSlot target_slot = 7; // instead of target_id, see Targets by position
TargetSlot secondary_target_slot = 8; // instead of secondary_target_id
map<string, string> args = 9; // values by name, as text: see below
}
message InvokeActionResponse {
bool ok = 1;
string error = 2; // human-readable, empty when ok; the wording may change, never match on it
string code = 3; // why it failed, empty when ok (capability "errors.code"): see below
}
A few actions take values by name in args (capability actions.args), always as text:
macro.run: the macro's parameters, by the names inStreamState.macros[].params. A number goes in invariant culture ("-12.5"), an on / off as"true"/"false", a choice as written, a channel or bus by its id. A parameter you leave out takes its default; one with no default must be given.app.notify:"text", and"kind"("info","warning"or"error", info when left out).automation.emit:"name", the name of your event.
InvokeActionResponse.ok is your real success signal — check it. ok: false happens for an
unknown action_id, or a requires_target action called without a target_id; it is not a
gRPC-level error, so a try/catch around the call alone won't catch it.
When ok is false, branch on code, not on the wording of error (the text is for people and may change). The codes are
never renamed or reused; a client treats one it does not know as refused, because new ones may be added:
code |
Meaning |
|---|---|
unknown_action |
The action_id is not one the app has. |
bad_request |
The call is malformed: target_id and target_slot both given, or a slot kind that is not channel, group or bus. |
slot_empty |
Nothing stands at the position asked for in this scene. |
unknown_binding |
HoldRemoteBinding for a binding the app does not hold (it restarted, or your lease lapsed): register it again. |
unavailable |
The app could not run it right now (shutting down, or the feature is not available). |
refused |
The action ran and said no; error has the reason (an unknown preset, a target of the wrong kind, …). |
Against an app without the errors.code capability code is empty: treat any failure as refused.
flag matters for actions that supports_momentary: pass flag: true on button-down and
flag: false on button-up for a press-and-hold behavior (e.g. push-to-mute); omit flag entirely
for a simple toggle-on-press.
StreamState
rpc StreamState(google.protobuf.Empty) returns (stream MixerStateSnapshot);
message MixerEntityState {
string id = 1;
string name = 2; // current display name — cache this for your UI, don't re-resolve per-call
string kind = 3; // "channel" | "group" | "output" | "mainBus"
bool muted = 4;
bool soloed = 5;
float fader_db = 6;
// api_version 2+ ──────────────────────────────────────────────────────────
string type = 7; // channel: "phys"|"virt"|"loop"|"apploop"|"player"|"soundboard"|"generator"…
// output: "phys"|"virt"|"record"… (empty for groups / main bus)
repeated SendState sends = 8; // channels: one per channel→bus send
repeated SoundboardPadInfo pads = 9; // soundboard channels only
string active_pad_id = 10;
string player_repeat_mode = 11; // player channels: "off" | "one" | "all"
bool player_shuffle = 12;
string player_state = 13; // player channels: "stopped" | "playing" | "paused" ("" = no player slot)
string player_track = 14; // loaded file name
int64 player_duration_ms = 15;
string recording_state = 16; // recorder outputs: "" | "recording" | "paused" | "faulted"
int64 recording_elapsed_s = 17; // whole seconds
string recording_fault = 18; // set only when faulted
// capability "state.effectiveMute": silent through its own mute OR a muted VCA group it belongs to.
// `muted` stays the entity's OWN flag (what mixer.setMuted flips); show this one for "what is heard".
bool effectively_muted = 20;
}
message SendState { string output_id = 1; bool active = 2; float send_db = 3; }
message SoundboardPadInfo { string id = 1; string label = 2; string color = 3; bool hold_to_play = 4; }
message BusRouteState { string source_id = 1; string dest_id = 2; float db = 3; } // ACTIVE routes only
message SceneInfo { string id = 1; string name = 2; string notes = 3; }
message MonitorState { string source_id = 1; float volume_db = 2; bool dimmed = 3; } // capability "monitor"
message ParameterValue { ... } // see ListParameters and WatchParameters
message MacroInfo { string id = 1; string name = 2; string description = 3; bool enabled = 4; bool running = 5; }
message MixerStateSnapshot {
repeated MixerEntityState entities = 1;
bool engine_running = 2; // api_version 2+
repeated BusRouteState bus_routes = 3;
repeated SceneInfo scenes = 4; // in the app's own order
string active_scene_id = 5; // empty = none recalled
repeated RemoteBindingState remote_bindings = 6; // hold controls registered by any client (held / suspended)
repeated MacroInfo macros = 7; // in the app's own order
MonitorState monitor = 8; // what you listen to, how loud (dB, 20 lower while dimmed), DIM
repeated ParameterValue parameters = 9; // the knobs clients watch (WatchParameters)
}
message RemoteBindingState {
string owner_id = 1; string owner_name = 2; string binding_id = 3; string entity_id = 4;
string param = 5; bool rest = 6; string label = 7; bool held = 8; bool suspended = 9;
TargetSlot entity_slot = 10; // set for a binding by position
}
Opens a long-lived stream. You get one snapshot immediately on connect, then a fresh full snapshot whenever anything changes — not a delta. The server coalesces bursts (dragging a fader in the app) to at most one snapshot every ~30 ms per connection, and the last state is never lost — it is merged into the next snapshot. This is the right way to:
- Discover valid
target_ids (paired with their current names) instead of guessing. - Filter target pickers by
type— onlyplayerchannels forplayer.*, onlyrecordoutputs forbus.*Recording, onlysoundboardchannels forsoundboard.*. - Drive button icons live: mute/solo/fader level, send and bus-route on/off, engine running, which scene is active, a Player's shuffle/repeat state, a Soundboard's active pad.
- Enumerate scenes (
scenes[].id) and Soundboard pads (pads[].id) — see below. - Enumerate macros (
macros[].id, capabilitymacros.list) formacro.run, and light a key while one runs: a snapshot comes when a macro starts or ends. A macro that is switched off (enabledfalse) refuses to start.
If you only care about specific entities, just filter the snapshot client-side — the list is small (typically well under a hundred entities).
Player and Recorder state (player_state, recording_state, recording_elapsed_s, ...) change
inside the audio engine without any mixer change event, so the server re-reads them about twice a
second while your stream is open and pushes a snapshot only when they actually change. Playback
position is deliberately not included (it would change every tick); poll the raw
Mixer API GetPlayerStatus if you need it. The recorder's elapsed time
is whole seconds, so a "REC 01:23" key updates once a second while recording.
ListPresets
rpc ListPresets(google.protobuf.Empty) returns (PresetList);
message PresetInfo {
string id = 1; // pass as secondary_target_id of preset.apply
string name = 2;
string kind = 3; // "eq" | "gate" | "comp" | "spatial" | "fx" | "pack"
string author = 4;
string source = 5; // "builtin" | "user" | "workshop"
string applies_to = 6; // "channel" | "bus" | "channelOrBus" — what preset.apply accepts as target_id
string fx_type = 7; // kind == "fx": the effect type
repeated string tags = 8;
}
Every preset and pack in the user's library (built-in, their own, Workshop-installed). It is a
separate call rather than part of StreamState because the library can be large and changes rarely.
Fetch it when your UI needs it (e.g. a Property Inspector opening), not on a timer. Presets that were
never re-saved and so have no id can't be addressed and are not listed.
SetRemoteBindings and HoldRemoteBinding — hold controls
rpc SetRemoteBindings(SetRemoteBindingsRequest) returns (SetRemoteBindingsResponse);
rpc HoldRemoteBinding(HoldRemoteBindingRequest) returns (InvokeActionResponse);
message RemoteBindingSpec {
string id = 1; // unique within your owner_id (e.g. a key's id)
string entity_id = 2; // channel / group / output / main bus
string param = 3; // "mute" | "solo"
bool rest = 4; // the value kept while NOT held
string label = 5; // shown to the user, e.g. "Mute Mic - hold to talk"
TargetSlot entity_slot = 6; // instead of entity_id: whatever stands at this position
}
message SetRemoteBindingsRequest { string owner_id = 1; string owner_name = 2; repeated RemoteBindingSpec bindings = 3; }
message HoldRemoteBindingRequest { string owner_id = 1; string binding_id = 2; bool held = 3; }
Push-to-talk/push-to-mute and push-to-solo only make sense with a resting state: hold-to-talk means
"muted unless held" (param: "mute"), and the same goes for "solo". That rule belongs to Aura Mixer, not
to your integration. If you implement a hold control with plain InvokeAction flags, nothing keeps the
channel at rest — mute (or un-solo) it in the app and it just stays the other way, and nobody can see why a
channel behaves the way it does. So hold controls are registered with the app instead:
SetRemoteBindingsdeclares your hold controls. It replaces your whole set (send every binding each time; an empty list withdraws them all) and is also your lease: call it again every ~5 seconds. The app forgets anowner_idthat has been silent for ~15 seconds, so a crashed integration can never leave a channel pinned. Bindings that are new or changed are enforced at once — a hold-to-talk mic is muted the moment the key is configured. The response lists any binding the app refused and why (for example another controller owns the opposite resting state on the same channel).HoldRemoteBindingis key down (held: true) and key up (held: false). The app applies "held" and "rest" itself. If it answers with the codeunknown_binding(the app restarted, or your lease lapsed), register again and retry.
A binding can name a position instead of an id (entity_slot, capability bindings.bySlot), for a surface laid
out like a mixing desk: "hold to talk on strip 1" is about whatever stands first in the current scene. After a scene
change the binding moves to what stands there now, and StreamState reports it in entity_id, with the position in
entity_slot. A key held during the change stays held on the new channel, and the old one goes back to rest. An empty
position is accepted: entity_id is empty, holding answers that nothing stands there, and the binding takes hold as
soon as something does. Give entity_id or entity_slot, not both.
While a binding is active the app keeps the parameter at its rest value: a channel unmuted in the app is
muted again. The mixer shows a controller badge next to the channel name and lists every binding under
Settings ▸ Integrations, where the user can take manual control: the binding becomes suspended, the app
stops enforcing the rest state, and HoldRemoteBinding turns into a plain toggle (held: true flips the
parameter, held: false does nothing), so a suspended push-to-talk key behaves like an ordinary mute key.
StreamState reports each binding's held and suspended state (remote_bindings), so a key can show which
of the two it currently is. Bindings are held in memory only, are cleared when Open API is switched off, and never survive an
app restart — your integration re-registers when it reconnects. Feature-detect with the bindings.hold
capability; against an older app fall back to InvokeAction with flag.
ListParameters and WatchParameters — any knob
rpc ListParameters(ListParametersRequest) returns (ParameterList);
rpc WatchParameters(WatchParametersRequest) returns (WatchParametersResponse);
message ListParametersRequest { string target_id = 1; TargetSlot target_slot = 2; }
message ParameterInfo {
string path = 1; // secondary_target_id of the Parameter actions, e.g. "gate/attack"
string label = 2; // "Gate · Attack"
string section = 3; // "Gate"
string kind = 4; // "number" | "switch" | "choice"
optional float min = 5; optional float max = 6; string unit = 7;
repeated string choices = 8; // in order: setParameter's value is the position
}
message ParameterList { string target_id = 1; repeated ParameterInfo parameters = 2; string error = 3; }
message ParameterRef { string target_id = 1; TargetSlot target_slot = 2; string path = 3; }
message WatchParametersRequest { string owner_id = 1; repeated ParameterRef parameters = 2; }
message WatchParametersResponse { string error = 1; }
ListParameters lists every knob of a channel, bus or VCA group that the Parameter actions can reach, in the order of
its panels: what a picker in your integration offers. Give target_id, or target_slot for whatever stands at a
position. kind says which action fits: number for mixer.setParameter and mixer.adjustParameter (and a dial),
switch for mixer.setParameterOn, choice for mixer.setParameter with the position of a choice.
WatchParameters says which knobs your integration shows, so StreamState carries their values in parameters
(capability parameters):
message ParameterValue {
string target_id = 1; // what it reads now ("" = nothing stands at that position)
TargetSlot target_slot = 2; // set when watched by position
string path = 3; string label = 4; string kind = 5;
float number = 6; // kind "number"
bool on = 7; // kind "switch"
int32 choice = 8; string choice_label = 9; // kind "choice" (-1 = none)
string unit = 10; optional float min = 11; optional float max = 12;
bool missing = 13; // the target or the knob isn't there (an effect deleted, an empty position)
}
It works like SetRemoteBindings: each call replaces your whole set (an empty list stops watching), and it is a
lease, so send it again every ~5 seconds. The app forgets an owner_id that has been silent for ~15 seconds. At most
200 knobs per owner_id. A knob watched by position follows what stands there after a scene change. A snapshot comes
whenever a watched knob changes, from the app, a hotkey, a script or another client.
GetInfo
rpc GetInfo(google.protobuf.Empty) returns (ApiInfo);
message ApiInfo {
int32 api_version = 1; // 2 today
string app_version = 2; // e.g. "0.7.0-beta"
float fader_min_db = 4; // -60: the bottom of every fader (-∞)
float fader_max_db = 5; // +10: the top
repeated string capabilities = 3; // "state.extended", "scenes.byId", "state.throttled",
// "state.playback", "presets.list", "presets.apply", "bindings.hold", "sends.adjust",
// "targets.bySlot", "macros.list", "actions.args", "bindings.bySlot",
// "monitor", "parameters", "state.effectiveMute", "errors.code"
}
Call once after connecting. The contract is additive-only: new capability tokens appear, existing
ones never disappear, and fields are only ever added — so gate features on "capability token is
present" rather than comparing versions, and an older app simply won't list the newer tokens. If
GetInfo itself returns UNIMPLEMENTED, the app predates api_version 2: fall back to the original
behaviour (no type, no scene list — use scene.recall by index).
Built-in action catalog
As of this writing, ListActions returns these actions (call it yourself for the
authoritative, current list — this table is a snapshot):
| ID | Display name | Category | Target | Value/Delta | Momentary |
|---|---|---|---|---|---|
mixer.setMuted |
Mute / Unmute | Mixer | mixable | — | ✓ |
mixer.setSoloed |
Solo / Unsolo | Mixer | mixable | — | ✓ |
mixer.setFaderDb |
Set Fader (absolute) | Mixer | mixable | value (dB) | |
mixer.adjustFaderDb |
Adjust Fader (relative) | Mixer | mixable | delta (dB) | |
mixer.clearAllSolo |
Clear All Solo | Mixer | — | — | |
player.play |
Player: Play | Mixer | playerChannel | — | |
player.pause |
Player: Pause | Mixer | playerChannel | — | |
player.stop |
Player: Stop | Mixer | playerChannel | — | |
player.togglePlayPause |
Player: Play / Pause | Mixer | playerChannel | — | |
player.next |
Player: Next Track | Mixer | playerChannel | — | |
player.previous |
Player: Previous Track | Mixer | playerChannel | — | |
player.cycleRepeatMode |
Player: Cycle Repeat Mode (Off → All → One) | Mixer | playerChannel | — | |
player.toggleShuffle |
Player: Toggle Shuffle | Mixer | playerChannel | — | |
player.playTrack |
Player: Play Track (number) | Mixer | playerChannel | value (track number, from 1) | |
player.seek |
Player: Seek To (seconds) | Mixer | playerChannel | value (seconds) | |
player.eject |
Player: Eject | Mixer | playerChannel | — | |
generator.cycleWaveform |
Generator: Cycle Waveform (Sine → Pink → White → Click) | Mixer | generatorChannel | — | |
soundboard.triggerPad |
Soundboard: Trigger Pad | Mixer | soundboardChannel + pad id | — | ✓ |
soundboard.stopChannel |
Soundboard: Stop | Mixer | soundboardChannel | — | |
soundboard.stopPad |
Soundboard: Stop Pad | Mixer | soundboardChannel + pad id | — | |
bus.startRecording |
Bus: Start Recording | Recorder | recorderBus | — | |
bus.stopRecording |
Bus: Stop Recording | Recorder | recorderBus | — | |
bus.toggleRecording |
Bus: Start / Stop Recording | Recorder | recorderBus | — | |
bus.pauseRecording |
Bus: Pause Recording | Recorder | recorderBus | — | |
bus.resumeRecording |
Bus: Resume Recording | Recorder | recorderBus | — | |
bus.togglePauseRecording |
Bus: Pause / Resume Recording | Recorder | recorderBus | — | |
bus.setRouteActive |
Bus Route On/Off | Routing | bus + secondary bus | — | ✓ |
channel.setSendActive |
Channel→Bus Send On/Off | Routing | channel + secondary bus | — | ✓ |
channel.setSendDb |
Channel→Bus Send Level (absolute) | Routing | channel + secondary bus | value (dB) | |
channel.adjustSendDb |
Channel→Bus Send Level (relative) | Routing | channel + secondary bus | delta (dB) | |
scene.recall |
Recall Scene | Scenes | — | value (scene index) | |
scene.recallById |
Recall Scene (by id) | Scenes | scene id (from StreamState.scenes) |
— | |
preset.apply |
Apply Preset / Pack | Presets | channel or bus + preset id (from ListPresets) |
— | |
monitor.setSource |
Monitor: Listen To | Monitor | bus | — | |
monitor.setVolumeDb |
Monitor: Set Volume | Monitor | — | value (dB) | |
monitor.adjustVolumeDb |
Monitor: Adjust Volume | Monitor | — | delta (dB) | |
monitor.setDim |
Monitor: Dim | Monitor | — | — | ✓ |
engine.toggleRunning |
Start / Stop Engine | Engine | — | — | ✓ |
macro.run |
Macro: Run | Macros | macro id (from StreamState.macros) + args |
— | ✓ |
macro.stopAll |
Macro: Stop All | Macros | — | — | |
app.notify |
Show Message | App | — | args text, kind |
|
automation.emit |
Send Event | Automation | — | args name |
|
automation.stopAll |
Stop / Resume All Automation | Automation | — | — | ✓ |
mixer.setParameter |
Parameter: Set | Parameters | mixable + parameter path | value | |
mixer.adjustParameter |
Parameter: Adjust | Parameters | mixable + parameter path | delta | |
mixer.setParameterOn |
Parameter: On / Off | Parameters | mixable + parameter path | — | ✓ |
Faders span −60 … +10 dB (−60 is the bottom stop, shown as −∞), and GetInfo reports the bounds as
fader_min_db / fader_max_db. mixer.setFaderDb and mixer.adjustFaderDb both clamp to that range
server-side, so repeated deltas (e.g. from a held key) can't run a fader out of range and an out-of-range
absolute value is pinned to the nearest end. For volume steps in percent, use the same convention as the
app's hardware volume keys: linear in dB across the range, 0 % = −60 dB, 100 % = +10 dB — so one percent is
always 0.7 dB and can be sent as a plain adjustFaderDb delta.
Sends and routes. channel.setSendDb and channel.adjustSendDb use the same −60 … +10 dB range and clamp to it;
channel.adjustSendDb adds the delta to the send's current level on the app's side, so a held key never has to read
and write back a level. A level change never switches a send on: while a send is off, its new level is remembered and
takes effect when you turn it on. Turning a send or route on or off (channel.setSendActive, bus.setRouteActive)
and moving a level are applied to the audio engine directly, without re-sending the whole mixer, so they are safe to
repeat quickly. Feature-detect channel.adjustSendDb with the sends.adjust capability from GetInfo.
Scenes: use scene.recallById. scene.recall takes a list index, and an index is not stable —
deleting a scene shifts every later one, so a button bound to "scene #3" would silently recall a
different scene. scene.recallById takes the scene's id from StreamState.scenes (stable across
delete, rename and overwrite-in-place). scene.recall stays for backwards compatibility.
Presets. preset.apply takes the channel or bus as target_id and a preset id from
ListPresets as secondary_target_id; check the preset's applies_to first (a
channel-only preset aimed at a bus fails). Unlike most actions it reports why it failed in
InvokeActionResponse.error — an unknown preset id, or a target the preset can't be applied to. It is
API-only: the in-app Hotkeys and Automation forms have no preset picker, so it isn't offered there.
Soundboard pads. soundboard.triggerPad takes the Soundboard channel as target_id and the pad
as secondary_target_id; both come from StreamState (type == "soundboard", then pads[].id).
For a pad with hold_to_play, send flag: true on press and flag: false on release
(supports_momentary). soundboard.stopChannel stops whatever is playing on that channel.
Parameters. mixer.setParameter, mixer.adjustParameter and mixer.setParameterOn reach any knob of a channel,
bus or VCA group: target_id is the channel / bus / group, secondary_target_id the knob's path inside it, written
the way the app's macro scripts name it — gate/attack, comp/ratio, comp/detect, eq/bands/2/gain (bands by
position from 0), spatial/azimuth, sends/<bus id>/level, limiter/threshold on a bus. Numbers are in the knob's
own unit and are kept inside its range (an out-of-range value or a delta past the end stops at the nearest end). A knob
with a list of choices takes the choice's position from 0 as value (comp/detect: 0 = RMS, 1 = Peak, 2 = True peak).
mixer.setParameterOn is for on / off knobs (gate/enabled, eq/bands/0/enabled): flag true / false, or no flag to
flip it; send flag: true on press and flag: false on release for a hold. A path that doesn't exist, or a knob of
the wrong kind for the action, fails with the reason in InvokeActionResponse.error. ListParameters lists the paths
with their names, and WatchParameters keeps their values in the state.
Example call sequence
ListActionsonce, at startup — build your picker / cache the catalog.StreamState— keep it open for the life of your integration; use it to resolve names → IDs and to keep any live indicators (button icon state) current.InvokeActionon whatever triggers your integration (button press, etc.) — checkok.
See the worked example for this end-to-end in Node.js.