# 9 API The firmware of the WCC Lite features a built-in API which is accessible via the web interface. As of version 1.2.11, it does not implement any access restriction features apart from those provided by the firewall functionality. Individual API endpoints can be enabled or disabled via the web configuration interface at Services>API. All endpoints are disabled by default. Available API endpoints are shown in the table below.
Path | Description | Request body (encoded as "multipart-form-data") | Response body example (json format) |
/api/version | Version of the API | { "api\_version": "2", "api\_patch": "1", "sync\_version": "lite1" } | |
/api/actions | List of available points | ||
/api/syncVersion | Version of the sync service | ||
/api/sync | Protocol hub configuration upload (key name="file"). Returns excel-utility output )\* | { "file": "config.xlsx" } | |
/api/syslog | Prints out the syslog | ||
/api/systemInfo | General system info | ||
/api/gsmInfo | GSM modem information | ||
/api/devices | List of configured devices | ||
/api/device/info | Returns configured devices information. (key name="device\_alias")\*\* | { "device\_alias": "INV1" } | { "devices": \[ { "device\_alias": "INV1", "name": "INV1", "protocol": "modbus rtu" } \] } |
/api/device/tags | List of tags of a particular configured device. (key name="device\_alias")\*\* | {
"device_alias": "INV1"
} | { "total\_signals": "7", "signals": \[ { "signal\_name": "Active power", "source\_device\_alias": "", "input\_topic": "tag/INV1/P/rin", "output\_topic": "tag/INV1/P/out", "signal\_alias": "P" }, ... |
/api/device/tag/value | Returns tags value, name, timestamp, and flags of a particular device. (key name="device\_alias", key name="signal\_alias")\*\* | { "device\_alias": "INV1", "signal\_alias": "P" } | { "total\_signals": "1", "signal\_values": \[ { "signal\_name": "Active power", "value": "5.9589999999999996", "timestamp": "1708000203824", "flags": "" } \] } |
/api/tags | List of configured tags | ||
/api/sysupgrade | Firmware upgrade. (key name="file")\* |