Skip to main content

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"}
FieldInMeaning
typerequest, replyThe message type; the reply adds _result
requestIdrequest, replyAny string up to 128 characters, echoed back. Use it to match replies, because replies to requests sent together can arrive in any order
okreplytrue with result, or false with code and error
resultreplyThe answer. Each message's section shows its shape
codereplyA stable failure reason (table below)
errorreplyA human-readable sentence. Do not parse it
detailsreplyOptional 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​

codeMeaningWhat to do
INVALID_REQUESTA field is missing, malformed or out of range, or a cursor is not one this server issuedFix the request
UNAUTHENTICATEDThe connection has no verified ticketSend auth with a ticket
TICKET_EXPIREDThe ticket ran outGet a new ticket and send auth
FORBIDDENYou can see the target but your level is too low, or a rule such as dual control forbids itShow the reason; do not retry
NOT_FOUNDThe target does not exist or you cannot see it. The two are never told apart, so ids cannot be probedTreat as gone
CONFLICTThe 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
UNAVAILABLEA dependency is missing or slow: no database, no file storage, or the request ran past its time limitRetry later with backoff
UNSUPPORTEDThe server understands the request but cannot do it (a meter, an unknown model, a text register)Do not retry
BUSYThis connection already has 4 console requests in flightWait for a reply, then send
INTERNALAn unexpected server error. Details are logged, never sentRetry 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").

MessagesLimit
Most messages10 s
register_device_web15 s
get_fleet_overview, get_plant_rankings, list_plants, count_plants, approve_bulk_task, stop_bulk_task20 s
list_alerts, get_alert_facets, get_alert_stats, get_comm_loss_surges, create_bulk_task30 s
export_operation_log60 s

Paging​

Lists are never unbounded. A list request takes:

FieldTypeDefaultLimit
limitinteger50200; a larger value is lowered to 200
cursorstringnone (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.

RedactionWhat is hidden
serialsLogger ids and inverter serial numbers. Searches by serial do not return the device either, so a search cannot confirm a hidden serial
engineeringRegister 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 loggerId and inverterSn as null and add "redacted": {"serials": true, "engineering": false}.
  • get_device_details sends hidden fields as {"value": null, "reason": "hidden by your access (redacted)"}.
  • Alerts leave loggerId and inverterSn out and add "redacted": true.

Server pushes​

Three console messages arrive without a request. None has a requestId.

typeSent toPage
command_statusThe requester, and every verified connection with VIEW in the command's permission on the device, on every state change of a commandCommands
bulk_task_statusThe 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 progressCommands
alert_updatedEvery verified connection with alerts VIEW on the device, when an alert is raised, cleared, acknowledged, assigned or resolvedAlerts

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​

MessagePurposeNeeds
get_inventoryEvery device you reach, filtered and paged, with counts; your 15 most recent favourites firstdevices VIEW
get_devices_pageThe /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 listdevices VIEW
search_devicesFind devices by logger id or inverter serial prefix. A whole serial makes the device a platform Super Admin's or Administrator's favouritedevices VIEW
get_device_detailsEverything known about one devicedevices VIEW
get_device_eventsOne device's merged event logdevices VIEW (alerts VIEW to include alert events)
update_device_profileSet display name, country, installer, notesdevices EDIT
set_device_rated_powerSet or clear the inverter's nameplate rating (kW)devices MANAGE
bind_devicePut an unbound device into a plant of its own Businessdevices MANAGE on the device and the plant; the plant must be the device's Business's (OWN_PLANTS_ONLY)
unbind_deviceTake a device out of its plant, keeping its historydevices MANAGE
unbind_loggerTake the logger off a device in any state, freeing the logger (details)platform Admin or Super Admin
verify_deviceMark the inverter serial verified from the hardware's reportdevices MANAGE
transfer_deviceMove ownership to another user or orgdevices MANAGE; changing the device's Business is platform Admin or Super Admin only
get_device_inventoryThe Device Inventory screen: rows with names, states, allowed actions, and counts, in one request (Device Inventory)devices VIEW
get_inventory_plant_optionsPlants a device can be assigned to (purpose: "bind") or transferred to (purpose: "transfer")devices MANAGE on the plant, narrowed by role (details)
reject_deviceReject the serial typed at registrationdevices MANAGE
remove_device / restore_deviceTake a device out of service, reversibly / put it backdevices MANAGE
request_device_transferMove a device to another Business or plant, at oncedevices 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_transferDeprecated: always CONFLICT NO_PENDING_TRANSFERSigned in
cancel_device_transferDeprecated: always CONFLICT NO_PENDING_TRANSFERSigned in
list_device_transfersDeprecated: always an empty listSigned in
inventory_bulkOne action on up to 100 devices, transfer includedas the single action
export_device_inventoryThe filtered inventory as CSVdevices VIEW
import_devicesRegister up to 100 loggers into plants from a file, or check the file first. Returns each registered device's detailsa devices MANAGE grant, and MANAGE on each plant
add_favouriteStar a devicedevices EDIT
remove_favouriteUnstar a deviceSigned in
list_favouritesYour starred devices, most recent first: 15, then 10 per loaddevices VIEW
save_viewSave a device-list view or a Historical Data templateSigned in
list_viewsYour saved views of one kindSigned in
delete_viewDelete one of your viewsSigned in
check_serialIs this serial factory-made, and is it in usea devices MANAGE grant
check_loggerIs 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_draftSave an unfinished registrationSigned in
list_registration_draftsYour draftsSigned in
delete_registration_draftDelete a draftSigned in
register_device_webRegister a logger into a plant. Returns the device's detailsdevices MANAGE on the plant
get_device_modelsThe supported models and what each can doSigned in
get_operation_logWrites, reads and device changes across the fleetcommands VIEW
export_operation_logThe same as CSVcommands VIEW
list_device_filesA device's technical filesdevices VIEW, engineering not redacted
get_file_upload_urlStart a file uploaddevices EDIT, engineering not redacted
complete_file_uploadFinish a file uploaddevices EDIT, engineering not redacted
get_file_download_urlDownload a filedevices VIEW, engineering not redacted
delete_device_fileDelete a filedevices MANAGE, engineering not redacted

Commands​

"The command's permission" is registersWrite for a register write and commands for a logger restart; see Which permission.

MessagePurposeNeeds
get_command_catalogWhat 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_commandRequest a register write or logger restartEDIT in the command's permission; FULL for engineering
approve_commandApprove 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_commandReject a command awaiting approval (created before 2026-11-13)MANAGE in the command's permission; FULL for engineering
cancel_commandCancel a command not yet sentRequester, or MANAGE in the command's permission
retry_commandSend a failed or expired command againAs for send_command
get_commandOne command and its audit trailVIEW in the command's permission, or the requester
list_commandsCommands, newest firstVIEW in the command's permission, plus your own commands
create_bulk_taskOne command for up to 1,000 devicesMANAGE in the command's permission on every device; FULL for engineering
approve_bulk_taskApprove someone else's bulk task created awaiting approval before 2026-11-13MANAGE in the command's permission on every device; FULL for engineering
stop_bulk_taskWithdraw or stop a bulk taskRequester, approver, or MANAGE in the command's permission on every device
get_bulk_taskA bulk task with per-device progressRequester, approver, or VIEW in the command's permission on one of its devices
list_bulk_tasksBulk tasks you can seeAs for get_bulk_task

Alerts​

MessagePurposeNeeds
list_alertsOpen and resolved alerts, filtered, searched, pagedalerts VIEW
get_alertOne alert with snapshot, explanation and timelinealerts VIEW
get_alert_eventsOne alert's timelinealerts VIEW
ack_alertsAcknowledge up to 100 open alertsalerts EDIT
resolve_alertClose an open alert by hand, with a notealerts EDIT
assign_alertAssign or unassign an open alertalerts EDIT
get_alert_statsAlerts raised per period, groupedalerts VIEW
get_comm_loss_surgesBursts of devices going offline togetheralerts VIEW
get_alert_facetsCounts of matching open alerts by severity, category and device typealerts VIEW
get_notification_deliveriesYour device-alert push inboxSigned in
mark_notifications_readMark inbox entries readSigned in

Fleet analytics​

MessagePurposeNeeds
get_fleet_overviewCurrent power, capacity, curve, energy, CO₂ across your plantsdevices VIEW
get_plant_healthStatus and open alerts per plant or per customerdevices VIEW
list_plantsThe Plants list: status, alert, reporting, type, capacity, country and last-seen filters, status and country counts, sort by live metrics, capacity or customer, lazy-loadeddevices VIEW
count_plantsStatus counts for up to 20 list_plants filter sets at oncedevices VIEW
get_plant_kpisYield, PR, availability, downtime, degradation for one plantdevices VIEW on the plant
get_plant_overviewEverything a plant's Overview tab and header show, in one readdevices VIEW on the plant
get_plant_rankingsPlants ranked by a metricdevices VIEW
get_plants_curvesToday's curve and peak sun hours for up to 100 plantsdevices VIEW on each plant
compareUp to 20 devices or plants side by sidedevices VIEW on each
get_plant_targetsA plant's design targetsdevices VIEW on the plant
set_plant_targetsSet a plant's design targetsdevices MANAGE on the plant (grant)
get_irradianceA plant's daily irradiation seriesdevices VIEW on the plant