Web console API
The web console talks to the TCP server over the same WebSocket as the
mobile app (wss://<ws-gateway-host>/ws). On top of the app's messages it
offers a request/reply API for operators: device inventory and management,
audited device commands, the alert workflow, and fleet
analytics.
:::note Deployed on dev (2026-11-04)
These messages are live on the dev gateway, and dev verifies realtime tickets against the HTTP server's dev key route. Staging and production are not deployed (dev only for now; see Known gaps).
:::
This page covers what every console message has in common. The messages themselves are on these pages:
- Devices: inventory, details, bind and unbind, registration, engineering
- Device Inventory: the Device Inventory screen in one request per page load and per action
- Commands: register writes and logger restarts with a lifecycle, audit and bulk tasks
- Alerts: list, acknowledge, resolve, assign, statistics, inbox
- Fleet analytics: overview, plant health, KPIs, rankings, targets
For the mobile app's side of device import and pinned favourites, see Device import and favourites: mobile handoff.
Authenticate first
Every console message needs a connection authenticated with a realtime
ticket from the HTTP server. Send auth first, as described in
Authentication.
The server takes your identity and access from the ticket. A userId in
the message is ignored.
A console message on a connection without a verified ticket is refused
with UNAUTHENTICATED. This holds in every WS_AUTH_MODE except legacy,
which exists only for rollback.
Request and reply
A request is one JSON message with a type, an optional requestId and
the message's own fields at the top level. Because they share the top
level, no message has a field of its own named type or requestId: a
device-type filter is deviceType, a transfer's id is transferRequestId
(on the deprecated accept and cancel messages).
{"type": "get_device_details", "requestId": "r-42", "deviceKey": "3f2c8a9e-5b1d-4c7a-9e2f-1a2b3c4d5e6f"}
It gets exactly one reply, of type <type>_result, with the same
requestId:
{"type": "get_device_details_result", "requestId": "r-42", "ok": true, "result": {"deviceKey": "3f2c8a9e-..."}}
{"type": "get_device_details_result", "requestId": "r-42", "ok": false,
"code": "NOT_FOUND", "error": "device not found"}
| Field | In | Meaning |
|---|---|---|
type | request, reply | The message type; the reply adds _result |
requestId | request, reply | Any string up to 128 characters, echoed back. Use it to match replies, because replies to requests sent together can arrive in any order |
ok | reply | true with result, or false with code and error |
result | reply | The answer. Each message's section shows its shape |
code | reply | A stable failure reason (table below) |
error | reply | A human-readable sentence. Do not parse it |
details | reply | Optional structured detail for some failures, for example {"currentPlantId": "..."} on a CONFLICT |
A requestId longer than 128 characters is refused with
INVALID_REQUEST and the reply carries no requestId. Unknown fields in a
request are ignored, so a newer client can send optional fields to an older
server. A message type the server does not know gets
{"type": "<type>_result", "requestId": "...", "ok": false, "code": "UNSUPPORTED"}
when it carries a requestId, so an older gateway is told apart from a lost
message. Without a requestId it gets no reply, as before.
Error codes
code | Meaning | What to do |
|---|---|---|
INVALID_REQUEST | A field is missing, malformed or out of range, or a cursor is not one this server issued | Fix the request |
UNAUTHENTICATED | The connection has no verified ticket | Send auth with a ticket |
TICKET_EXPIRED | The ticket ran out | Get a new ticket and send auth |
FORBIDDEN | You can see the target but your level is too low, or a rule such as dual control forbids it | Show the reason; do not retry |
NOT_FOUND | The target does not exist or you cannot see it. The two are never told apart, so ids cannot be probed | Treat as gone |
CONFLICT | The target is in a state that does not allow this (already moved on, wrong plant, a limit reached, an idempotency key reused) | Re-read the target, then decide |
UNAVAILABLE | A dependency is missing or slow: no database, no file storage, or the request ran past its time limit | Retry later with backoff |
UNSUPPORTED | The server understands the request but cannot do it (a meter, an unknown model, a text register) | Do not retry |
BUSY | This connection already has 4 console requests in flight | Wait for a reply, then send |
INTERNAL | An unexpected server error. Details are logged, never sent | Retry once; report if it persists |
Limits
Concurrency. At most 4 console requests run at once per connection.
A fifth is refused at once with BUSY. A dashboard can load four panels
in parallel; queue the rest on the client.
Time limits. A request that runs past its limit is answered with
UNAVAILABLE ("the request took too long; retry").
| Messages | Limit |
|---|---|
| Most messages | 10 s |
register_device_web | 15 s |
get_fleet_overview, get_plant_rankings, list_plants, count_plants, approve_bulk_task, stop_bulk_task | 20 s |
list_alerts, get_alert_facets, get_alert_stats, get_comm_loss_surges, create_bulk_task | 30 s |
export_operation_log | 60 s |
Paging
Lists are never unbounded. A list request takes:
| Field | Type | Default | Limit |
|---|---|---|---|
limit | integer | 50 | 200; a larger value is lowered to 200 |
cursor | string | none (first page) | Opaque; at most 1024 characters |
The reply carries nextCursor when there are more rows. Send it back as
cursor with the same filters to get the next page. A missing (or empty)
nextCursor means you have the last page. Cursors are keyset positions,
so rows added while you page do not shift the pages. A cursor from one sort
order or one message is refused by another with INVALID_REQUEST.
A few lists have their own bounds (search 20/50, rankings 20/100); each message says so.
Lazy-loaded lists (since 2026-11-24). The console's screen lists load
15 rows first and 10 per scroll, until nextCursor is absent. These
messages do that when you send no limit, and take a limit of 1–50 only
(a value outside it is INVALID_REQUEST, not lowered): list_plants,
get_devices_page (since 2026-11-25), list_alerts, get_notification_deliveries, get_device_inventory,
get_inventory_plant_options, get_operation_log, list_device_files,
list_bulk_tasks and get_bulk_task. The mobile messages get_devices,
get_alerts and get_activity follow the same 15/10 rule. Filters,
search, sorting and counts are computed by the server over the whole
filtered set, never from the rows you have loaded. get_plant_health is
not lazy: its default page is still 50 and its maximum 200, so
plantIds with up to 50 ids (or a limit of at least the number of ids,
up to 200) comes back in one reply.
A page can come back shorter than limit while nextCursor is still set.
This happens when rows are dropped after paging because your access hides
them (for example, a search that matched a serial you may not see). Keep
paging until nextCursor is absent.
Access levels
Your ticket gives you one of NONE < VIEW < EDIT < MANAGE < FULL
in each of three categories (devices, commands, alerts) for each plant it
covers. Owning a device (you registered it) gives FULL in all three. See
Who can see what.
List queries apply your access inside the database query, so counts and
pages are exact. A single-target request on something you cannot see at
all answers NOT_FOUND. One you can see but not change answers
FORBIDDEN.
Grants that match plants by operator org, tag, region, customer or installer need the
plant's details from the HTTP server's event bus. The bus is not switched
on yet. Until it is, only grants that list plants by id and the
all-plants grant match, and the customer, region and tag filters on the
alert and fleet messages match nothing. Ask the HTTP server for tickets
narrowed with plantIds.
Redaction
A grant can hide two kinds of data. A redaction applies only when every path that reaches the device (each grant, and ownership) hides it. One unredacted grant shows the data.
| Redaction | What is hidden |
|---|---|
serials | Logger ids and inverter serial numbers. Searches by serial do not return the device either, so a search cannot confirm a hidden serial |
engineering | Register addresses and Modbus function codes, raw alarm words, firmware versions, maxBatchQuantity, the session instance id, engineering-tier commands in the catalogue, technical files, and the raw details of events |
How the hidden fields look depends on the message:
- Device rows send
loggerIdandinverterSnasnulland add"redacted": {"serials": true, "engineering": false}. get_device_detailssends hidden fields as{"value": null, "reason": "hidden by your access (redacted)"}.- Alerts leave
loggerIdandinverterSnout and add"redacted": true.
Server pushes
Three console messages arrive without a request. None has a requestId.
type | Sent to | Page |
|---|---|---|
command_status | The requester, and every verified connection with VIEW in the command's permission on the device, on every state change of a command | Commands |
bulk_task_status | The requester, the approver, and every verified connection that sees the task in list_bulk_tasks, on every status change of a bulk task, with its progress | Commands |
alert_updated | Every verified connection with alerts VIEW on the device, when an alert is raised, cleared, acknowledged, assigned or resolved | Alerts |
Pushes are best effort. After a reconnect, re-read what is on screen.
All message types
Level is the minimum in the named category on the device or plant concerned. "Signed in" means any verified ticket.
Devices
| Message | Purpose | Needs |
|---|---|---|
get_inventory | Every device you reach, filtered and paged, with counts; your 15 most recent favourites first | devices VIEW |
get_devices_page | The /devices list: one plant's (or all plants') devices, their loggers and batteries, lazy-loaded, with search, filters, sorts by live figures and tile counts; your 15 most recent favourites first on the unfiltered list | devices VIEW |
search_devices | Find devices by logger id or inverter serial prefix. A whole serial makes the device a platform Super Admin's or Administrator's favourite | devices VIEW |
get_device_details | Everything known about one device | devices VIEW |
get_device_events | One device's merged event log | devices VIEW (alerts VIEW to include alert events) |
update_device_profile | Set display name, country, installer, notes | devices EDIT |
set_device_rated_power | Set or clear the inverter's nameplate rating (kW) | devices MANAGE |
bind_device | Put an unbound device into a plant of its own Business | devices MANAGE on the device and the plant; the plant must be the device's Business's (OWN_PLANTS_ONLY) |
unbind_device | Take a device out of its plant, keeping its history | devices MANAGE |
unbind_logger | Take the logger off a device in any state, freeing the logger (details) | platform Admin or Super Admin |
verify_device | Mark the inverter serial verified from the hardware's report | devices MANAGE |
transfer_device | Move ownership to another user or org | devices MANAGE; changing the device's Business is platform Admin or Super Admin only |
get_device_inventory | The Device Inventory screen: rows with names, states, allowed actions, and counts, in one request (Device Inventory) | devices VIEW |
get_inventory_plant_options | Plants a device can be assigned to (purpose: "bind") or transferred to (purpose: "transfer") | devices MANAGE on the plant, narrowed by role (details) |
reject_device | Reject the serial typed at registration | devices MANAGE |
remove_device / restore_device | Take a device out of service, reversibly / put it back | devices MANAGE |
request_device_transfer | Move a device to another Business or plant, at once | devices MANAGE on both sides. To a Business: platform Admin or Super Admin only. To a plant: a plant in your transfer scope (who may transfer where) |
accept_device_transfer | Deprecated: always CONFLICT NO_PENDING_TRANSFER | Signed in |
cancel_device_transfer | Deprecated: always CONFLICT NO_PENDING_TRANSFER | Signed in |
list_device_transfers | Deprecated: always an empty list | Signed in |
inventory_bulk | One action on up to 100 devices, transfer included | as the single action |
export_device_inventory | The filtered inventory as CSV | devices VIEW |
import_devices | Register up to 100 loggers into plants from a file, or check the file first. Returns each registered device's details | a devices MANAGE grant, and MANAGE on each plant |
add_favourite | Star a device | devices EDIT |
remove_favourite | Unstar a device | Signed in |
list_favourites | Your starred devices, most recent first: 15, then 10 per load | devices VIEW |
save_view | Save a device-list view or a Historical Data template | Signed in |
list_views | Your saved views of one kind | Signed in |
delete_view | Delete one of your views | Signed in |
check_serial | Is this serial factory-made, and is it in use | a devices MANAGE grant |
check_logger | Is this logger online now, and can it be registered into this plant (web plant flow) | devices MANAGE on plantId, or a devices MANAGE grant |
save_registration_draft | Save an unfinished registration | Signed in |
list_registration_drafts | Your drafts | Signed in |
delete_registration_draft | Delete a draft | Signed in |
register_device_web | Register a logger into a plant. Returns the device's details | devices MANAGE on the plant |
get_device_models | The supported models and what each can do | Signed in |
get_operation_log | Writes, reads and device changes across the fleet | commands VIEW |
export_operation_log | The same as CSV | commands VIEW |
list_device_files | A device's technical files | devices VIEW, engineering not redacted |
get_file_upload_url | Start a file upload | devices EDIT, engineering not redacted |
complete_file_upload | Finish a file upload | devices EDIT, engineering not redacted |
get_file_download_url | Download a file | devices VIEW, engineering not redacted |
delete_device_file | Delete a file | devices MANAGE, engineering not redacted |
Commands
"The command's permission" is registersWrite for a register write and commands for a logger restart; see Which permission.
| Message | Purpose | Needs |
|---|---|---|
get_command_catalog | What can be sent to a model, a device, or several of either (only what all have) | Signed in (by model or models); commands or registersWrite VIEW (by device or devices) |
send_command | Request a register write or logger restart | EDIT in the command's permission; FULL for engineering |
approve_command | Approve someone else's command created awaiting approval before 2026-11-13 (none need approval since) | MANAGE in the command's permission; FULL for engineering |
reject_command | Reject a command awaiting approval (created before 2026-11-13) | MANAGE in the command's permission; FULL for engineering |
cancel_command | Cancel a command not yet sent | Requester, or MANAGE in the command's permission |
retry_command | Send a failed or expired command again | As for send_command |
get_command | One command and its audit trail | VIEW in the command's permission, or the requester |
list_commands | Commands, newest first | VIEW in the command's permission, plus your own commands |
create_bulk_task | One command for up to 1,000 devices | MANAGE in the command's permission on every device; FULL for engineering |
approve_bulk_task | Approve someone else's bulk task created awaiting approval before 2026-11-13 | MANAGE in the command's permission on every device; FULL for engineering |
stop_bulk_task | Withdraw or stop a bulk task | Requester, approver, or MANAGE in the command's permission on every device |
get_bulk_task | A bulk task with per-device progress | Requester, approver, or VIEW in the command's permission on one of its devices |
list_bulk_tasks | Bulk tasks you can see | As for get_bulk_task |
Alerts
| Message | Purpose | Needs |
|---|---|---|
list_alerts | Open and resolved alerts, filtered, searched, paged | alerts VIEW |
get_alert | One alert with snapshot, explanation and timeline | alerts VIEW |
get_alert_events | One alert's timeline | alerts VIEW |
ack_alerts | Acknowledge up to 100 open alerts | alerts EDIT |
resolve_alert | Close an open alert by hand, with a note | alerts EDIT |
assign_alert | Assign or unassign an open alert | alerts EDIT |
get_alert_stats | Alerts raised per period, grouped | alerts VIEW |
get_comm_loss_surges | Bursts of devices going offline together | alerts VIEW |
get_alert_facets | Counts of matching open alerts by severity, category and device type | alerts VIEW |
get_notification_deliveries | Your device-alert push inbox | Signed in |
mark_notifications_read | Mark inbox entries read | Signed in |
Fleet analytics
| Message | Purpose | Needs |
|---|---|---|
get_fleet_overview | Current power, capacity, curve, energy, CO₂ across your plants | devices VIEW |
get_plant_health | Status and open alerts per plant or per customer | devices VIEW |
list_plants | The Plants list: status, alert, reporting, type, capacity, country and last-seen filters, status and country counts, sort by live metrics, capacity or customer, lazy-loaded | devices VIEW |
count_plants | Status counts for up to 20 list_plants filter sets at once | devices VIEW |
get_plant_kpis | Yield, PR, availability, downtime, degradation for one plant | devices VIEW on the plant |
get_plant_overview | Everything a plant's Overview tab and header show, in one read | devices VIEW on the plant |
get_plant_rankings | Plants ranked by a metric | devices VIEW |
get_plants_curves | Today's curve and peak sun hours for up to 100 plants | devices VIEW on each plant |
compare | Up to 20 devices or plants side by side | devices VIEW on each |
get_plant_targets | A plant's design targets | devices VIEW on the plant |
set_plant_targets | Set a plant's design targets | devices MANAGE on the plant (grant) |
get_irradiance | A plant's daily irradiation series | devices VIEW on the plant |